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
37
class
ControlNetGraphicsItem
:
public
QGraphicsObject
{
38
Q_OBJECT
39
40
public
:
41
ControlNetGraphicsItem
(
ControlNet
*controlNet,
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.
70
QMap<ControlPoint *, QPair<QPointF, QPointF>
> *m_pointToScene;
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
QWidget
Isis::MosaicSceneWidget
This widget encompasses the entire mosaic scene.
Definition:
MosaicSceneWidget.h:153
Isis::ControlNetGraphicsItem::findClosestControlPoint
ControlPoint * findClosestControlPoint(QPointF locationPoint)
Return the closest control point to the pointLocation.
Definition:
ControlNetGraphicsItem.cpp:302
QGraphicsObject
Isis::SerialNumberList
Serial Number list generator.
Definition:
SerialNumberList.h:64
Isis::ControlPoint
A single control point.
Definition:
ControlPoint.h:354
Isis::ControlNet
a control network
Definition:
ControlNet.h:257
Isis::ControlNetGraphicsItem
Control Network Display on Mosaic Scene.
Definition:
ControlNetGraphicsItem.h:37
QPair< QPointF, QPointF >
QMap
This is free and unencumbered software released into the public domain.
Definition:
CubeIoHandler.h:22
Isis::ControlNetGraphicsItem::buildChildren
void buildChildren()
Call this to re-calculate where control points ought to lie.
Definition:
ControlNetGraphicsItem.cpp:240
Isis
This is free and unencumbered software released into the public domain.
Definition:
Apollo.h:16
src
qisis
objs
MosaicSceneWidget
ControlNetGraphicsItem.h