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

#include <albaPolylineGraph.h>

Public Member Functions

 Edge ()
 
 Edge (vtkIdType v0, vtkIdType v1)
 
 Edge (const Edge &e)
 
 ~Edge ()
 
Edgeoperator= (const Edge &e)
 
vtkIdType GetVertexId (int i) const
 
void SetVertexId (int i, vtkIdType v)
 
void SetVertexIds (vtkIdType v0, vtkIdType v1)
 
void GetVerticesIdList (vtkIdList *idlist) const
 
vtkIdType GetOtherEndVertexId (vtkIdType v) const
 
vtkIdType GetBranchId () const
 
void SetBranchId (vtkIdType b)
 
bool IsVertexPair (vtkIdType v0, vtkIdType v1) const
 
bool IsVertexPairOrdered (vtkIdType v0, vtkIdType v1) const
 
void SetDirected (bool directed)
 
bool IsDirected () const
 
void ReverseDirection ()
 
double GetWeight () const
 
void SetWeight (double w)
 
void GetMappingToOutputPolydata (vtkIdType *cellid, vtkIdType *index) const
 
void SetMappingToOutputPolydata (vtkIdType cellid, vtkIdType index)
 
bool SelfCheck () const
 
void PrintSelf (std::ostream &os, const int tabs) const
 

Detailed Description

Nested Edge class This is a vertex pair.

The edge can have a weight, and can be directed. The edge can optionally be a member of a branch.

Definition at line 269 of file albaPolylineGraph.h.

Constructor & Destructor Documentation

◆ Edge() [1/3]

albaPolylineGraph::Edge::Edge ( )

constructor

◆ Edge() [2/3]

albaPolylineGraph::Edge::Edge ( vtkIdType  v0,
vtkIdType  v1 
)

constructor with end vertices

◆ Edge() [3/3]

albaPolylineGraph::Edge::Edge ( const Edge e)

copy constructor (because array member doesn't deep copy)

◆ ~Edge()

albaPolylineGraph::Edge::~Edge ( )

destructor

Member Function Documentation

◆ operator=()

Edge & albaPolylineGraph::Edge::operator= ( const Edge e)

assignment operator

◆ GetVertexId()

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

get index of vertex i, where i = 0 or 1

◆ SetVertexId()

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

set index of vertex, where i = 0 or 1

◆ SetVertexIds()

void albaPolylineGraph::Edge::SetVertexIds ( vtkIdType  v0,
vtkIdType  v1 
)

set indices of vertices

◆ GetVerticesIdList()

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

return vertices as a vtkIdlist

◆ GetOtherEndVertexId()

vtkIdType albaPolylineGraph::Edge::GetOtherEndVertexId ( vtkIdType  v) const

get the vertex id at the other end of the edge

◆ GetBranchId()

vtkIdType albaPolylineGraph::Edge::GetBranchId ( ) const

get branch which edge belongs to

◆ SetBranchId()

void albaPolylineGraph::Edge::SetBranchId ( vtkIdType  b)

set branch which edge belongs to

◆ IsVertexPair()

bool albaPolylineGraph::Edge::IsVertexPair ( vtkIdType  v0,
vtkIdType  v1 
) const

is the edge equal to these vertices (order doesn't matter)

◆ IsVertexPairOrdered()

bool albaPolylineGraph::Edge::IsVertexPairOrdered ( vtkIdType  v0,
vtkIdType  v1 
) const

is the edge equal to these vertices in this order

◆ SetDirected()

void albaPolylineGraph::Edge::SetDirected ( bool  directed)

set directed property

◆ IsDirected()

bool albaPolylineGraph::Edge::IsDirected ( ) const

is edge directed

◆ ReverseDirection()

void albaPolylineGraph::Edge::ReverseDirection ( )

exchange vertices 0 and 1

◆ GetWeight()

double albaPolylineGraph::Edge::GetWeight ( ) const

get weight

◆ SetWeight()

void albaPolylineGraph::Edge::SetWeight ( double  w)

set weight

◆ GetMappingToOutputPolydata()

void albaPolylineGraph::Edge::GetMappingToOutputPolydata ( vtkIdType *  cellid,
vtkIdType *  index 
) const

get mapping from edge to location in output

◆ SetMappingToOutputPolydata()

void albaPolylineGraph::Edge::SetMappingToOutputPolydata ( vtkIdType  cellid,
vtkIdType  index 
)

set mapping from edge to location in output

◆ SelfCheck()

bool albaPolylineGraph::Edge::SelfCheck ( ) const

check self consistency

◆ PrintSelf()

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

print self


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