ALBA
|
#include <albaPolylineGraph.h>
Public Member Functions | |
Edge () | |
Edge (vtkIdType v0, vtkIdType v1) | |
Edge (const Edge &e) | |
~Edge () | |
Edge & | operator= (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 |
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.
albaPolylineGraph::Edge::Edge | ( | ) |
constructor
albaPolylineGraph::Edge::Edge | ( | vtkIdType | v0, |
vtkIdType | v1 | ||
) |
constructor with end vertices
albaPolylineGraph::Edge::Edge | ( | const Edge & | e | ) |
copy constructor (because array member doesn't deep copy)
albaPolylineGraph::Edge::~Edge | ( | ) |
destructor
vtkIdType albaPolylineGraph::Edge::GetVertexId | ( | int | i | ) | const |
get index of vertex i, where i = 0 or 1
void albaPolylineGraph::Edge::SetVertexId | ( | int | i, |
vtkIdType | v | ||
) |
set index of vertex, where i = 0 or 1
void albaPolylineGraph::Edge::SetVertexIds | ( | vtkIdType | v0, |
vtkIdType | v1 | ||
) |
set indices of vertices
void albaPolylineGraph::Edge::GetVerticesIdList | ( | vtkIdList * | idlist | ) | const |
return vertices as a vtkIdlist
vtkIdType albaPolylineGraph::Edge::GetOtherEndVertexId | ( | vtkIdType | v | ) | const |
get the vertex id at the other end of the edge
vtkIdType albaPolylineGraph::Edge::GetBranchId | ( | ) | const |
get branch which edge belongs to
void albaPolylineGraph::Edge::SetBranchId | ( | vtkIdType | b | ) |
set branch which edge belongs to
bool albaPolylineGraph::Edge::IsVertexPair | ( | vtkIdType | v0, |
vtkIdType | v1 | ||
) | const |
is the edge equal to these vertices (order doesn't matter)
bool albaPolylineGraph::Edge::IsVertexPairOrdered | ( | vtkIdType | v0, |
vtkIdType | v1 | ||
) | const |
is the edge equal to these vertices in this order
void albaPolylineGraph::Edge::SetDirected | ( | bool | directed | ) |
set directed property
bool albaPolylineGraph::Edge::IsDirected | ( | ) | const |
is edge directed
void albaPolylineGraph::Edge::ReverseDirection | ( | ) |
exchange vertices 0 and 1
double albaPolylineGraph::Edge::GetWeight | ( | ) | const |
get weight
void albaPolylineGraph::Edge::SetWeight | ( | double | w | ) |
set weight
void albaPolylineGraph::Edge::GetMappingToOutputPolydata | ( | vtkIdType * | cellid, |
vtkIdType * | index | ||
) | const |
get mapping from edge to location in output
void albaPolylineGraph::Edge::SetMappingToOutputPolydata | ( | vtkIdType | cellid, |
vtkIdType | index | ||
) |
set mapping from edge to location in output
bool albaPolylineGraph::Edge::SelfCheck | ( | ) | const |
check self consistency
void albaPolylineGraph::Edge::PrintSelf | ( | std::ostream & | os, |
const int | tabs | ||
) | const |
print self