Isis 3.0 Object Programmers' Reference |
Home |
Serial Number with added functionality for Control Networks. More...
#include <ControlCubeGraphNode.h>
Public Member Functions | |
ControlCubeGraphNode (QString sn) | |
Create an empty SerialNumber object. | |
ControlCubeGraphNode (const ControlCubeGraphNode &other) | |
virtual | ~ControlCubeGraphNode () |
Destroy a SerialNumber object. | |
void | addMeasure (ControlMeasure *measure) |
Adds a measure. | |
void | removeMeasure (ControlMeasure *measure) |
void | addConnection (ControlCubeGraphNode *, ControlPoint *) |
void | removeConnection (ControlCubeGraphNode *, ControlPoint *) |
bool | contains (ControlPoint *point) const |
QString | getSerialNumber () const |
int | getMeasureCount () const |
QList< ControlMeasure * > | getMeasures () const |
QList< ControlMeasure * > | getValidMeasures () const |
QList< ControlCubeGraphNode * > | getAdjacentNodes () const |
bool | isConnected (ControlCubeGraphNode *other) const |
ControlMeasure * | getMeasure (ControlPoint *point) |
const ControlMeasure * | getMeasure (ControlPoint *point) const |
ControlMeasure * | operator[] (ControlPoint *point) |
const ControlMeasure * | operator[] (ControlPoint *point) const |
const ControlCubeGraphNode & | operator= (ControlCubeGraphNode) |
QString | connectionsToString () const |
Private Member Functions | |
void | nullify () |
Private Attributes | |
QString * | serialNumber |
QHash< ControlPoint *, ControlMeasure * > * | measures |
ControlMeasures hashed by ControlPoint. | |
QHash< ControlCubeGraphNode *, QList< ControlPoint * > > * | connections |
Stores a list of ControlPoints which establish a conection to the ControlCubeGraphNode that the list is hashed by. | |
Serial Number with added functionality for Control Networks.
This class is extends the Serial Number class in order to directly point between its associated measures in a Control Network and back.
2011-01-14 Travis Addair and Christopher Austin - original version
2011-02-18 Eric Hyer - This class now also acts as a vertex class for a graph where edges are the connections between images. This means that connections are stored to other ControlCubeGraphNode objects who have measures which have the same parent (point) as measures here.
2011-02-22 Eric Hyer - Added isConnected() and getAdjacentNodes methods
2011-03-15 Eric Hyer - Connections handled more simply - fixed connection related bugs
2011-06-22 James Alexander Crough and Eric Hyer- Added getValidMeasures method.
2011-07-29 Jai Rideout, Steven Lambright, and Eric Hyer - Made this inherit from QObject to get destroyed() signal
Definition at line 67 of file ControlCubeGraphNode.h.
|
explicit |
Create an empty SerialNumber object.
Definition at line 20 of file ControlCubeGraphNode.cpp.
References connections, and measures.
|
virtual |
Destroy a SerialNumber object.
Definition at line 50 of file ControlCubeGraphNode.cpp.
References connections, and measures.
void Isis::ControlCubeGraphNode::addMeasure | ( | ControlMeasure * | measure | ) |
Adds a measure.
measure | The ControlMeasure to add |
Definition at line 83 of file ControlCubeGraphNode.cpp.
References _FILEINFO_, Isis::ControlMeasure::associatedCSN, Isis::ControlMeasure::GetCubeSerialNumber(), measures, and Isis::IException::User.
Referenced by Isis::ControlNet::measureAdded().
bool Isis::ControlCubeGraphNode::contains | ( | ControlPoint * | point | ) | const |
point | The ControlPoint to check for |
Definition at line 73 of file ControlCubeGraphNode.cpp.
References measures.
|
private |
Stores a list of ControlPoints which establish a conection to the ControlCubeGraphNode that the list is hashed by.
Definition at line 113 of file ControlCubeGraphNode.h.
Referenced by ControlCubeGraphNode(), and ~ControlCubeGraphNode().
|
private |
ControlMeasures hashed by ControlPoint.
Definition at line 107 of file ControlCubeGraphNode.h.
Referenced by addMeasure(), contains(), ControlCubeGraphNode(), and ~ControlCubeGraphNode().