USGS

Isis 3.0 Developer's Reference (API)

Home

ControlNetGraphicsItem.h

Go to the documentation of this file.
00001 #ifndef ControlNetGraphicsItem_h
00002 #define ControlNetGraphicsItem_h
00003 
00004 #include <QGraphicsObject>
00005 
00006 namespace Isis {
00007   class ControlNet;
00008   class ControlPoint;
00009   class MosaicSceneWidget;
00010   class Projection;
00011   class SerialNumberList;
00012   class UniversalGroundMap;
00013 
00027   class ControlNetGraphicsItem : public QGraphicsObject {
00028       Q_OBJECT
00029 
00030     public:
00031       ControlNetGraphicsItem(ControlNet *controlNet,
00032                              MosaicSceneWidget *mosaicScene);
00033       virtual ~ControlNetGraphicsItem();
00034 
00035       QRectF boundingRect() const;
00036       void paint(QPainter *, const QStyleOptionGraphicsItem *,
00037                  QWidget * widget = 0);
00038       QString snToFileName(QString sn);
00039 
00040       void setArrowsVisible(bool visible, bool colorByMeasureCount, int measureCount,
00041                             bool colorByJigsawError, double residualMagnitude);
00042 
00043     private slots:
00044       void buildChildren();
00045 
00046     private:
00047       QPair<QPointF, QPointF> pointToScene(ControlPoint *);
00048 
00049       ControlNet *m_controlNet;
00050 
00051       MosaicSceneWidget *m_mosaicScene;
00052       QMap<ControlPoint *, QPair<QPointF, QPointF> > *m_pointToScene;
00053       QMap<QString, UniversalGroundMap *> *m_cubeToGroundMap;
00054       SerialNumberList *m_serialNumbers;
00055   };
00056 }
00057 
00058 #endif
00059