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
18namespace 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();
62 const QList< QList<QString> > &getIslands();
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
79 QList<QString> getCubeSerials();
80 QList<ControlPoint*> getAllPoints();
81 QList<ControlPoint*> getIgnoredPoints();
82 QList<ControlPoint*> getLockedPoints();
83 QList<ControlPoint*> getFixedPoints();
84 QList<ControlPoint*> getConstrainedPoints();
85 QList<ControlPoint*> getFreePoints();
86 QList<ControlPoint*> getPointsBelowMeasureThreshold(int num=3);
87
88 QList<QString> getImagesBelowMeasureThreshold(int num=3);
89 QList<QString> getImagesBelowHullTolerance(int num=75);
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);
108 void measureModified(ControlMeasure *, ControlMeasure::ModType, QVariant, QVariant);
110
111
112 private:
113 void addMeasureToCounts(ControlMeasure *measure);
115
118
120 QString m_status;
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
150 };
151};
152
153#endif
a control measurement
ModType
Control Measure Modification Types.
a control network
Definition ControlNet.h:258
ModType
Control Point Modification Types.
Definition ControlNet.h:275
int m_numPointsIgnored
The number of ignored points in the network.
void addMeasureToCounts(ControlMeasure *measure)
Add a measure to the internal counters.
QList< QString > getCubeSerials()
This method is designed to return all cube serials present in the Control Network.
QList< ControlPoint * > getAllPoints()
This method is designed to return all points in the Control Network.
QList< ControlPoint * > getFixedPoints()
This method is designed to return all fixed points in the Control Network.
void deletePoint(ControlPoint *)
This SLOT is designed to intercept the removePoint() signal emitted by a Control Network whenever a p...
int m_numMeasures
The number of measures in the network.
void addPoint(ControlPoint *)
This SLOT is designed to intercept the newPoint() signal emitted from a ControlNetwork whenever a new...
ControlNet * m_controlNet
The Control Network that the vitals class is observing.
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,...
QString getNetworkId()
This method is designed to return networkId of the observed Control Network.
ControlPoint * getPoint(QString id)
This method is designed to return the Control Point with the associated point id from the Control Net...
int numFixedPoints()
This method is designed to return the number of fixed points in the Control Network.
QString getStatus()
This method is designed to return the current status of the network.
QMap< int, int > m_pointMeasureCounts
The measureCount maps track how many points/images have how many measures. For instance,...
void deleteMeasure(ControlMeasure *)
This SLOT is designed to intercept the measureRemoved() signal emitted by a Control Network whenever ...
int numIgnoredPoints()
This method is designed to return the number of ignored points in the Control Network.
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...
int numLockedPoints()
This method is designed to return the number of edit locked points in the Control Network.
virtual ~ControlNetVitals()
De-constructor.
int numPoints()
This method is designed to return the number of points in the Control Network.
ControlNetVitals(ControlNet *net)
Constructs a ControlNetVitals object from a ControlNet.
void validateNetwork(ControlNet::ModType)
This SLOT is designed to intercept the networkModified() signal emitted by a Control Network whenever...
QString getStatusDetails()
This method is designed to return details for the status of the network.
bool hasIslands()
This method is designed to return true if islands exist in the ControlNet Graph and False otherwise.
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...
int numImagesBelowMeasureThreshold(int num=3)
This method is designed to return the number of images that fall below a measure threshold.
int numImages()
This method is designed to return the number of images in the Control Network.
const QList< QList< QString > > & getIslands()
This method is designed to return a QList containing each island present in the ControlNet.
void removeMeasureFromCounts(ControlMeasure *measure)
Remove a measure from the internal counters.
QString m_status
The string representing the status of the net. Healthy, Weak, or Broken.
void measureModified(ControlMeasure *, ControlMeasure::ModType, QVariant, QVariant)
This SLOT is designed to intercept the measureModified() signal emitted by a Control Network whenever...
void validate()
This method is designed to evaluate the current vitals of the network to determine if any weaknesses ...
void addMeasure(ControlMeasure *)
This SLOT is designed to intercept the newMeasure() signal emitted by a Control Network whenever a me...
int numFreePoints()
This method is designed to return the number of free points in the Control Network.
int numPointsBelowMeasureThreshold(int num=3)
This method is designed to return the number of points that fall below a measure threshold.
int numImagesBelowHullTolerance(int tolerance=75)
This method is designed to return the number of images that fall below a hull tolerance.
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...
QList< ControlPoint * > getIgnoredPoints()
This method is designed to return all ignored points in the Control Network.
QList< ControlPoint * > getLockedPoints()
This method is designed to return all edit locked points in the Control Network.
QList< QList< QString > > m_islandList
A QList containing every island in the net. Each island consists of a QList containing All cube seria...
QMap< int, int > m_imageMeasureCounts
The same is true for imageMeasureCounts, except for images.
int m_numPointsLocked
The number of edit locked points in the network.
QList< ControlPoint * > getFreePoints()
This method is designed to return all free points in the Control Network.
QList< ControlPoint * > getConstrainedPoints()
This method is designed to return all constrained points in the Control Network.
void pointModified(ControlPoint *, ControlPoint::ModType, QVariant, QVariant)
This SLOT is designed to receive a signal emitted from the Control Network whenever a modification is...
QList< ControlPoint * > getPointsBelowMeasureThreshold(int num=3)
This method is designed to return all points that fall below a measure threshold.
int numIslands()
This method is designed to return the number of islands that exist in the ControlNet Graph.
QString m_statusDetails
The string providing details into the status of the network.
void initializeVitals()
This will initialize all necessary values and set up the point measure and image measure QMaps approp...
int m_numPoints
The number of points in the network.
int numConstrainedPoints()
This method is designed to return the number of constrained points in the Control Network.
int numMeasures()
This method is designed to return the number of measures in the Control Network.
A single control point.
ModType
Control Point Modification Types.
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16