In file contour/VertexContour.h:

class EdgeContour

an edge of a contour with only topological information

Inheritance:


Public Methods

void cutEdge ()
if the contour is closed then the current edge becomes the open edge of an open contour
VertexContour* addVertex ()
add a vertex on an edge
VertexContour* getFirstVertex () const
Returns a pointer to the first vertex of an edge
VertexContour* getSecondVertex () const
Returns a pointer to the second vertex of an edge
int getTopologicalDistance (const EdgeContour *e) const
computes the shortest topological distance between two edges

Public

Constructors
EdgeContour (VertexContour *firstVertex, VertexContour *secondVertex=0)
Build an edge given its two vertices
Destructors
virtual ~EdgeContour ()
empty Destructor

Protected Fields

VertexContour* vertex [2]
vertex[0] and vertex[1] is the oriented edge

Protected Methods

virtual VertexContour* createVertex () const
create a new vertex : use a virtual function in order to create inherited vertices

Documentation

an edge of a contour with only topological information
VertexContour* vertex[2]
vertex[0] and vertex[1] is the oriented edge

virtual VertexContour* createVertex() const
create a new vertex : use a virtual function in order to create inherited vertices

Constructors

EdgeContour(VertexContour *firstVertex, VertexContour *secondVertex=0)
Build an edge given its two vertices
Parameters:
firstVertex - the first edge vertex where the edge is stored
secondVertex - the second edge vertex

Destructors

virtual ~EdgeContour()
empty Destructor

void cutEdge()
if the contour is closed then the current edge becomes the open edge of an open contour

VertexContour* addVertex()
add a vertex on an edge

VertexContour* getFirstVertex() const
Returns a pointer to the first vertex of an edge

VertexContour* getSecondVertex() const
Returns a pointer to the second vertex of an edge

int getTopologicalDistance(const EdgeContour *e) const
computes the shortest topological distance between two edges
Returns:
the distance is positive if e is "after" the current edge is negative if e is "before" the current edge and is zero is the two edges do not belong to the same line
Parameters:
e - another edge of the same contour


Direct child classes:
EdgeContour3D
EdgeContour2D

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