In file contour/Constraints2D.h:

class DistanceContour2DConstraint : public Constraint

a class corresponding to a position constraint where the distance between 2 vertices is constrained to belong to an interval [minimumDistance,maximumDistance]

Inheritance:


Public Classes

class MissingContour : public Exception
class thrown when a DistanceConstraint is created specifying without any contour
constructor
MissingContour (const std::string& from)
constructor from a string

Public Methods

virtual void apply ()
the apply fonction that adds or removes vertices depending on minimumDistance and maximumDistance
double getMinimumDistance () const
returns the minimum distance between two vertices
double getMaximumDistance () const
returns the maximum distance between two vertices
void setMinimumDistance (const double min)
sets the minimum distance between two vertices
void setMaximumDistance (const double max)
sets the maximum distance between two vertices

Public

constructor
destructor
virtual ~DistanceContour2DConstraint (void)
empty destructor

Private Fields

double minimumDistance
the minimum Distance between two vertices : may be set to zero
double maximumDistance
the maximum Distance between two vertices
ActiveContour2D* contour
the ActiveContour2D where the constraint is applied

Documentation

a class corresponding to a position constraint where the distance between 2 vertices is constrained to belong to an interval [minimumDistance,maximumDistance]
class MissingContour: public Exception
class thrown when a DistanceConstraint is created specifying without any contour

constructor

MissingContour(const std::string& from)
constructor from a string
Parameters:
from - a string indicating where the exception where thrown

double minimumDistance
the minimum Distance between two vertices : may be set to zero

double maximumDistance
the maximum Distance between two vertices

ActiveContour2D* contour
the ActiveContour2D where the constraint is applied

virtual void apply()
the apply fonction that adds or removes vertices depending on minimumDistance and maximumDistance

double getMinimumDistance() const
returns the minimum distance between two vertices

double getMaximumDistance() const
returns the maximum distance between two vertices

void setMinimumDistance(const double min)
sets the minimum distance between two vertices

void setMaximumDistance(const double max)
sets the maximum distance between two vertices

constructor

destructor

virtual ~DistanceContour2DConstraint(void)
empty destructor


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