In file triangulation/TriangulationVertex.h:

class TriangulationVertex : public ListElement<TriangulationVertex>

triangulation topological vertex

Inheritance:


Public Methods

void setEdge (TriangulationEdge *e)
set vertex neighboring edge
void setOrientation (unsigned int o)
set vertex orientation
TriangulationEdge* getFirstEdge (void) const
returns vertex first edge
unsigned int getOrientation (void) const
returns vertex first edge orientation
TriangulationTriangle* getFirstTriangle (void) const
returns vertex first triangle
bool isAdjacent (TriangulationVertex *v) const
tests if the vertex is adjacent to a given vertex
bool isReal () const
whether the vertex is real or virtual
static TriangulationEdge* nextEdge (const TriangulationEdge *e, int& orientation)
returns edge following a given edge with its orientation
static TriangulationEdge* previousEdge (const TriangulationEdge *e, int& orientation)
returns edge preceeding e given e orientation
VertexContour* getVertexContour () const
returns the pointer on the contour vertex associated with a vertex
Triangulation* getTriangulation () const
returns the triangulation the vertex belongs to
unsigned int getNumberAdjacentTriangles (void) const
returns number of triangles around vertex
unsigned int getNumberAdjacentEdges (void) const
returns number of edges around vertex
template TriangulationVertex::TriangleVertexIterator getTriangleIterator (void) const
returns an iterator over face vertices
template VertexIterator getVertexIterator (void) const
returns an iterator over neighboring vertices
template TriangulationVertex::EdgeVertexIterator getEdgeIterator (void) const
returns an iterator over vertex edges
int getRef (void) const
returns vertex reference
void setVirtualNeighborhood ()
set the vertex as a virtual vertex : consequently, it sets all neighboring edges and triangles as empty
void removeVirtualNeighborhood ()
if the vertex is a virtual vertex it sets all neighboring edges and triangles as real

Public

constructor
TriangulationVertex (Triangulation *mesh, bool empty=false, TriangulationEdge *edge=0, unsigned int orientation=0)
constructor
destructor
virtual ~TriangulationVertex ()
delete vertex
vertex iterators

iterators over vertex shell vertices or triangles
class BasicIterator
a basic iterator around a vertex
const TriangulationVertex* vertex
vertex to iterate on
TriangulationEdge* currentEdge
current edge
int currentOrientation
current edge orientation
TriangulationTriangle* start
first triangle around vertex
bool hasChanged
whether the iterator has been modified
void next (void)
get next edge
void previous (void)
get previous edge
constructor
BasicIterator (const TriangulationVertex *v)
constructor builds a new iterator on vertex
destructor
~BasicIterator ()
delete vertex
void first (void)
set iterator to first element
void last (void)
set iterator to last element
bool isAtEnd (void)
is iterator at end of vertex?
template class TriangleVertexIterator : public BasicIterator
iterator on vertex triangles
constructor
TriangleVertexIterator (const TriangulationVertex *v)
constructor builds a triangle iterator around a vertex
destructor
~TriangleVertexIterator ()
delete vertex
T* operator* (void) const
returns current triangle
T* operator++ (void)
set iterator on next triangle and returns it
T* operator++ (int)
returns current triangle then set iterator on next one
T* operator-- (void)
set iterator on previous triangle and returns it
T* operator-- (int)
returns current triangle then set iterator on previous one
template class VertexIterator : public BasicIterator
basic vertex iterator around a vertex
constructor
VertexIterator (const TriangulationVertex *v)
constructor builds a new iterator on vertex
destructor
~VertexIterator ()
delete vertex
T* operator* (void) const
returns current vertex
T* operator++ (void)
set iterator on next vertex and returns it
T* operator++ (int)
returns current vertex then set iterator on next one
T* operator-- (void)
set iterator on previous vertex and returns it
T* operator-- (int)
returns current vertex then set iterator on previous one
template class EdgeVertexIterator : public BasicIterator
iterator over vertex edges
constructor
EdgeVertexIterator (const TriangulationVertex *v)
constructor builds an edge iterator around a vertex
destructor
~EdgeVertexIterator ()
delete vertex
T* operator* (void) const
returns current edge
T* operator++ (void)
set iterator on next edge and returns it
T* operator++ (int)
returns current edge then set iterator on next one
T* operator-- (void)
set iterator on previous edge and returns it
T* operator-- (int)
returns current edge then set iterator on previous one

Protected Fields

Triangulation* triangulation
triangulation to which this vertex belongs
TriangulationEdge* edge
one edge adjacent to this vertex
unsigned int orientation
vertex orientation 0 means this = edge->vertex[0], run along edge->face[0] -> edge->face[1] 1 means this = edge->vertex[1], run along edge->face[1] -> edge->face[0]
VertexContour* vertexContour
the associated vertex contour
int ref
vertex unique reference
bool empty
if the vertex is empty or not

Documentation

triangulation topological vertex
Triangulation* triangulation
triangulation to which this vertex belongs

TriangulationEdge* edge
one edge adjacent to this vertex

unsigned int orientation
vertex orientation 0 means this = edge->vertex[0], run along edge->face[0] -> edge->face[1] 1 means this = edge->vertex[1], run along edge->face[1] -> edge->face[0]

