1#ifndef ControlPointGraphicsItem_h
2#define ControlPointGraphicsItem_h
4#include <QGraphicsRectItem>
10 class MosaicSceneWidget;
11 class SerialNumberList;
52 void paint(QPainter *,
const QStyleOptionGraphicsItem *,
57 void setArrowVisible(
bool visible,
bool colorByMeasureCount,
int measureCount,
58 bool colorByResidualMagnitude,
double residualMagnitude);
64 QRectF calcRect()
const;
65 QRectF calcCrosshairRect()
const;
66 QPolygonF calcArrowHead()
const;
69 QPointF *m_centerPoint;
75 bool m_colorByMeasureCount;
77 bool m_colorByResidualMagnitude;
81 double m_residualMagnitude;
The visual display of a single control point.
Definition ControlPointGraphicsItem.h:45
void contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
Definition ControlPointGraphicsItem.cpp:214
void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *widget=0)
This virtual paint method is called anytime an update() or paintEvent() is called.
Definition ControlPointGraphicsItem.cpp:99
ControlPointGraphicsItem(QPointF center, QPointF apriori, ControlPoint *cp, SerialNumberList *snList, MosaicSceneWidget *scene, QGraphicsItem *parent)
Create a CP graphics item.
Definition ControlPointGraphicsItem.cpp:33
ControlPoint * controlPoint()
Definition ControlPointGraphicsItem.cpp:195
virtual ~ControlPointGraphicsItem()
Definition ControlPointGraphicsItem.cpp:77
void setArrowVisible(bool visible, bool colorByMeasureCount, int measureCount, bool colorByResidualMagnitude, double residualMagnitude)
Definition ControlPointGraphicsItem.cpp:199
A single control point.
Definition ControlPoint.h:356
Serial Number list generator.
Definition SerialNumberList.h:64
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16