Isis 3 Developer Reference
ControlNetGraphicsItem.h
Go to the documentation of this file.
1 #ifndef ControlNetGraphicsItem_h
2 #define ControlNetGraphicsItem_h
3 
4 #include <QGraphicsObject>
5 
6 namespace 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);
43  virtual ~ControlNetGraphicsItem();
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.
71 
72  QMap<QString, UniversalGroundMap *> *m_cubeToGroundMap;
73  SerialNumberList *m_serialNumbers;
74  };
75 }
76 
77 #endif
78 
QString snToFileName(QString sn)
Definition: ControlNetGraphicsItem.cpp:203
ControlNetGraphicsItem(ControlNet *controlNet, MosaicSceneWidget *mosaicScene)
Definition: ControlNetGraphicsItem.cpp:30
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
This widget encompasses the entire mosaic scene.
Definition: MosaicSceneWidget.h:153
ControlPoint * findClosestControlPoint(QPointF locationPoint)
Return the closest control point to the pointLocation.
Definition: ControlNetGraphicsItem.cpp:302
a control network
Definition: ControlNet.h:271
Control Network Display on Mosaic Scene.
Definition: ControlNetGraphicsItem.h:37
A single control point.
Definition: ControlPoint.h:369
virtual ~ControlNetGraphicsItem()
Definition: ControlNetGraphicsItem.cpp:50
void clearControlPointGraphicsItem(QString pointId)
Definition: ControlNetGraphicsItem.cpp:188
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Serial Number list generator.
Definition: SerialNumberList.h:80
void buildChildren()
Call this to re-calculate where control points ought to lie.
Definition: ControlNetGraphicsItem.cpp:240
Definition: CubeIoHandler.h:38
void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *widget=0)
Definition: ControlNetGraphicsItem.cpp:77
QRectF boundingRect() const
Definition: ControlNetGraphicsItem.cpp:72