ALBA
|
#include <albaPolylineGraph.h>
Public Member Functions | |
Branch (const char *name=NULL) | |
Branch (vtkIdType startvertex, const char *name=NULL) | |
Branch (const Branch &src) | |
~Branch () | |
int | GetNumberOfVertices () const |
int | GetNumberOfEdges () const |
void | GetName (char *name) const |
const char * | GetName () const |
void | SetName (const char *name) |
void | UnsetName () |
vtkIdType | GetEdgeId (int i) const |
void | SetEdgeId (int i, vtkIdType e) |
void | AddEdgeId (vtkIdType e) |
int | FindEdgeId (vtkIdType e) const |
void | InsertEdgeId (int i, vtkIdType e) |
vtkIdType | GetLastEdgeId () const |
vtkIdType | GetVertexId (int i) const |
void | SetVertexId (int i, vtkIdType v) |
void | AddVertexId (vtkIdType v) |
int | FindVertexId (vtkIdType v) const |
void | InsertVertexId (int i, vtkIdType v) |
vtkIdType | GetLastVertexId () const |
void | DeleteLastVertex () |
void | GetVerticesIdList (vtkIdList *idlist) const |
void | ReverseDirection () |
vtkIdType | GetMappingToOutputPolydata () const |
void | SetMappingToOutputPolydata (vtkIdType cellid) |
void | Clear () |
bool | SelfCheck () const |
void | PrintSelf (std::ostream &os, const int tabs) const |
Branch & | operator= (const Branch &src) |
Nested Branch class A branch is a connected sequence of vertex id's.
The sequence is stored as a list of vertices and a list of edges. The branch can optionally have a name
Definition at line 312 of file albaPolylineGraph.h.
albaPolylineGraph::Branch::Branch | ( | const char * | name = NULL | ) |
constructor: empty branch with optional name
|
explicit |
constructor: branch with initial vertex and optional name
albaPolylineGraph::Branch::Branch | ( | const Branch & | src | ) |
albaPolylineGraph::Branch::~Branch | ( | ) |
destructor
int albaPolylineGraph::Branch::GetNumberOfVertices | ( | ) | const |
get number of vertices
int albaPolylineGraph::Branch::GetNumberOfEdges | ( | ) | const |
get number of edges (should be vertices - 1)
void albaPolylineGraph::Branch::GetName | ( | char * | name | ) | const |
get name of branch
const char * albaPolylineGraph::Branch::GetName | ( | ) | const |
get name of branch
void albaPolylineGraph::Branch::SetName | ( | const char * | name | ) |
set name of branch
void albaPolylineGraph::Branch::UnsetName | ( | ) |
unset name of branch to undefined
vtkIdType albaPolylineGraph::Branch::GetEdgeId | ( | int | i | ) | const |
get index of ith edge
void albaPolylineGraph::Branch::SetEdgeId | ( | int | i, |
vtkIdType | e | ||
) |
set ith edge
void albaPolylineGraph::Branch::AddEdgeId | ( | vtkIdType | e | ) |
add edge to end of list
int albaPolylineGraph::Branch::FindEdgeId | ( | vtkIdType | e | ) | const |
find position (0..ne-1) of this edge id in the list, return -1 if invalid
void albaPolylineGraph::Branch::InsertEdgeId | ( | int | i, |
vtkIdType | e | ||
) |
insert edge
vtkIdType albaPolylineGraph::Branch::GetLastEdgeId | ( | ) | const |
get id of last edge
vtkIdType albaPolylineGraph::Branch::GetVertexId | ( | int | i | ) | const |
get index of ith vertex
void albaPolylineGraph::Branch::SetVertexId | ( | int | i, |
vtkIdType | v | ||
) |
set ith vertex
void albaPolylineGraph::Branch::AddVertexId | ( | vtkIdType | v | ) |
add new vertex to end of list
int albaPolylineGraph::Branch::FindVertexId | ( | vtkIdType | v | ) | const |
find position (0..nv-1) of this vertex id in the list, return -1 if invalid
void albaPolylineGraph::Branch::InsertVertexId | ( | int | i, |
vtkIdType | v | ||
) |
insert vertex at position i in list
vtkIdType albaPolylineGraph::Branch::GetLastVertexId | ( | ) | const |
get id of last vertex
void albaPolylineGraph::Branch::DeleteLastVertex | ( | ) |
delete last vertex and edge from end of list
void albaPolylineGraph::Branch::GetVerticesIdList | ( | vtkIdList * | idlist | ) | const |
return vertices as a vtkIdlist
void albaPolylineGraph::Branch::ReverseDirection | ( | ) |
reverse branch direction
vtkIdType albaPolylineGraph::Branch::GetMappingToOutputPolydata | ( | ) | const |
get mapping from branch to output cell
void albaPolylineGraph::Branch::SetMappingToOutputPolydata | ( | vtkIdType | cellid | ) |
set mapping from branch to output cell
void albaPolylineGraph::Branch::Clear | ( | ) |
clear data from branch
bool albaPolylineGraph::Branch::SelfCheck | ( | ) | const |
check self consistency (empty branches are allowed)
void albaPolylineGraph::Branch::PrintSelf | ( | std::ostream & | os, |
const int | tabs | ||
) | const |
print self