Isis Developer Reference
ControlNetVitals.h
Go to the documentation of this file.
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:
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);
114  void removeMeasureFromCounts(ControlMeasure *measure);
115 
117  ControlNet *m_controlNet;
118 
120  QString m_status;
122  QString m_statusDetails;
123 
126  QList< QList< QString > > m_islandList;
127 
132  QMap<int, int> m_pointMeasureCounts;
134  QMap<int, int> m_imageMeasureCounts;
135 
140  QMap<ControlPoint::PointType, int> m_pointTypeCounts;
141 
143  int m_numPoints;
145  int m_numPointsIgnored;
147  int m_numPointsLocked;
149  int m_numMeasures;
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::ControlPoint::EditLockModified
@ EditLockModified
Definition: ControlPoint.h:432
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::ControlNet::GetNetworkId
QString GetNetworkId() const
Definition: ControlNet.cpp:1338
Isis::ControlNetVitals::historyEntry
void historyEntry(QString, QString, QVariant, QVariant, QString)
Isis::ControlMeasure::Parent
ControlPoint * Parent()
Definition: ControlMeasure.h:260
Isis::ControlNetVitals::networkChanged
void networkChanged()
Isis::ControlPoint::PointTypeToString
static QString PointTypeToString(PointType type)
Obtain a string representation of a given PointType.
Definition: ControlPoint.cpp:1333
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::ControlPoint::TypeModified
@ TypeModified
Definition: ControlPoint.h:434
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::GetValidMeasuresInCube
QList< ControlMeasure * > GetValidMeasuresInCube(QString serialNumber)
Get all the valid measures pertaining to a given cube serial number.
Definition: ControlNet.cpp:1081
Isis::ControlNet::ModType
ModType
Control Point Modification Types.
Definition: ControlNet.h:274
Isis::ControlPoint::GetNumMeasures
int GetNumMeasures() const
Definition: ControlPoint.cpp:1702
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::ControlNet::GetNumberOfValidMeasuresInImage
int GetNumberOfValidMeasuresInImage(const QString &serialNumber)
Return the number of measures in image specified by serialNumber.
Definition: ControlNet.cpp:1399
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::ControlPoint::PointType
PointType
These are the valid 'types' of point.
Definition: ControlPoint.h:364
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::ControlPoint::IsEditLocked
bool IsEditLocked() const
Definition: ControlPoint.cpp:1272
Isis::ControlPoint::GetId
QString GetId() const
Return the Id of the control point.
Definition: ControlPoint.cpp:1306
Isis::ControlNetVitals::getIgnoredPoints
QList< ControlPoint * > getIgnoredPoints()
This method is designed to return all ignored points in the Control Network.
Definition: ControlNetVitals.cpp:715
Isis::toString
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Definition: IString.cpp:211
Isis::ControlPoint::GetNumValidMeasures
int GetNumValidMeasures() const
Definition: ControlPoint.cpp:1711
Isis::ControlNet::GetNumMeasures
int GetNumMeasures() const
Returns the total number of measures for all control points in the network.
Definition: ControlNet.cpp:1454
Isis::ControlNet::GetCubeSerials
QList< QString > GetCubeSerials() const
Use this method to get a complete list of all the cube serial numbers in the network.
Definition: ControlNet.cpp:1016
IString.h
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::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::ControlMeasure::GetCubeSerialNumber
QString GetCubeSerialNumber() const
Return the serial number of the cube containing the coordinate.
Definition: ControlMeasure.cpp:557
Isis::ControlPoint
A single control point.
Definition: ControlPoint.h:354
Isis::ControlPoint::Fixed
@ Fixed
A Fixed point is a Control Point whose lat/lon is well established and should not be changed.
Definition: ControlPoint.h:371
Isis::ControlNetVitals::numPoints
int numPoints()
This method is designed to return the number of points in the Control Network.
Definition: ControlNetVitals.cpp:554
ControlNet.h
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::ControlMeasure::IgnoredModified
@ IgnoredModified
Definition: ControlMeasure.h:233
Isis::ControlNet::GetPoints
QList< ControlPoint * > GetPoints()
Return QList of all the ControlPoints in the network.
Definition: ControlNet.cpp:1524
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::ControlNet::GraphModified
@ GraphModified
Definition: ControlNet.h:276
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::ControlPoint::Constrained
@ Constrained
A Constrained point is a Control Point whose lat/lon/radius is somewhat established and should not be...
Definition: ControlPoint.h:376
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::ControlNet::GetNumValidMeasures
int GetNumValidMeasures()
Return the number of valid (non-ignored) measures for all control points in the network.
Definition: ControlNet.cpp:1479
Isis::ControlNetVitals::getCubeSerials
QList< QString > getCubeSerials()
This method is designed to return all cube serials present in the Control Network.
Definition: ControlNetVitals.cpp:695
ControlPoint.h
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::ControlPoint::Parent
ControlNet * Parent()
Definition: ControlPoint.h:466
IException.h
Isis::ControlPoint::ModType
ModType
Control Point Modification Types.
Definition: ControlPoint.h:431
Isis::ControlPoint::IgnoredModified
@ IgnoredModified
Definition: ControlPoint.h:433
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::ControlPoint::Free
@ Free
A Free point is a Control Point that identifies common measurements between two or more cubes.
Definition: ControlPoint.h:384
Isis::ControlNetVitals::numMeasures
int numMeasures()
This method is designed to return the number of measures in the Control Network.
Definition: ControlNetVitals.cpp:648
QMap
This is free and unencumbered software released into the public domain.
Definition: CubeIoHandler.h:22
Isis::ControlPoint::IsIgnored
bool IsIgnored() const
Definition: ControlPoint.cpp:1311
Isis::ControlPoint::GetType
PointType GetType() const
Definition: ControlPoint.cpp:1401
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::ControlNet::Swapped
@ Swapped
Definition: ControlNet.h:275
Isis::ControlNetVitals::~ControlNetVitals
virtual ~ControlNetVitals()
De-constructor.
Definition: ControlNetVitals.cpp:511
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::ControlNet::GetPoint
const ControlPoint * GetPoint(QString pointId) const
Definition: ControlNet.cpp:1815
ControlNetVitals.h
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
ControlMeasure.h
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::ControlNet::GetSerialConnections
QList< QList< QString > > GetSerialConnections() const
This method searches through all the cube serial numbers in the network.
Definition: ControlNet.cpp:967
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