Isis 3 Developer Reference
ControlNetVitals.h
Go to the documentation of this file.
1 #ifndef ControlNetVitals_h
2 #define ControlNetVitals_h
3 
26 #include <QStringList>
27 
28 #include "ControlMeasure.h"
29 #include "ControlNet.h"
30 #include "ControlPoint.h"
31 
32 namespace Isis {
33  class ControlNet;
34 
35 
65  class ControlNetVitals : public QObject {
66  Q_OBJECT
67 
68  public:
70  virtual ~ControlNetVitals();
71 
72  void initializeVitals();
73 
74  bool hasIslands();
75  int numIslands();
77 
78  ControlPoint *getPoint(QString id);
79 
80  int numPoints();
81  int numIgnoredPoints();
82  int numLockedPoints();
83  int numFixedPoints();
85  int numFreePoints();
86  int numPointsBelowMeasureThreshold(int num=3);
87 
88  int numImages();
89  int numMeasures();
90  int numImagesBelowMeasureThreshold(int num=3);
91  int numImagesBelowHullTolerance(int tolerance=75);
92 
101 
104 
105  QString getNetworkId();
106  QString getStatus();
107  QString getStatusDetails();
108 
109  void emitHistoryEntry(QString entry, QString id, QVariant oldValue, QVariant newValue);
110 
111  signals:
112  void networkChanged();
113  void historyEntry(QString, QString, QVariant, QVariant, QString);
114 
115  public slots:
116  void validate();
118  void addPoint(ControlPoint *);
119  void pointModified(ControlPoint *, ControlPoint::ModType, QVariant, QVariant);
120  void deletePoint(ControlPoint *);
121  void addMeasure(ControlMeasure *);
122  void measureModified(ControlMeasure *, ControlMeasure::ModType, QVariant, QVariant);
124 
125 
126  private:
127  void addMeasureToCounts(ControlMeasure *measure);
128  void removeMeasureFromCounts(ControlMeasure *measure);
129 
131  ControlNet *m_controlNet;
132 
134  QString m_status;
136  QString m_statusDetails;
137 
140  QList< QList< QString > > m_islandList;
141 
146  QMap<int, int> m_pointMeasureCounts;
148  QMap<int, int> m_imageMeasureCounts;
149 
154  QMap<ControlPoint::PointType, int> m_pointTypeCounts;
155 
157  int m_numPoints;
159  int m_numPointsIgnored;
161  int m_numPointsLocked;
163  int m_numMeasures;
164  };
165 };
166 
167 #endif
QList< QString > getImagesBelowMeasureThreshold(int num=3)
This method is designed to return a QList containing cube serials for all images that fall below a me...
Definition: ControlNetVitals.cpp:798
void pointModified(ControlPoint *, ControlPoint::ModType, QVariant, QVariant)
This SLOT is designed to receive a signal emitted from the Control Network whenever a modification is...
Definition: ControlNetVitals.cpp:168
QList< ControlPoint * > getLockedPoints()
This method is designed to return all edit locked points in the Control Network.
Definition: ControlNetVitals.cpp:721
QList< ControlPoint * > getFreePoints()
This method is designed to return all free points in the Control Network.
Definition: ControlNetVitals.cpp:763
int numImagesBelowMeasureThreshold(int num=3)
This method is designed to return the number of images that fall below a measure threshold.
Definition: ControlNetVitals.cpp:653
void measureModified(ControlMeasure *, ControlMeasure::ModType, QVariant, QVariant)
This SLOT is designed to intercept the measureModified() signal emitted by a Control Network whenever...
Definition: ControlNetVitals.cpp:345
ControlNetVitals(ControlNet *net)
Constructs a ControlNetVitals object from a ControlNet.
Definition: ControlNetVitals.cpp:24
void historyEntry(QString, QString, QVariant, QVariant, QString)
int numIslands()
This method is designed to return the number of islands that exist in the ControlNet Graph...
Definition: ControlNetVitals.cpp:524
virtual ~ControlNetVitals()
De-constructor.
Definition: ControlNetVitals.cpp:503
QList< ControlPoint * > getPointsBelowMeasureThreshold(int num=3)
This method is designed to return all points that fall below a measure threshold. ...
Definition: ControlNetVitals.cpp:780
ModType
Control Measure Modification Types.
Definition: ControlMeasure.h:246
QString getStatusDetails()
This method is designed to return details for the status of the network.
Definition: ControlNetVitals.cpp:845
QList< ControlPoint * > getAllPoints()
This method is designed to return all points in the Control Network.
Definition: ControlNetVitals.cpp:697
QList< QString > getImagesBelowHullTolerance(int num=75)
This method is designed to return a QList containing cube serials for all images that fall below a co...
Definition: ControlNetVitals.cpp:818
int numPoints()
This method is designed to return the number of points in the Control Network.
Definition: ControlNetVitals.cpp:546
void addPoint(ControlPoint *)
This SLOT is designed to intercept the newPoint() signal emitted from a ControlNetwork whenever a new...
Definition: ControlNetVitals.cpp:121
QString getNetworkId()
This method is designed to return networkId of the observed Control Network.
Definition: ControlNetVitals.cpp:857
void emitHistoryEntry(QString entry, QString id, QVariant oldValue, QVariant newValue)
This method is designed to be called whenever a modification is made to the network, or any of it&#39;s control points or measures.
Definition: ControlNetVitals.cpp:102
ControlNetVitals.
Definition: ControlNetVitals.h:65
void validateNetwork(ControlNet::ModType)
This SLOT is designed to intercept the networkModified() signal emitted by a Control Network whenever...
Definition: ControlNetVitals.cpp:479
bool hasIslands()
This method is designed to return true if islands exist in the ControlNet Graph and False otherwise...
Definition: ControlNetVitals.cpp:513
void validate()
This method is designed to evaluate the current vitals of the network to determine if any weaknesses ...
Definition: ControlNetVitals.cpp:874
void deleteMeasure(ControlMeasure *)
This SLOT is designed to intercept the measureRemoved() signal emitted by a Control Network whenever ...
Definition: ControlNetVitals.cpp:382
const QList< QList< QString > > & getIslands()
This method is designed to return a QList containing each island present in the ControlNet.
Definition: ControlNetVitals.cpp:536
QString getStatus()
This method is designed to return the current status of the network.
Definition: ControlNetVitals.cpp:831
int numFreePoints()
This method is designed to return the number of free points in the Control Network.
Definition: ControlNetVitals.cpp:596
int numPointsBelowMeasureThreshold(int num=3)
This method is designed to return the number of points that fall below a measure threshold.
Definition: ControlNetVitals.cpp:609
a control network
Definition: ControlNet.h:271
int numIgnoredPoints()
This method is designed to return the number of ignored points in the Control Network.
Definition: ControlNetVitals.cpp:556
QList< ControlPoint * > getIgnoredPoints()
This method is designed to return all ignored points in the Control Network.
Definition: ControlNetVitals.cpp:707
int numLockedPoints()
This method is designed to return the number of edit locked points in the Control Network...
Definition: ControlNetVitals.cpp:566
int numImages()
This method is designed to return the number of images in the Control Network.
Definition: ControlNetVitals.cpp:630
A single control point.
Definition: ControlPoint.h:369
void deletePoint(ControlPoint *)
This SLOT is designed to intercept the removePoint() signal emitted by a Control Network whenever a p...
Definition: ControlNetVitals.cpp:277
QList< ControlPoint * > getConstrainedPoints()
This method is designed to return all constrained points in the Control Network.
Definition: ControlNetVitals.cpp:749
ModType
Control Point Modification Types.
Definition: ControlNet.h:288
void addMeasure(ControlMeasure *)
This SLOT is designed to intercept the newMeasure() signal emitted by a Control Network whenever a me...
Definition: ControlNetVitals.cpp:319
QList< ControlPoint * > getFixedPoints()
This method is designed to return all fixed points in the Control Network.
Definition: ControlNetVitals.cpp:735
ModType
Control Point Modification Types.
Definition: ControlPoint.h:446
ControlPoint * getPoint(QString id)
This method is designed to return the Control Point with the associated point id from the Control Net...
Definition: ControlNetVitals.cpp:257
void initializeVitals()
This will initialize all necessary values and set up the point measure and image measure QMaps approp...
Definition: ControlNetVitals.cpp:55
Definition: BoxcarCachingAlgorithm.h:29
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
a control measurement
Definition: ControlMeasure.h:189
int numConstrainedPoints()
This method is designed to return the number of constrained points in the Control Network...
Definition: ControlNetVitals.cpp:586
int numMeasures()
This method is designed to return the number of measures in the Control Network.
Definition: ControlNetVitals.cpp:640
QList< QString > getCubeSerials()
This method is designed to return all cube serials present in the Control Network.
Definition: ControlNetVitals.cpp:687
int numFixedPoints()
This method is designed to return the number of fixed points in the Control Network.
Definition: ControlNetVitals.cpp:576
int numImagesBelowHullTolerance(int tolerance=75)
This method is designed to return the number of images that fall below a hull tolerance.
Definition: ControlNetVitals.cpp:677