VertexContour* vertexContour
the associated vertex contour

int ref
vertex unique reference

bool empty
if the vertex is empty or not

constructor

TriangulationVertex(Triangulation *mesh, bool empty=false, TriangulationEdge *edge=0, unsigned int orientation=0)
constructor
Parameters:
mesh - vertex mesh
edge - one face edge
orientation - face orientation versus edge orientation (0 or 1)

destructor

virtual ~TriangulationVertex()
delete vertex

void setEdge(TriangulationEdge *e)
set vertex neighboring edge

void setOrientation(unsigned int o)
set vertex orientation

TriangulationEdge* getFirstEdge(void) const
returns vertex first edge

unsigned int getOrientation(void) const
returns vertex first edge orientation

TriangulationTriangle* getFirstTriangle(void) const
returns vertex first triangle

bool isAdjacent(TriangulationVertex *v) const
tests if the vertex is adjacent to a given vertex

bool isReal() const
whether the vertex is real or virtual

static TriangulationEdge* nextEdge(const TriangulationEdge *e, int& orientation)
returns edge following a given edge with its orientation
Returns:
following edge and its orientation (in orientation parameter)
Parameters:
e - current edge
orientation - e orientation (0 means triangle[0] -> triangle[1] and 1 means triangle[1] -> triangle[0])

static TriangulationEdge* previousEdge(const TriangulationEdge *e, int& orientation)
returns edge preceeding e given e orientation
Returns:
previous edge and its orientation (in orientation parameter)
Parameters:
e - current edge
orientation - e orientation (0 means triangle[0] -> triangle[1] and 1 means triangle[1] -> triangle[0])

VertexContour* getVertexContour() const
returns the pointer on the contour vertex associated with a vertex. May return NULL

vertex iterators

iterators over vertex shell vertices or triangles

class BasicIterator
a basic iterator around a vertex

const TriangulationVertex* vertex
vertex to iterate on

TriangulationEdge* currentEdge
current edge

int currentOrientation
current edge orientation

TriangulationTriangle* start
first triangle around vertex

bool hasChanged
whether the iterator has been modified

void next(void)
get next edge

void previous(void)
get previous edge

constructor

BasicIterator(const TriangulationVertex *v)
constructor builds a new iterator on vertex
Parameters:
v - the vertex to iterate around

destructor

~BasicIterator()
delete vertex

void first(void)
set iterator to first element

void last(void)
set iterator to last element

bool isAtEnd(void)
is iterator at end of vertex?

template class TriangleVertexIterator: public BasicIterator
iterator on vertex triangles

constructor

TriangleVertexIterator(const TriangulationVertex *v)
constructor builds a triangle iterator around a vertex
Parameters:
v - the vertex to iterate around

destructor

~TriangleVertexIterator()
delete vertex

T* operator*(void) const
returns current triangle

T* operator++(void)
set iterator on next triangle and returns it

T* operator++(int)
returns current triangle then set iterator on next one

T* operator--(void)
set iterator on previous triangle and returns it

T* operator--(int)
returns current triangle then set iterator on previous one

template class VertexIterator: public BasicIterator
basic vertex iterator around a vertex

constructor

VertexIterator(const TriangulationVertex *v)
constructor builds a new iterator on vertex
Parameters:
v - the vertex to iterate around

destructor

~VertexIterator()
delete vertex

T* operator*(void) const
returns current vertex

T* operator++(void)
set iterator on next vertex and returns it

T* operator++(int)
returns current vertex then set iterator on next one

T* operator--(void)
set iterator on previous vertex and returns it

T* operator--(int)
returns current vertex then set iterator on previous one

template class EdgeVertexIterator: public BasicIterator
iterator over vertex edges

constructor

EdgeVertexIterator(const TriangulationVertex *v)
constructor builds an edge iterator around a vertex
Parameters:
v - the vertex to iterate around

destructor

~EdgeVertexIterator()
delete vertex

T* operator*(void) const
returns current edge

T* operator++(void)
set iterator on next edge and returns it

T* operator++(int)
returns current edge then set iterator on next one

T* operator--(void)
set iterator on previous edge and returns it

T* operator--(int)
returns current edge then set iterator on previous one

Triangulation* getTriangulation() const
returns the triangulation the vertex belongs to

unsigned int getNumberAdjacentTriangles(void) const
returns number of triangles around vertex

unsigned int getNumberAdjacentEdges(void) const
returns number of edges around vertex

template TriangulationVertex::TriangleVertexIterator getTriangleIterator(void) const
returns an iterator over face vertices

template VertexIterator getVertexIterator(void) const
returns an iterator over neighboring vertices

template TriangulationVertex::EdgeVertexIterator getEdgeIterator(void) const
returns an iterator over vertex edges

int getRef(void) const
returns vertex reference

void setVirtualNeighborhood()
set the vertex as a virtual vertex : consequently, it sets all neighboring edges and triangles as empty

void removeVirtualNeighborhood()
if the vertex is a virtual vertex it sets all neighboring edges and triangles as real


Direct child classes:
TriangulationVertex3D

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de