Isis 3.0 Programmer Reference
Back | Home
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 
34  Q_OBJECT
35 
36  public:
38  MosaicSceneWidget *mosaicScene);
39  virtual ~ControlNetGraphicsItem();
40 
41  QRectF boundingRect() const;
42  void paint(QPainter *, const QStyleOptionGraphicsItem *,
43  QWidget * widget = 0);
44  QString snToFileName(QString sn);
45 
46  void setArrowsVisible(bool visible, bool colorByMeasureCount, int measureCount,
47  bool colorByJigsawError, double residualMagnitude);
48 
49  ControlPoint *findClosestControlPoint();
50 
51  public slots:
52  void buildChildren();
53  void clearControlPointGraphicsItem(QString pointId);
54 
55  protected:
56  virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
57 
58  private:
59  // Returns apriori x/y in first point, adjusted x/y in 2nd point
60  QPair<QPointF, QPointF> pointToScene(ControlPoint *);
61 
62  ControlNet *m_controlNet;
63 
64  MosaicSceneWidget *m_mosaicScene;
65 
66  // m_pointToScene contains lat/lon coordinates, 1st QPointF = apriori; 2nd QPointF = adjusted.
67  // There will always be and apriori point, but if not adjusted exists, then it is set to the
68  // apriori.
70 
71  QMap<QString, UniversalGroundMap *> *m_cubeToGroundMap;
72  SerialNumberList *m_serialNumbers;
73  };
74 }
75 
76 #endif
77 
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.
a control network
Definition: ControlNet.h:207
Control Network Display on Mosaic Scene.
A single control point.
Definition: ControlPoint.h:339
Serial Number list generator.
void buildChildren()
Call this to re-calculate where control points ought to lie.

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:35