In file contour/Constraints3D.h:

class AttachmentContour3DConstraint : public Constraint

a class corresponding to a force constraint where a spring force is added on a vertex attached to a fixed point

Inheritance:


Public Methods

virtual void apply ()
the apply fonction that adds an external force to the vertex
double getStiffness () const
returns the stiffness of the spring force
Vec3 getFixedPosition () const
returns the position where the vertex is fixed
ActiveVertexContour3D* getVertex () const
returns the vertex where the constraint is applied
void setStiffness (const double s)
sets the stiffness of the spring force
void setFixedPosition (const Vec3 &p)
sets the maximum distance between two vertices

Public

Exception classes
class MissingVertex : public Exception
thrown when a DistanceConstraint is created specifying without any vertex
constructor
AttachmentContour3DConstraint (const Vec3 &p, const double s, ActiveVertexContour3D *v) throw(MissingVertex)
create an attachment constraint
destructor
virtual ~AttachmentContour3DConstraint (void)
empty destructor

Private Fields

Vec3 position
the position where the vertex is attached
double stiffness
the stiffness of the spring
ActiveVertexContour3D* vertex
the ActiveVertex3D that is attached to a fixed point
ActiveContour3D* contour
the ActiveContour3D where the constraint is applied

Documentation

a class corresponding to a force constraint where a spring force is added on a vertex attached to a fixed point
Exception classes

class MissingVertex: public Exception
thrown when a DistanceConstraint is created specifying without any vertex

Vec3 position
the position where the vertex is attached

double stiffness
the stiffness of the spring

ActiveVertexContour3D* vertex
the ActiveVertex3D that is attached to a fixed point

ActiveContour3D* contour
the ActiveContour3D where the constraint is applied

virtual void apply()
the apply fonction that adds an external force to the vertex

double getStiffness() const
returns the stiffness of the spring force

Vec3 getFixedPosition() const
returns the position where the vertex is fixed

ActiveVertexContour3D* getVertex() const
returns the vertex where the constraint is applied

void setStiffness(const double s)
sets the stiffness of the spring force

void setFixedPosition(const Vec3 &p)
sets the maximum distance between two vertices

constructor

AttachmentContour3DConstraint(const Vec3 &p, const double s, ActiveVertexContour3D *v) throw(MissingVertex)
create an attachment constraint
Throws:
MissingVertex thrown when v is NULL
Parameters:
p - the 3D position to attract the vertex
s - the stiffness parameter (between 0.0 and 1.0) used to compute the attracting force
v - the vertex on which the constraint applies

destructor

virtual ~AttachmentContour3DConstraint(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