ALBA
|
#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 |
** 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.
albaPolylineGraph::Vertex::Vertex | ( | ) |
constructor
albaPolylineGraph::Vertex::Vertex | ( | double * | coords | ) |
constructor
albaPolylineGraph::Vertex::~Vertex | ( | ) |
destructor
int albaPolylineGraph::Vertex::GetDegree | ( | ) | const |
return degree of vertex
vtkIdType albaPolylineGraph::Vertex::GetEdgeId | ( | int | i | ) | const |
get index of ith edge
void albaPolylineGraph::Vertex::SetEdgeId | ( | int | i, |
vtkIdType | e | ||
) |
set ith edge
void albaPolylineGraph::Vertex::AddEdgeId | ( | vtkIdType | e | ) |
add new edge id to end of list
int albaPolylineGraph::Vertex::FindEdgeId | ( | vtkIdType | e | ) | const |
find position (0..deg-1) of this edge id in the list, return -1 if invalid
bool albaPolylineGraph::Vertex::DeleteEdgeId | ( | vtkIdType | e | ) |
delete this edge and assoc. vertex from the vertex
vtkIdType albaPolylineGraph::Vertex::GetVertexId | ( | int | i | ) | const |
get index of ith vertex neighbour
void albaPolylineGraph::Vertex::SetVertexId | ( | int | i, |
vtkIdType | v | ||
) |
set ith vertex neighbour
void albaPolylineGraph::Vertex::AddVertexId | ( | vtkIdType | v | ) |
add new vertex id to end of list
int albaPolylineGraph::Vertex::FindVertexId | ( | vtkIdType | v | ) | const |
find position (0..deg-1) of this vertex id in the list, return undefinedInt if invalid
bool albaPolylineGraph::Vertex::DeleteVertexId | ( | vtkIdType | v | ) |
delete this vertex and assoc. edge from the vertex
void albaPolylineGraph::Vertex::GetVerticesIdList | ( | vtkIdList * | idlist | ) | const |
return vertices as a vtkIdlist
void albaPolylineGraph::Vertex::GetCoords | ( | double * | coords | ) | const |
get coords of vertex
void albaPolylineGraph::Vertex::SetCoords | ( | const double * | coords | ) |
set coords of vertex
void albaPolylineGraph::Vertex::Clear | ( | ) |
clear data from vertex
bool albaPolylineGraph::Vertex::SelfCheck | ( | ) | const |
check self consistency
void albaPolylineGraph::Vertex::PrintSelf | ( | std::ostream & | os, |
const int | tabs | ||
) | const |
print self