Isis Developer Reference
ControlPointGraphicsItem.h
Go to the documentation of this file.
1#ifndef ControlPointGraphicsItem_h
2#define ControlPointGraphicsItem_h
3
4#include <QGraphicsRectItem>
5
6class QPointF;
7
8namespace Isis {
9 class ControlPoint;
10 class MosaicSceneWidget;
11 class SerialNumberList;
12
46 public:
47 ControlPointGraphicsItem(QPointF center, QPointF apriori,
49 QGraphicsItem *parent);
51
52 void paint(QPainter *, const QStyleOptionGraphicsItem *,
53 QWidget * widget = 0);
54
56
57 void setArrowVisible(bool visible, bool colorByMeasureCount, int measureCount,
58 bool colorByResidualMagnitude, double residualMagnitude);
59
60 protected:
61 void contextMenuEvent(QGraphicsSceneContextMenuEvent * event);
62
63 private:
64 QRectF calcRect() const;
65 QRectF calcCrosshairRect() const;
66 QPolygonF calcArrowHead() const;
67 QString makeToolTip(SerialNumberList *snlist);
68
69 QPointF *m_centerPoint;
70 QPointF *m_origPoint;
71 MosaicSceneWidget *m_mosaicScene;
72 ControlPoint *m_controlPoint;
73 bool m_showArrow;
75 bool m_colorByMeasureCount;
77 bool m_colorByResidualMagnitude;
79 int m_measureCount;
81 double m_residualMagnitude;
82 };
83}
84
85#endif
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
This widget encompasses the entire mosaic scene.
Definition MosaicSceneWidget.h:153
Serial Number list generator.
Definition SerialNumberList.h:64
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16