USGS

Isis 3.0 Object Programmers' Reference

Home

Isis::ControlGraph::AdjacentCubeList Class Reference

Control Graph nested class. More...

Collaboration diagram for Isis::ControlGraph::AdjacentCubeList:
Collaboration graph

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.
 
AdjacentCubeListoperator= (const AdjacentCubeList &other)
 

Private Attributes

QMap< int, QVector< QPair< int,
int > > > * 
connections
 stores all edges or connections for an adjacent cube
 

Detailed Description

Control Graph nested class.

This class is used to store adjacent cube connections for ControlGraph

Author
2009-09-18 Eric Hyer
See Also
ControlGraph

Definition at line 118 of file ControlGraph.h.

Constructor & Destructor Documentation

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.

Parameters
cubeIndexFirst adjacent cube
cpIndexControlPoint Index
cmIndexControlMeasure Index

Definition at line 385 of file ControlGraph.cpp.

References connections.

Isis::ControlGraph::AdjacentCubeList::AdjacentCubeList ( const AdjacentCubeList other)

copy construct an AdjacentCubeList

Parameters
otherThe 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.

Member Function Documentation

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.

Parameters
cubeIndexAdjacent cube
cpIndexControlPoint index
cmIndexControlMeasure index

Definition at line 448 of file ControlGraph.cpp.

const QVector< int > Isis::ControlGraph::AdjacentCubeList::GetAdjacentCubes ( ) const
Returns
A list of adjacent cubes!

Definition at line 421 of file ControlGraph.cpp.

ControlGraph::AdjacentCubeList & Isis::ControlGraph::AdjacentCubeList::operator= ( const AdjacentCubeList other)
Parameters
otherThe AdjacentCubeList on the right side of the =

Definition at line 469 of file ControlGraph.cpp.

References connections.

Member Data Documentation

QMap< int, QVector< QPair< int, int > > >* Isis::ControlGraph::AdjacentCubeList::connections
private

stores all edges or connections for an adjacent cube

Definition at line 132 of file ControlGraph.h.

Referenced by AdjacentCubeList(), and operator=().


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