|
Isis 3.0
| Home |
The visual display of a single control point. More...
#include <ControlPointGraphicsItem.h>
Inherits QGraphicsRectItem.
Public Member Functions | |
| ControlPointGraphicsItem (QPointF center, QPointF apriori, ControlPoint *cp, SerialNumberList *snList, MosaicSceneWidget *scene, QGraphicsItem *parent) | |
| Create a CP graphics item. More... | |
| virtual | ~ControlPointGraphicsItem () |
| void | paint (QPainter *, const QStyleOptionGraphicsItem *, QWidget *widget=0) |
| ControlPoint * | controlPoint () |
| void | setArrowVisible (bool visible, bool colorByMeasureCount, int measureCount, bool colorByResidualMagnitude, double residualMagnitude) |
Protected Member Functions | |
| void | contextMenuEvent (QGraphicsSceneContextMenuEvent *event) |
The visual display of a single control point.
The control point tries to always draw itself at a constant size and uses the scene pointer to accomplish this.
| Isis::ControlPointGraphicsItem::ControlPointGraphicsItem | ( | QPointF | center, |
| QPointF | apriori, | ||
| ControlPoint * | cp, | ||
| SerialNumberList * | snList, | ||
| MosaicSceneWidget * | boundingRectSrc, | ||
| QGraphicsItem * | parent | ||
| ) |
Create a CP graphics item.
This will colorize and set the appropriate toolTip for this control point.
References Isis::ControlPoint::Constrained, Isis::ControlPoint::Fixed, Isis::ControlPoint::GetType(), Isis::ControlPoint::IsEditLocked(), Isis::ControlPoint::IsIgnored(), and Isis::Null.
|
virtual |
|
protected |
References Isis::ControlPoint::GetId().
| ControlPoint * Isis::ControlPointGraphicsItem::controlPoint | ( | ) |
Referenced by Isis::ControlNetGraphicsItem::findClosestControlPoint().
| void Isis::ControlPointGraphicsItem::paint | ( | QPainter * | painter, |
| const QStyleOptionGraphicsItem * | style, | ||
| QWidget * | widget = 0 |
||
| ) |
| void Isis::ControlPointGraphicsItem::setArrowVisible | ( | bool | visible, |
| bool | colorByMeasureCount, | ||
| int | measureCount, | ||
| bool | colorByResidualMagnitude, | ||
| double | residualMagnitude | ||
| ) |