Isis 3 Programmer Reference
ControlNetVitals.h
1 #ifndef ControlNetVitals_h
2 #define ControlNetVitals_h
3 
10 /* SPDX-License-Identifier: CC0-1.0 */
11 
12 #include <QStringList>
13 
14 #include "ControlMeasure.h"
15 #include "ControlNet.h"
16 #include "ControlPoint.h"
17 
18 namespace Isis {
19  class ControlNet;
20 
21 
51  class ControlNetVitals : public QObject {
52  Q_OBJECT
53 
54  public:
56  virtual ~ControlNetVitals();
57 
58  void initializeVitals();
59 
60  bool hasIslands();
61  int numIslands();
63 
64  ControlPoint *getPoint(QString id);
65 
66  int numPoints();
67  int numIgnoredPoints();
68  int numLockedPoints();
69  int numFixedPoints();
71  int numFreePoints();
72  int numPointsBelowMeasureThreshold(int num=3);
73 
74  int numImages();
75  int numMeasures();
76  int numImagesBelowMeasureThreshold(int num=3);
77  int numImagesBelowHullTolerance(int tolerance=75);
78 
87 
90 
91  QString getNetworkId();
92  QString getStatus();
93  QString getStatusDetails();
94 
95  void emitHistoryEntry(QString entry, QString id, QVariant oldValue, QVariant newValue);
96 
97  signals:
98  void networkChanged();
99  void historyEntry(QString, QString, QVariant, QVariant, QString);
100 
101  public slots:
102  void validate();
104  void addPoint(ControlPoint *);
105  void pointModified(ControlPoint *, ControlPoint::ModType, QVariant, QVariant);
106  void deletePoint(ControlPoint *);
107  void addMeasure(ControlMeasure *);
108  void measureModified(ControlMeasure *, ControlMeasure::ModType, QVariant, QVariant);
110 
111 
112  private:
113  void addMeasureToCounts(ControlMeasure *measure);
115 
118 
120  QString m_status;
123 
127 
135 
141 
150  };
151 };
152 
153 #endif
Isis::ControlNetVitals::validateNetwork
void validateNetwork(ControlNet::ModType)
This SLOT is designed to intercept the networkModified() signal emitted by a Control Network whenever...
Definition: ControlNetVitals.cpp:487
Isis::ControlNetVitals::measureModified
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:353
Isis::ControlNetVitals::getImagesBelowMeasureThreshold
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:806
Isis::ControlNetVitals::ControlNetVitals
ControlNetVitals(ControlNet *net)
Constructs a ControlNetVitals object from a ControlNet.
Definition: ControlNetVitals.cpp:32
Isis::ControlNetVitals::m_status
QString m_status
The string representing the status of the net. Healthy, Weak, or Broken.
Definition: ControlNetVitals.h:120
Isis::ControlNetVitals::hasIslands
bool hasIslands()
This method is designed to return true if islands exist in the ControlNet Graph and False otherwise.
Definition: ControlNetVitals.cpp:521
Isis::ControlNetVitals::emitHistoryEntry
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,...
Definition: ControlNetVitals.cpp:110
Isis::ControlNetVitals::m_islandList
QList< QList< QString > > m_islandList
A QList containing every island in the net. Each island consists of a QList containing All cube seria...
Definition: ControlNetVitals.h:126
Isis::ControlNetVitals::deleteMeasure
void deleteMeasure(ControlMeasure *)
This SLOT is designed to intercept the measureRemoved() signal emitted by a Control Network whenever ...
Definition: ControlNetVitals.cpp:390
QList
This is free and unencumbered software released into the public domain.
Definition: BoxcarCachingAlgorithm.h:13
Isis::ControlNetVitals::getFreePoints
QList< ControlPoint * > getFreePoints()
This method is designed to return all free points in the Control Network.
Definition: ControlNetVitals.cpp:771
Isis::ControlNetVitals::getAllPoints
QList< ControlPoint * > getAllPoints()
This method is designed to return all points in the Control Network.
Definition: ControlNetVitals.cpp:705
Isis::ControlNetVitals::numFreePoints
int numFreePoints()
This method is designed to return the number of free points in the Control Network.
Definition: ControlNetVitals.cpp:604
Isis::ControlNet::ModType
ModType
Control Point Modification Types.
Definition: ControlNet.h:274
Isis::ControlNetVitals::m_numPointsLocked
int m_numPointsLocked
The number of edit locked points in the network.
Definition: ControlNetVitals.h:147
Isis::ControlNetVitals::getImagesBelowHullTolerance
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:826
Isis::ControlNetVitals::numImagesBelowHullTolerance
int numImagesBelowHullTolerance(int tolerance=75)
This method is designed to return the number of images that fall below a hull tolerance.
Definition: ControlNetVitals.cpp:685
Isis::ControlNetVitals::removeMeasureFromCounts
void removeMeasureFromCounts(ControlMeasure *measure)
Remove a measure from the internal counters.
Definition: ControlNetVitals.cpp:443
Isis::ControlNetVitals::getIslands
const QList< QList< QString > > & getIslands()
This method is designed to return a QList containing each island present in the ControlNet.
Definition: ControlNetVitals.cpp:544
Isis::ControlNetVitals::getIgnoredPoints
QList< ControlPoint * > getIgnoredPoints()
This method is designed to return all ignored points in the Control Network.
Definition: ControlNetVitals.cpp:715
Isis::ControlNetVitals::getPointsBelowMeasureThreshold
QList< ControlPoint * > getPointsBelowMeasureThreshold(int num=3)
This method is designed to return all points that fall below a measure threshold.
Definition: ControlNetVitals.cpp:788
Isis::ControlNetVitals::m_numMeasures
int m_numMeasures
The number of measures in the network.
Definition: ControlNetVitals.h:149
Isis::ControlNetVitals::validate
void validate()
This method is designed to evaluate the current vitals of the network to determine if any weaknesses ...
Definition: ControlNetVitals.cpp:882
Isis::ControlNetVitals::getStatusDetails
QString getStatusDetails()
This method is designed to return details for the status of the network.
Definition: ControlNetVitals.cpp:853
Isis::ControlPoint
A single control point.
Definition: ControlPoint.h:354
Isis::ControlNetVitals::numPoints
int numPoints()
This method is designed to return the number of points in the Control Network.
Definition: ControlNetVitals.cpp:554
Isis::ControlNetVitals::m_pointTypeCounts
QMap< ControlPoint::PointType, int > m_pointTypeCounts
The pointTypeCounts operates in the same fashion as the above two, except that the key would be the C...
Definition: ControlNetVitals.h:140
Isis::ControlMeasure::ModType
ModType
Control Measure Modification Types.
Definition: ControlMeasure.h:232
Isis::ControlNetVitals::addPoint
void addPoint(ControlPoint *)
This SLOT is designed to intercept the newPoint() signal emitted from a ControlNetwork whenever a new...
Definition: ControlNetVitals.cpp:129
Isis::ControlNetVitals::numIgnoredPoints
int numIgnoredPoints()
This method is designed to return the number of ignored points in the Control Network.
Definition: ControlNetVitals.cpp:564
Isis::ControlNetVitals::numImages
int numImages()
This method is designed to return the number of images in the Control Network.
Definition: ControlNetVitals.cpp:638
Isis::ControlNetVitals::numLockedPoints
int numLockedPoints()
This method is designed to return the number of edit locked points in the Control Network.
Definition: ControlNetVitals.cpp:574
Isis::ControlNetVitals::getFixedPoints
QList< ControlPoint * > getFixedPoints()
This method is designed to return all fixed points in the Control Network.
Definition: ControlNetVitals.cpp:743
Isis::ControlNetVitals::numPointsBelowMeasureThreshold
int numPointsBelowMeasureThreshold(int num=3)
This method is designed to return the number of points that fall below a measure threshold.
Definition: ControlNetVitals.cpp:617
Isis::ControlNetVitals::m_statusDetails
QString m_statusDetails
The string providing details into the status of the network.
Definition: ControlNetVitals.h:122
Isis::ControlNetVitals::addMeasureToCounts
void addMeasureToCounts(ControlMeasure *measure)
Add a measure to the internal counters.
Definition: ControlNetVitals.cpp:407
Isis::ControlNetVitals::deletePoint
void deletePoint(ControlPoint *)
This SLOT is designed to intercept the removePoint() signal emitted by a Control Network whenever a p...
Definition: ControlNetVitals.cpp:285
Isis::ControlNetVitals::getConstrainedPoints
QList< ControlPoint * > getConstrainedPoints()
This method is designed to return all constrained points in the Control Network.
Definition: ControlNetVitals.cpp:757
Isis::ControlNetVitals
ControlNetVitals.
Definition: ControlNetVitals.h:51
Isis::ControlNetVitals::initializeVitals
void initializeVitals()
This will initialize all necessary values and set up the point measure and image measure QMaps approp...
Definition: ControlNetVitals.cpp:63
Isis::ControlNetVitals::getCubeSerials
QList< QString > getCubeSerials()
This method is designed to return all cube serials present in the Control Network.
Definition: ControlNetVitals.cpp:695
Isis::ControlNet
a control network
Definition: ControlNet.h:257
Isis::ControlNetVitals::getPoint
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:265
Isis::ControlNetVitals::getStatus
QString getStatus()
This method is designed to return the current status of the network.
Definition: ControlNetVitals.cpp:839
Isis::ControlNetVitals::m_numPoints
int m_numPoints
The number of points in the network.
Definition: ControlNetVitals.h:143
Isis::ControlPoint::ModType
ModType
Control Point Modification Types.
Definition: ControlPoint.h:431
Isis::ControlNetVitals::numConstrainedPoints
int numConstrainedPoints()
This method is designed to return the number of constrained points in the Control Network.
Definition: ControlNetVitals.cpp:594
Isis::ControlNetVitals::numMeasures
int numMeasures()
This method is designed to return the number of measures in the Control Network.
Definition: ControlNetVitals.cpp:648
Isis::ControlNetVitals::m_pointMeasureCounts
QMap< int, int > m_pointMeasureCounts
The measureCount maps track how many points/images have how many measures. For instance,...
Definition: ControlNetVitals.h:132
QMap< int, int >
Isis::ControlNetVitals::m_imageMeasureCounts
QMap< int, int > m_imageMeasureCounts
The same is true for imageMeasureCounts, except for images.
Definition: ControlNetVitals.h:134
QObject
Isis::ControlNetVitals::pointModified
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:176
Isis::ControlNetVitals::m_controlNet
ControlNet * m_controlNet
The Control Network that the vitals class is observing.
Definition: ControlNetVitals.h:117
Isis::ControlNetVitals::~ControlNetVitals
virtual ~ControlNetVitals()
De-constructor.
Definition: ControlNetVitals.cpp:511
Isis::ControlNetVitals::m_numPointsIgnored
int m_numPointsIgnored
The number of ignored points in the network.
Definition: ControlNetVitals.h:145
Isis::ControlNetVitals::numImagesBelowMeasureThreshold
int numImagesBelowMeasureThreshold(int num=3)
This method is designed to return the number of images that fall below a measure threshold.
Definition: ControlNetVitals.cpp:661
Isis::ControlNetVitals::addMeasure
void addMeasure(ControlMeasure *)
This SLOT is designed to intercept the newMeasure() signal emitted by a Control Network whenever a me...
Definition: ControlNetVitals.cpp:327
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::ControlNetVitals::getLockedPoints
QList< ControlPoint * > getLockedPoints()
This method is designed to return all edit locked points in the Control Network.
Definition: ControlNetVitals.cpp:729
Isis::ControlNetVitals::numFixedPoints
int numFixedPoints()
This method is designed to return the number of fixed points in the Control Network.
Definition: ControlNetVitals.cpp:584
Isis::ControlNetVitals::numIslands
int numIslands()
This method is designed to return the number of islands that exist in the ControlNet Graph.
Definition: ControlNetVitals.cpp:532
Isis::ControlMeasure
a control measurement
Definition: ControlMeasure.h:175
Isis::ControlNetVitals::getNetworkId
QString getNetworkId()
This method is designed to return networkId of the observed Control Network.
Definition: ControlNetVitals.cpp:865