USGS

Isis 3.0 Object Programmers' Reference

Home

Isis::ControlCubeGraphNode Class Reference

Serial Number with added functionality for Control Networks. More...

#include <ControlCubeGraphNode.h>

Inheritance diagram for Isis::ControlCubeGraphNode:
Inheritance graph
Collaboration diagram for Isis::ControlCubeGraphNode:
Collaboration graph

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
 
ControlMeasuregetMeasure (ControlPoint *point)
 
const ControlMeasuregetMeasure (ControlPoint *point) const
 
ControlMeasureoperator[] (ControlPoint *point)
 
const ControlMeasureoperator[] (ControlPoint *point) const
 
const ControlCubeGraphNodeoperator= (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.
 

Detailed Description

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.

Author
2011-01-14 Travis Addair and Christopher Austin
See Also
ControlPoint ControlMeasure
History:

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.

Constructor & Destructor Documentation

Isis::ControlCubeGraphNode::ControlCubeGraphNode ( QString  sn)
explicit

Create an empty SerialNumber object.

Definition at line 20 of file ControlCubeGraphNode.cpp.

References connections, and measures.

Isis::ControlCubeGraphNode::~ControlCubeGraphNode ( )
virtual

Destroy a SerialNumber object.

Definition at line 50 of file ControlCubeGraphNode.cpp.

References connections, and measures.

Member Function Documentation

void Isis::ControlCubeGraphNode::addMeasure ( ControlMeasure measure)
bool Isis::ControlCubeGraphNode::contains ( ControlPoint point) const
Parameters
pointThe ControlPoint to check for
Returns
true if the point is contained, false otherwise

Definition at line 73 of file ControlCubeGraphNode.cpp.

References measures.

Member Data Documentation

QHash< ControlCubeGraphNode *, QList< ControlPoint * > >* Isis::ControlCubeGraphNode::connections
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().

QHash< ControlPoint *, ControlMeasure * >* Isis::ControlCubeGraphNode::measures
private

ControlMeasures hashed by ControlPoint.

Definition at line 107 of file ControlCubeGraphNode.h.

Referenced by addMeasure(), contains(), ControlCubeGraphNode(), and ~ControlCubeGraphNode().


The documentation for this class was generated from the following files: