Isis 3.0 Programmer Reference
Back | Home
ControlPointGraphicsItem.h
1 #ifndef ControlPointGraphicsItem_h
2 #define ControlPointGraphicsItem_h
3 
4 #include <QGraphicsRectItem>
5 
6 class QPointF;
7 
8 namespace Isis {
9  class ControlPoint;
10  class MosaicSceneWidget;
11  class SerialNumberList;
12 
39  public:
40  ControlPointGraphicsItem(QPointF center, QPointF apriori,
41  ControlPoint *cp, SerialNumberList *snList, MosaicSceneWidget *scene,
42  QGraphicsItem *parent);
43  virtual ~ControlPointGraphicsItem();
44 
45  void paint(QPainter *, const QStyleOptionGraphicsItem *,
46  QWidget * widget = 0);
47 
48  ControlPoint *controlPoint();
49 
50  void setArrowVisible(bool visible, bool colorByMeasureCount, int measureCount,
51  bool colorByResidualMagnitude, double residualMagnitude);
52 
53  protected:
54  void contextMenuEvent(QGraphicsSceneContextMenuEvent * event);
55 
56  private:
57  QRectF calcRect() const;
58  QRectF calcCrosshairRect() const;
59  QPolygonF calcArrowHead() const;
60  QString makeToolTip(SerialNumberList *snlist);
61 
62  QPointF *m_centerPoint;
63  QPointF *m_origPoint;
64  MosaicSceneWidget *m_mosaicScene;
65  ControlPoint *m_controlPoint;
66  bool m_showArrow;
75  };
76 }
77 
78 #endif
79 
This widget encompasses the entire mosaic scene.
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.
A single control point.
Definition: ControlPoint.h:339
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.

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the ISIS Support Center
File Modified: 07/12/2023 23:16:45