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

#include <albaPolylineGraph.h>

Public Member Functions

 Vertex ()
 
 Vertex (double *coords)
 
 ~Vertex ()
 
int GetDegree () const
 
vtkIdType GetEdgeId (int i) const
 
void SetEdgeId (int i, vtkIdType e)
 
void AddEdgeId (vtkIdType e)
 
int FindEdgeId (vtkIdType e) const
 
bool DeleteEdgeId (vtkIdType e)
 
vtkIdType GetVertexId (int i) const
 
void SetVertexId (int i, vtkIdType v)
 
void AddVertexId (vtkIdType v)
 
int FindVertexId (vtkIdType v) const
 
bool DeleteVertexId (vtkIdType v)
 
void GetVerticesIdList (vtkIdList *idlist) const
 
void GetCoords (double *coords) const
 
void SetCoords (const double *coords)
 
void Clear ()
 
bool SelfCheck () const
 
void PrintSelf (std::ostream &os, const int tabs) const
 

Detailed Description

‍** Logs messages. Formatted *‍/

‍** Logs message. *‍/ Nested Vertex class This is a list of the edges and vertices which are joined to this vertex. The ith edge joins this vertex to the ith vertex neighbour. Coordinates are optional

Definition at line 234 of file albaPolylineGraph.h.

Constructor & Destructor Documentation

◆ Vertex() [1/2]

albaPolylineGraph::Vertex::Vertex ( )

constructor

◆ Vertex() [2/2]

albaPolylineGraph::Vertex::Vertex ( double *  coords)

constructor

◆ ~Vertex()

albaPolylineGraph::Vertex::~Vertex ( )

destructor

Member Function Documentation

◆ GetDegree()

int albaPolylineGraph::Vertex::GetDegree ( ) const

return degree of vertex

◆ GetEdgeId()

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

get index of ith edge

◆ SetEdgeId()

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

set ith edge

◆ AddEdgeId()

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

add new edge id to end of list

◆ FindEdgeId()

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

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

◆ DeleteEdgeId()

bool albaPolylineGraph::Vertex::DeleteEdgeId ( vtkIdType  e)

delete this edge and assoc. vertex from the vertex

◆ GetVertexId()

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

get index of ith vertex neighbour

◆ SetVertexId()

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

set ith vertex neighbour

◆ AddVertexId()

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

add new vertex id to end of list

◆ FindVertexId()

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

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

◆ DeleteVertexId()

bool albaPolylineGraph::Vertex::DeleteVertexId ( vtkIdType  v)

delete this vertex and assoc. edge from the vertex

◆ GetVerticesIdList()

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

return vertices as a vtkIdlist

◆ GetCoords()

void albaPolylineGraph::Vertex::GetCoords ( double *  coords) const

get coords of vertex

◆ SetCoords()

void albaPolylineGraph::Vertex::SetCoords ( const double *  coords)

set coords of vertex

◆ Clear()

void albaPolylineGraph::Vertex::Clear ( )

clear data from vertex

◆ SelfCheck()

bool albaPolylineGraph::Vertex::SelfCheck ( ) const

check self consistency

◆ PrintSelf()

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

print self


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