Isis 3 Programmer Reference
ControlNetGraphicsItem.h
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 
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.
This widget encompasses the entire mosaic scene.
ControlPoint * findClosestControlPoint(QPointF locationPoint)
Return the closest control point to the pointLocation.
a control network
Definition: ControlNet.h:271
Control Network Display on Mosaic Scene.
A single control point.
Definition: ControlPoint.h:369
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Serial Number list generator.
void buildChildren()
Call this to re-calculate where control points ought to lie.