Isis 3.0 Programmer Reference
Back | Home
ControlCubeGraphNode.h
Go to the documentation of this file.
1 #ifndef ControlCubeGraphNode_h
2 #define ControlCubeGraphNode_h
3 
26 #include <QObject>
27 
28 template< typename A, typename B > class QHash;
29 template< typename T > class QList;
30 
31 class QString;
32 
33 namespace Isis {
34  class ControlMeasure;
35  class ControlPoint;
36 
67  class ControlCubeGraphNode : public QObject {
68 
69  Q_OBJECT
70 
71  public:
72  explicit ControlCubeGraphNode(QString sn);
74  virtual ~ControlCubeGraphNode();
75 
76  void addMeasure(ControlMeasure *measure);
77  void removeMeasure(ControlMeasure *measure);
78  void addConnection(ControlCubeGraphNode *, ControlPoint *);
79  void removeConnection(ControlCubeGraphNode *, ControlPoint *);
80 
81  bool contains(ControlPoint *point) const;
82  QString getSerialNumber() const;
83  int getMeasureCount() const;
84  QList< ControlMeasure * > getMeasures() const;
85  QList< ControlMeasure * > getValidMeasures() const;
86  QList< ControlCubeGraphNode * > getAdjacentNodes() const;
87  bool isConnected(ControlCubeGraphNode *other) const;
88 
89  ControlMeasure *getMeasure(ControlPoint *point);
90  const ControlMeasure *getMeasure(ControlPoint *point) const;
91  ControlMeasure *operator[](ControlPoint *point);
92  const ControlMeasure *operator[](ControlPoint *point) const;
93 
95 
96  QString connectionsToString() const;
97 
98 
99  private:
100  void nullify();
101 
102 
103  private:
104  QString *serialNumber;
105 
108 
114 
115  };
116 }
117 
118 #endif
Serial Number with added functionality for Control Networks.
QHash< ControlCubeGraphNode *, QList< ControlPoint * > > * connections
Stores a list of ControlPoints which establish a conection to the ControlCubeGraphNode that the list ...
QHash< ControlPoint *, ControlMeasure * > * measures
ControlMeasures hashed by ControlPoint.
bool contains(ControlPoint *point) const
void addMeasure(ControlMeasure *measure)
Adds a measure.
A single control point.
Definition: ControlPoint.h:339
a control measurement
virtual ~ControlCubeGraphNode()
Destroy a SerialNumber object.
ControlCubeGraphNode(QString sn)
Create an empty SerialNumber object.

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the ISIS Support Center
File Modified: 07/12/2023 23:16:15