1 #ifndef ControlPointGraphicsItem_h
2 #define ControlPointGraphicsItem_h
4 #include <QGraphicsRectItem>
10 class MosaicSceneWidget;
11 class SerialNumberList;
45 void paint(QPainter *,
const QStyleOptionGraphicsItem *,
50 void setArrowVisible(
bool visible,
bool colorByMeasureCount,
int measureCount,
51 bool colorByResidualMagnitude,
double residualMagnitude);
54 void contextMenuEvent(QGraphicsSceneContextMenuEvent * event);
57 QRectF calcRect()
const;
58 QRectF calcCrosshairRect()
const;
59 QPolygonF calcArrowHead()
const;
62 QPointF *m_centerPoint;
bool m_colorByMeasureCount
Are we coloring the movement arrow based on CP measure count.
ControlPointGraphicsItem(QPointF center, QPointF apriori, ControlPoint *cp, SerialNumberList *snList, MosaicSceneWidget *scene, QGraphicsItem *parent)
Create a CP graphics item.
double m_residualMagnitude
Residual magnitude threshold for colored vs. black.
The visual display of a single control point.
int m_measureCount
Measure count threshold for colored vs. black.
Serial Number list generator.
bool m_colorByResidualMagnitude
Are we coloring the movement arrow based on max CM residual magnitude.