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 
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 
Isis::ControlNetGraphicsItem::setArrowsVisible
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
FileName.h
Isis::MosaicSceneWidget::getProgress
QProgressBar * getProgress()
Definition: MosaicSceneWidget.cpp:520
Isis::ControlNetGraphicsItem::snToFileName
QString snToFileName(QString sn)
Definition: ControlNetGraphicsItem.cpp:203
Isis::ControlNetGraphicsItem::boundingRect
QRectF boundingRect() const
Definition: ControlNetGraphicsItem.cpp:72
Isis::MosaicSceneWidget::getView
MosaicGraphicsView * getView() const
Definition: MosaicSceneWidget.h:162
QWidget
Cube.h
Isis::MosaicSceneWidget::getProjection
Projection * getProjection() const
Definition: MosaicSceneWidget.h:170
MosaicSceneWidget.h
QList
This is free and unencumbered software released into the public domain.
Definition: BoxcarCachingAlgorithm.h:13
Isis::ProgressBar
Definition: ProgressBar.h:15
Isis::SerialNumberList::size
int size() const
How many serial number / filename combos are in the list.
Definition: SerialNumberList.cpp:384
Isis::ControlNetGraphicsItem::ControlNetGraphicsItem
ControlNetGraphicsItem(ControlNet *controlNet, MosaicSceneWidget *mosaicScene)
Definition: ControlNetGraphicsItem.cpp:30
Isis::ControlPoint::GetReferenceSN
QString GetReferenceSN() const
Definition: ControlPoint.cpp:1763
Isis::ControlPoint::GetAdjustedSurfacePoint
SurfacePoint GetAdjustedSurfacePoint() const
Definition: ControlPoint.cpp:1282
Longitude.h
Isis::MosaicSceneWidget
This widget encompasses the entire mosaic scene.
Definition: MosaicSceneWidget.h:153
Isis::ControlPoint::GetAprioriSurfacePoint
SurfacePoint GetAprioriSurfacePoint() const
Definition: ControlPoint.cpp:1566
ControlNetGraphicsItem.h
Isis::ControlNetGraphicsItem::findClosestControlPoint
ControlPoint * findClosestControlPoint(QPointF locationPoint)
Return the closest control point to the pointLocation.
Definition: ControlNetGraphicsItem.cpp:302
QGraphicsObject
Isis::Projection::SetUniversalGround
virtual bool SetUniversalGround(const double coord1, const double coord2)
This method is used to set the lat/lon or radius/azimuth (i.e.
Definition: Projection.cpp:417
QStringList
Isis::SerialNumberList
Serial Number list generator.
Definition: SerialNumberList.h:64
Isis::MosaicSceneWidget::getScene
QGraphicsScene * getScene() const
Definition: MosaicSceneWidget.h:166
Isis::ControlPointGraphicsItem
The visual display of a single control point.
Definition: ControlPointGraphicsItem.h:45
Isis::ControlPoint
A single control point.
Definition: ControlPoint.h:354
ControlNet.h
Latitude.h
Isis::ControlNet::GetNumPoints
int GetNumPoints() const
Return the number of control points in the network.
Definition: ControlNet.cpp:1465
Pvl.h
SurfacePoint.h
SerialNumberList.h
Isis::SerialNumberList::add
void add(const QString &filename, bool def2filename=false)
Adds a new filename / serial number pair to the SerialNumberList.
Definition: SerialNumberList.cpp:121
Isis::ControlMeasure::GetSample
double GetSample() const
Definition: ControlMeasure.cpp:723
MosaicGraphicsView.h
ControlPoint.h
Isis::ControlNet
a control network
Definition: ControlNet.h:257
Isis::ControlNetGraphicsItem::~ControlNetGraphicsItem
virtual ~ControlNetGraphicsItem()
Definition: ControlNetGraphicsItem.cpp:50
Isis::IException
Isis exception class.
Definition: IException.h:91
UniversalGroundMap.h
Isis::ControlNetGraphicsItem
Control Network Display on Mosaic Scene.
Definition: ControlNetGraphicsItem.h:37
ProgressBar.h
IException.h
std
Namespace for the standard library.
Isis::ControlNetGraphicsItem::clearControlPointGraphicsItem
void clearControlPointGraphicsItem(QString pointId)
Definition: ControlNetGraphicsItem.cpp:188
Isis::ControlPoint::GetRefMeasure
const ControlMeasure * GetRefMeasure() const
Get the reference control measure.
Definition: ControlPoint.cpp:457
Isis::MosaicSceneWidget::cubeFileNames
QStringList cubeFileNames()
Definition: MosaicSceneWidget.cpp:706
QPair< QPointF, QPointF >
Isis::ControlMeasure::GetLine
double GetLine() const
Definition: ControlMeasure.cpp:690
QMap
This is free and unencumbered software released into the public domain.
Definition: CubeIoHandler.h:22
Projection.h
Isis::ProgressBar::setText
void setText(QString text)
Set custom text for this progress bar.
Definition: ProgressBar.cpp:32
Isis::SerialNumberList::fileName
QString fileName(const QString &sn)
Return a filename given a serial number.
Definition: SerialNumberList.cpp:399
Isis::Projection::YCoord
double YCoord() const
This returns the projection Y provided SetGround, SetCoordinate, SetUniversalGround,...
Definition: Projection.cpp:400
Isis::Projection
Base class for Map Projections.
Definition: Projection.h:155
Isis::ControlNetGraphicsItem::buildChildren
void buildChildren()
Call this to re-calculate where control points ought to lie.
Definition: ControlNetGraphicsItem.cpp:240
QGraphicsItem
Isis::Projection::XCoord
double XCoord() const
This returns the projection X provided SetGround, SetCoordinate, SetUniversalGround,...
Definition: Projection.cpp:387
Isis::ControlNet::GetPoint
const ControlPoint * GetPoint(QString pointId) const
Definition: ControlNet.cpp:1815
Isis::ControlNetGraphicsItem::paint
void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *widget=0)
Definition: ControlNetGraphicsItem.cpp:77
ControlMeasure.h
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
ControlPointGraphicsItem.h