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
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:
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);
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
a control measurement
Definition ControlMeasure.h:175
ModType
Control Measure Modification Types.
Definition ControlMeasure.h:232
a control network
Definition ControlNet.h:258
ModType
Control Point Modification Types.
Definition ControlNet.h:275
ControlNetVitals.
Definition ControlNetVitals.h:51
QList< QString > getCubeSerials()
This method is designed to return all cube serials present in the Control Network.
Definition ControlNetVitals.cpp:695
QList< ControlPoint * > getAllPoints()
This method is designed to return all points in the Control Network.
Definition ControlNetVitals.cpp:705
QList< ControlPoint * > getFixedPoints()
This method is designed to return all fixed points in the Control Network.
Definition ControlNetVitals.cpp:743
void deletePoint(ControlPoint *)
This SLOT is designed to intercept the removePoint() signal emitted by a Control Network whenever a p...
Definition ControlNetVitals.cpp:285
void addPoint(ControlPoint *)
This SLOT is designed to intercept the newPoint() signal emitted from a ControlNetwork whenever a new...
Definition ControlNetVitals.cpp:129
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
QString getNetworkId()
This method is designed to return networkId of the observed Control Network.
Definition ControlNetVitals.cpp:865
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
int numFixedPoints()
This method is designed to return the number of fixed points in the Control Network.
Definition ControlNetVitals.cpp:584
QString getStatus()
This method is designed to return the current status of the network.
Definition ControlNetVitals.cpp:839
void deleteMeasure(ControlMeasure *)
This SLOT is designed to intercept the measureRemoved() signal emitted by a Control Network whenever ...
Definition ControlNetVitals.cpp:390
int numIgnoredPoints()
This method is designed to return the number of ignored points in the Control Network.
Definition ControlNetVitals.cpp:564
int numLockedPoints()
This method is designed to return the number of edit locked points in the Control Network.
Definition ControlNetVitals.cpp:574
virtual ~ControlNetVitals()
De-constructor.
Definition ControlNetVitals.cpp:511
int numPoints()
This method is designed to return the number of points in the Control Network.
Definition ControlNetVitals.cpp:554
ControlNetVitals(ControlNet *net)
Constructs a ControlNetVitals object from a ControlNet.
Definition ControlNetVitals.cpp:32
void validateNetwork(ControlNet::ModType)
This SLOT is designed to intercept the networkModified() signal emitted by a Control Network whenever...
Definition ControlNetVitals.cpp:487
QString getStatusDetails()
This method is designed to return details for the status of the network.
Definition ControlNetVitals.cpp:853
bool hasIslands()
This method is designed to return true if islands exist in the ControlNet Graph and False otherwise.
Definition ControlNetVitals.cpp:521
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
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
int numImages()
This method is designed to return the number of images in the Control Network.
Definition ControlNetVitals.cpp:638
const QList< QList< QString > > & getIslands()
This method is designed to return a QList containing each island present in the ControlNet.
Definition ControlNetVitals.cpp:544
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
void validate()
This method is designed to evaluate the current vitals of the network to determine if any weaknesses ...
Definition ControlNetVitals.cpp:882
void addMeasure(ControlMeasure *)
This SLOT is designed to intercept the newMeasure() signal emitted by a Control Network whenever a me...
Definition ControlNetVitals.cpp:327
int numFreePoints()
This method is designed to return the number of free points in the Control Network.
Definition ControlNetVitals.cpp:604
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
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
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
QList< ControlPoint * > getIgnoredPoints()
This method is designed to return all ignored points in the Control Network.
Definition ControlNetVitals.cpp:715
QList< ControlPoint * > getLockedPoints()
This method is designed to return all edit locked points in the Control Network.
Definition ControlNetVitals.cpp:729
void historyEntry(QString, QString, QVariant, QVariant, QString)
QList< ControlPoint * > getFreePoints()
This method is designed to return all free points in the Control Network.
Definition ControlNetVitals.cpp:771
QList< ControlPoint * > getConstrainedPoints()
This method is designed to return all constrained points in the Control Network.
Definition ControlNetVitals.cpp:757
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
QList< ControlPoint * > getPointsBelowMeasureThreshold(int num=3)
This method is designed to return all points that fall below a measure threshold.
Definition ControlNetVitals.cpp:788
int numIslands()
This method is designed to return the number of islands that exist in the ControlNet Graph.
Definition ControlNetVitals.cpp:532
void initializeVitals()
This will initialize all necessary values and set up the point measure and image measure QMaps approp...
Definition ControlNetVitals.cpp:63
int numConstrainedPoints()
This method is designed to return the number of constrained points in the Control Network.
Definition ControlNetVitals.cpp:594
int numMeasures()
This method is designed to return the number of measures in the Control Network.
Definition ControlNetVitals.cpp:648
A single control point.
Definition ControlPoint.h:356
ModType
Control Point Modification Types.
Definition ControlPoint.h:433
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16