Isis Developer Reference
ControlNetGraphicsItem.h
Go to the documentation of this file.
1#ifndef ControlNetGraphicsItem_h
2#define ControlNetGraphicsItem_h
3
4#include <QGraphicsObject>
5
6namespace Isis {
7 class ControlNet;
8 class ControlPoint;
9 class MosaicSceneWidget;
10 class Projection;
11 class SerialNumberList;
12 class UniversalGroundMap;
13
38 Q_OBJECT
39
40 public:
42 MosaicSceneWidget *mosaicScene);
44
45 QRectF boundingRect() const;
46 void paint(QPainter *, const QStyleOptionGraphicsItem *,
47 QWidget * widget = 0);
48 QString snToFileName(QString sn);
49
50 void setArrowsVisible(bool visible, bool colorByMeasureCount, int measureCount,
51 bool colorByJigsawError, double residualMagnitude);
52
53 ControlPoint *findClosestControlPoint(QPointF locationPoint);
54
55 public slots:
56 void buildChildren();
57 void clearControlPointGraphicsItem(QString pointId);
58
59 private:
60 // Returns apriori x/y in first point, adjusted x/y in 2nd point
61 QPair<QPointF, QPointF> pointToScene(ControlPoint *);
62
63 ControlNet *m_controlNet;
64
65 MosaicSceneWidget *m_mosaicScene;
66
67 // m_pointToScene contains lat/lon coordinates, 1st QPointF = apriori; 2nd QPointF = adjusted.
68 // There will always be and apriori point, but if not adjusted exists, then it is set to the
69 // apriori.
70 QMap<ControlPoint *, QPair<QPointF, QPointF> > *m_pointToScene;
71
72 QMap<QString, UniversalGroundMap *> *m_cubeToGroundMap;
73 SerialNumberList *m_serialNumbers;
74 };
75}
76
77#endif
78
Control Network Display on Mosaic Scene.
Definition ControlNetGraphicsItem.h:37
QString snToFileName(QString sn)
Definition ControlNetGraphicsItem.cpp:203
ControlNetGraphicsItem(ControlNet *controlNet, MosaicSceneWidget *mosaicScene)
Definition ControlNetGraphicsItem.cpp:30
ControlPoint * findClosestControlPoint(QPointF locationPoint)
Return the closest control point to the pointLocation.
Definition ControlNetGraphicsItem.cpp:302
void setArrowsVisible(bool visible, bool colorByMeasureCount, int measureCount, bool colorByJigsawError, double residualMagnitude)
Enable/disable and configure movement arrows for all CP displays in the network.
Definition ControlNetGraphicsItem.cpp:224
void buildChildren()
Call this to re-calculate where control points ought to lie.
Definition ControlNetGraphicsItem.cpp:240
QRectF boundingRect() const
Definition ControlNetGraphicsItem.cpp:72
void clearControlPointGraphicsItem(QString pointId)
Definition ControlNetGraphicsItem.cpp:188
void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *widget=0)
Definition ControlNetGraphicsItem.cpp:77
virtual ~ControlNetGraphicsItem()
Definition ControlNetGraphicsItem.cpp:50
a control network
Definition ControlNet.h:258
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