ALBA
Public Member Functions | List of all members
albaPolylineGraph::Branch Class Reference

#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
 
Branchoperator= (const Branch &src)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Branch() [1/3]

albaPolylineGraph::Branch::Branch ( const char *  name = NULL)

constructor: empty branch with optional name

◆ Branch() [2/3]

albaPolylineGraph::Branch::Branch ( vtkIdType  startvertex,
const char *  name = NULL 
)
explicit

constructor: branch with initial vertex and optional name

◆ Branch() [3/3]

albaPolylineGraph::Branch::Branch ( const Branch src)

◆ ~Branch()

albaPolylineGraph::Branch::~Branch ( )

destructor

Member Function Documentation

◆ GetNumberOfVertices()

int albaPolylineGraph::Branch::GetNumberOfVertices ( ) const

get number of vertices

◆ GetNumberOfEdges()

int albaPolylineGraph::Branch::GetNumberOfEdges ( ) const

get number of edges (should be vertices - 1)

◆ GetName() [1/2]

void albaPolylineGraph::Branch::GetName ( char *  name) const

get name of branch

◆ GetName() [2/2]

const char * albaPolylineGraph::Branch::GetName ( ) const

get name of branch

◆ SetName()

void albaPolylineGraph::Branch::SetName ( const char *  name)

set name of branch

◆ UnsetName()

void albaPolylineGraph::Branch::UnsetName ( )

unset name of branch to undefined

◆ GetEdgeId()

vtkIdType albaPolylineGraph::Branch::GetEdgeId ( int  i) const

get index of ith edge

◆ SetEdgeId()

void albaPolylineGraph::Branch::SetEdgeId ( int  i,
vtkIdType  e 
)

set ith edge

◆ AddEdgeId()

void albaPolylineGraph::Branch::AddEdgeId ( vtkIdType  e)

add edge to end of list

◆ FindEdgeId()

int albaPolylineGraph::Branch::FindEdgeId ( vtkIdType  e) const

find position (0..ne-1) of this edge id in the list, return -1 if invalid

◆ InsertEdgeId()

void albaPolylineGraph::Branch::InsertEdgeId ( int  i,
vtkIdType  e 
)

insert edge

◆ GetLastEdgeId()

vtkIdType albaPolylineGraph::Branch::GetLastEdgeId ( ) const

get id of last edge

◆ GetVertexId()

vtkIdType albaPolylineGraph::Branch::GetVertexId ( int  i) const

get index of ith vertex

◆ SetVertexId()

void albaPolylineGraph::Branch::SetVertexId ( int  i,
vtkIdType  v 
)

set ith vertex

◆ AddVertexId()

void albaPolylineGraph::Branch::AddVertexId ( vtkIdType  v)

add new vertex to end of list

◆ FindVertexId()

int albaPolylineGraph::Branch::FindVertexId ( vtkIdType  v) const

find position (0..nv-1) of this vertex id in the list, return -1 if invalid

◆ InsertVertexId()

void albaPolylineGraph::Branch::InsertVertexId ( int  i,
vtkIdType  v 
)

insert vertex at position i in list

◆ GetLastVertexId()

vtkIdType albaPolylineGraph::Branch::GetLastVertexId ( ) const

get id of last vertex

◆ DeleteLastVertex()

void albaPolylineGraph::Branch::DeleteLastVertex ( )

delete last vertex and edge from end of list

◆ GetVerticesIdList()

void albaPolylineGraph::Branch::GetVerticesIdList ( vtkIdList *  idlist) const

return vertices as a vtkIdlist

◆ ReverseDirection()

void albaPolylineGraph::Branch::ReverseDirection ( )

reverse branch direction

◆ GetMappingToOutputPolydata()

vtkIdType albaPolylineGraph::Branch::GetMappingToOutputPolydata ( ) const

get mapping from branch to output cell

◆ SetMappingToOutputPolydata()

void albaPolylineGraph::Branch::SetMappingToOutputPolydata ( vtkIdType  cellid)

set mapping from branch to output cell

◆ Clear()

void albaPolylineGraph::Branch::Clear ( )

clear data from branch

◆ SelfCheck()

bool albaPolylineGraph::Branch::SelfCheck ( ) const

check self consistency (empty branches are allowed)

◆ PrintSelf()

void albaPolylineGraph::Branch::PrintSelf ( std::ostream &  os,
const int  tabs 
) const

print self

◆ operator=()

Branch & albaPolylineGraph::Branch::operator= ( const Branch src)

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