In file contour/ActiveVertexContour2D.h:

class EdgeActiveContour2D : public EdgeContour2D

an edge of a 2D active contour that include geometric information necessary for the computation of internal forces

Inheritance:


Public Methods

ActiveVertexContour2D* getFirstVertex () const
Returns a pointer to the first vertex of an edge
ActiveVertexContour2D* getSecondVertex () const
Returns a pointer to the second vertex of an edge
virtual VertexContour* addVertex (void)
add a vertex between two vertices
double getLength () const
returns edge length
double getRestLength () const
returns edge rest length
Vec2 getDirection () const
returns edge direction
void setRestLength (const double rl)
set the edge rest length

Public

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

Protected Methods

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

Private Fields

double restLength
rest Length used for a spring
double length
length used to control the contour resolution
Vec2 direction
A unit length vector corresponding to the direction of the edge

Inherited from EdgeContour2D:


Inherited from EdgeContour:

Public Methods

void cutEdge()
int getTopologicalDistance(const EdgeContour *e) const

Protected Fields

VertexContour* vertex[2]

Documentation

an edge of a 2D active contour that include geometric information necessary for the computation of internal forces
double restLength
rest Length used for a spring

double length
length used to control the contour resolution

Vec2 direction
A unit length vector corresponding to the direction of the edge

Constructors

EdgeActiveContour2D(ActiveVertexContour2D *firstVertex, ActiveVertexContour2D *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 ~EdgeActiveContour2D()
empty Destructor

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

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

virtual VertexContour* addVertex(void)
add a vertex between two vertices

double getLength() const
returns edge length

double getRestLength() const
returns edge rest length

Vec2 getDirection() const
returns edge direction

void setRestLength(const double rl)
set the edge rest length

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


This class has no child classes.

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