Isis 3.0 Object Programmers' Reference |
Home |
Control Graph nested class. More...
Public Member Functions | |
AdjacentCubeList (const int &cubeIndex, const int &cpIndex, const int &cmIndex) | |
Construct a new AdjacentCubeList given one initial adjacent connection. | |
AdjacentCubeList (const AdjacentCubeList &other) | |
copy construct an AdjacentCubeList | |
~AdjacentCubeList () | |
destruct an AdjacentCubeList | |
const QVector< int > | GetAdjacentCubes () const |
void | AddConnection (const int &cubeIndex, const int &cpIndex, const int &cmIndex) |
Adds a connection to an AdjacentCubeList. | |
AdjacentCubeList & | operator= (const AdjacentCubeList &other) |
Private Attributes | |
QMap< int, QVector< QPair< int, int > > > * | connections |
stores all edges or connections for an adjacent cube |
Control Graph nested class.
This class is used to store adjacent cube connections for ControlGraph
Definition at line 118 of file ControlGraph.h.
Isis::ControlGraph::AdjacentCubeList::AdjacentCubeList | ( | const int & | cubeIndex, |
const int & | cpIndex, | ||
const int & | cmIndex | ||
) |
Construct a new AdjacentCubeList given one initial adjacent connection.
An adjacent connection means both an adjacent vertex as well as the edge that connects it. The cubeIndex is the vertex. The edge is a ControlPoint - ControlMeasure combo.
cubeIndex | First adjacent cube |
cpIndex | ControlPoint Index |
cmIndex | ControlMeasure Index |
Definition at line 385 of file ControlGraph.cpp.
References connections.
Isis::ControlGraph::AdjacentCubeList::AdjacentCubeList | ( | const AdjacentCubeList & | other | ) |
copy construct an AdjacentCubeList
other | The AdjacentCubeList to construct a copy of |
Definition at line 401 of file ControlGraph.cpp.
References connections.
Isis::ControlGraph::AdjacentCubeList::~AdjacentCubeList | ( | ) |
destruct an AdjacentCubeList
Definition at line 410 of file ControlGraph.cpp.
void Isis::ControlGraph::AdjacentCubeList::AddConnection | ( | const int & | cubeIndex, |
const int & | cpIndex, | ||
const int & | cmIndex | ||
) |
Adds a connection to an AdjacentCubeList.
A connection consists of a new vertex as well as the edge that connects it. The vertex is the cube index and the edge is the ControlPoint - ControlMeasure combo.
cubeIndex | Adjacent cube |
cpIndex | ControlPoint index |
cmIndex | ControlMeasure index |
Definition at line 448 of file ControlGraph.cpp.
const QVector< int > Isis::ControlGraph::AdjacentCubeList::GetAdjacentCubes | ( | ) | const |
Definition at line 421 of file ControlGraph.cpp.
ControlGraph::AdjacentCubeList & Isis::ControlGraph::AdjacentCubeList::operator= | ( | const AdjacentCubeList & | other | ) |
other | The AdjacentCubeList on the right side of the = |
Definition at line 469 of file ControlGraph.cpp.
References connections.
|
private |
stores all edges or connections for an adjacent cube
Definition at line 132 of file ControlGraph.h.
Referenced by AdjacentCubeList(), and operator=().