a 3D contour active contour that may have several connected components Each component is a ActiveContourLine object which may be an opened or closed line
![]() | readMainModule (GFInput &input) throw(InvalidContour) the function that read the contour topology and geometry |
![]() | skipMainModule (GFInput &input) the function that skip the contour topology and geometry |
![]() | writeMainModule (GFOutput &output) the function that write the contour topology and geometry |
![]() | readInternalForceModule (GFInput &input) the function that reads the internal force set on all contour vertices |
![]() | skipInternalForceModule (GFInput &input) the function that skips the internal force set on all contour vertices |
![]() | writeInternalForceModule (GFOutput &output) the function that writes the internal force set on all contour vertices |
![]() | readPositionConstraintModule (GFInput &input) the function that reads the position constraint existing on the contour |
![]() | skipPositionConstraintModule (GFInput &input) the function that skips the position constraint existing on the contour |
![]() | writePositionConstraintModule (GFOutput &output) the function that writes the position constraint existing on the contour |
![]() | readRangeInformation (GFInput &input) the function that reads the range Information stored at some vertices |
![]() | skipRangeInformation (GFInput &input) the function that skips the range Information stored at some vertices |
![]() | writeRangeInformation (GFOutput &output) the function that writes a 2D vector written for each contour vertex |
![]() | readForceConstraintModule (GFInput &input) the function that reads the force constraint existing on the contour |
![]() | skipForceConstraintModule (GFInput &input) the function that skips the force constraint existing on the contour |
![]() | writeForceConstraintModule (GFOutput &output) the function that writes the force constraint existing on the contour |
![]() | readAlphaModule (GFInput &input) the function that reads the internal force weight for each contour vertex |
![]() | skipDoubleVertexModule (GFInput &input) the function that skips the internal force weight for each contour vertex |
![]() | writeAlphaModule (GFOutput &output) the function that writes the internal force weight for each contour vertex |
![]() | readBetaModule (GFInput &input) the function that reads the external force weight for each contour vertex |
![]() | writeBetaModule (GFOutput &output) the function that writes the external force weight for each contour vertex |
![]() | readRigidityModule (GFInput &input) the function that reads the rigidity parameter for each contour vertex |
![]() | skipIntVertexModule (GFInput &input) the function that skip an integer value written for each contour vertex |
![]() | writeRigidityModule (GFOutput &output) the function that writes the rigidity parameter for each contour vertex |
![]() | readShapePositionModule (GFInput &input) the function that reads the shape position for each contour vertex |
![]() | skipVectorVertexModule (GFInput &input) the function that skip a 3D vector written for each contour vertex |
![]() | writeShapePositionModule (GFOutput &output) the function that write the shape position for each contour vertex |
![]() | readConnectionsModule (GFInput &input) the function that reads the shape position for each contour vertex |
![]() | skipConnectionsModule (GFInput &input) the function that skip a 3D vector written for each contour vertex |
![]() | writeConnectionsModule (GFOutput &output) the function that write the shape position for each contour vertex |
![]() | addContour (const ActiveContour3D *contour) add in the current contour a copy of another contour |
![]() | createLine (ContourLine::Topology top) create a new line : use a virtual function in order to create inherited lines |
![]() | getTclInterface () const returns the interface associated with the contour |
![]() | translate (const Vec3 translate the contour |
![]() | scale (const double scale) scale the active contour |
![]() | rotate (const Rotation3D &rotation) rotate the active contour |
![]() | redraw (Camera3D *cam) the redraw function |
![]() | getSelectedActiveVertex () const gives the selected vertex as an ActiveVertexContour3D |
![]() | getSelectedEdgeColor (float &r, float &g, float &b) const Returns the display color of the selected edge |
![]() | getSelectedEdgeWidth () const Returns the width of the selected edge |
![]() | getSelectedEdge () const Returns the selected edge |
![]() | getPreviousSelectedEdge () const Returns the previous selected edge |
![]() | setSelectedEdgeColor (const float r, const float g, const float b) Sets the display color of selected edge |
![]() | setSelectedEdge (EdgeActiveContour3D *e) sets the selected edge of a contour |
![]() | setSelectedEdgeWidth (const float w) Sets the width of the selected Edge |
![]() | setShowClosestPoint (const bool b) sets the boolean indicating if the closest points should be displayed |
![]() | setShowRangeDistance (const bool b) sets the boolean indicating if the range distance should be displayed |
![]() | getShowRangeDistance () const returns the boolean indicating if the range distance should be displayed |
![]() | getShowClosestPoint () const returns the boolean indicating if the closest points should be displayed |
![]() | getSelectedActiveVertex3D () const returns the selected active vertex |
![]() | getSelectedActiveLine3D () const returns the selected active line |
![]() | selectEdge (const Vec2 select the closest edge from a given pixel position |
![]() | grabVertex (const Vec2 applies an external force that attract the closest contour vertex towards a pixel position |
![]() | selectObject (const Vec2 a function that allows to perform a task on a 3D active contour from a mouse click |
![]() | topologyChanged tells if the contour topology has been modified in the previous iteration |
![]() | rangeInformation the range information used for all vertices |
![]() | selectedEdge the selected Edge |
![]() | previousSelectedEdge the selected Edge |
![]() | selectedEdgeColor [3] the color of the selected edge |
![]() | defaultSelectedEdgeColor [3] the default color of the selected edge |
![]() | selectedEdgeWidth the width of the selected edge |
![]() | defaultSelectedEdgeWidth the default width of the selected edge |
![]() | defaultShowClosestPoint the default value of showClosestPoint |
![]() | showClosestPoint Should the closest point be displayed? |
![]() | defaultShowRangeDistance the default value of showRangeDistance |
![]() | showRangeDistance Should the range distance be displayed |
![]() | initGeneralFormat () sets the general format routines |
![]() | initActiveContour () calls all init routines once the contour has been loaded in memory |
![]() | firstLine (void) const returns a line Iterator of type ContourLine2D on the first line |
![]() | lastLine (void) const returns a line Iterator of type ContourLine2D on the last line |
![]() | firstVertex () const returns a VertexIterator of type ActiveVertexContour3D belonging to the contour |
![]() | applyLine (void (AContourLine3D::*fn)(void)) Apply a function on all lines of a contour |
![]() | applyLine (void (AContourLine3D::*fn) (void) const) Apply a function on all lines of a contour |
![]() | applyVertex (void (ActiveVertexContour3D::*fn)(void)) Apply a function on all vertices of a contour |
![]() | applyVertexUInt (void (ActiveVertexContour3D::*fn)(const unsigned int), const unsigned int v) Apply a function on all vertices of a contour |
![]() | applyVertex (void (ActiveVertexContour3D::*fn)(const double), const double v) Apply a function on all vertices of a contour |
![]() | addLine (ContourLine *l) add the line in the first position of the line list |
![]() | computeEdgeDirection () The internal force init function |
![]() | computeSimplexAngle () throw(ContourLine3D::IllegalGeometry) The internal force init function |
![]() | setSpringRestLengths () sets the current edge length as the rest length |
![]() | setMetricParameters () sets the current metric parameters as the reference metric parameters |
![]() | resetMetricParameters () sets the reference metric parameters to 0.5 |
![]() | topologyHasChanged () called when a vertex has been removed or added or when a vertex mobility (fixed member) has been modified |
![]() | getRangeInformation () const get the range information applied on all vertices |
![]() | setRangeInformation ( RangeInformation * ri) set the range information applied on all vertices |
![]() | getInternalForce () const returns the internal force type applying on the whole contour |
![]() | computeMaximumRigidity () computes the maximum rigidity |
![]() | defaultRangeInformation () const returns the default RangeInformation structure that should be stored in a active vertex |
![]() | computeInternalForce () compute the internal force for all contour vertices by calling internalForce->computeInternalForce(this) |
![]() | setInternalForce (InternalForceContour3D *ft) set a given internal force as the internal force applying on all contour vertices : call the unsetInternalForce() of the previous internal force and call ft->setInternalForce() |
![]() | setInternalForce (char *forceName) find the internal force corresponding to its name |
![]() | computeExternalForce () compute the external force on all contour vertices |
![]() | updatePosition () update the position of all contour vertices by calling the corresponding function v->updatePosition |
![]() | iterate (const unsigned int n) the routine called when the scene activates all active items : it computes the internal, external force, force constraint and update the position of all vertices |
![]() | getMinimumEdgeLength () const returns the mean edge distance in the contour |
![]() | getMedianEdgeLength () const returns the median edge length in the contour |
![]() | getMeanEdgeLength () const returns the mean edge distance in the contour |
![]() | getMeanEdgeSquareLength () const returns the mean edge square distance of the contour |
![]() | continueDeformation () whether this deformable model should still be deformed |
![]() | initColor (void) initializes the selected edge graphics color and width |
![]() | Constructors
|
![]() | vertexConnectionList list of connected vertices |
![]() | internalForce the internal force that applies on most contour vertices |
![]() | initGeometry () Geometric routines |
Exception classes
Destructor
constructor
destructor
a 3D contour active contour that may have several connected components Each component is a ActiveContourLine object which may be an opened or closed line
InternalForceContour3D* internalForce
void initGeometry()
bool topologyChanged
RangeInformation* rangeInformation
void initGeneralFormat()
void initActiveContour()
Constructors
ActiveContour3D(Scene3D *scene=NULL)
ActiveContour3D(const TclString filename, Scene3D *scene=NULL)
scene - : the Scene3D where the contour should be placed (since it is a Data3D and DeformableModel3D) ActiveContour3D(const unsigned int nbLines, const unsigned int *nbVertices, Vec3
nbVertices - the number of the vertices of each line. It is an array of size nbLines
array - the array of 3D vertices that are in each line. The first index of the array "lineIndex" is the index of the line (lineIndex
scene - : the Scene3D where the contour should be placed (since it is a Data3D and DeformableModel3D) ActiveLine3DIterator firstLine(void) const
ActiveLine3DIterator lastLine(void) const
ActiveVertexContour3DIterator firstVertex() const
void applyLine(void (AContourLine3D::*fn)(void))
void applyLine(void (AContourLine3D::*fn) (void) const)
void applyVertex(void (ActiveVertexContour3D::*fn)(void))
void applyVertexUInt(void (ActiveVertexContour3D::*fn)(const unsigned int), const unsigned int v)
v - a value to be passed to the member function void applyVertex(void (ActiveVertexContour3D::*fn)(const double), const double v)
v - a value to be passed to the member function void addLine(ContourLine *l)
void computeEdgeDirection()
void computeSimplexAngle() throw(ContourLine3D::IllegalGeometry)
void setSpringRestLengths()
void setMetricParameters()
void resetMetricParameters()
void topologyHasChanged()
RangeInformation* getRangeInformation() const
void setRangeInformation( RangeInformation * ri)
InternalForceContour3D* getInternalForce() const
void computeMaximumRigidity()
virtual RangeInformation* defaultRangeInformation() const
void computeInternalForce()
void setInternalForce(InternalForceContour3D *ft)
void setInternalForce(char *forceName)
virtual void computeExternalForce()
virtual void updatePosition()
void iterate(const unsigned int n)
double getMinimumEdgeLength() const
double getMedianEdgeLength() const
double getMeanEdgeLength() const
double getMeanEdgeSquareLength() const
virtual bool continueDeformation()
void readMainModule(GFInput &input) throw(InvalidContour)
void skipMainModule(GFInput &input)
void writeMainModule(GFOutput &output)
void readInternalForceModule(GFInput &input)
void skipInternalForceModule(GFInput &input)
void writeInternalForceModule(GFOutput &output)
void readPositionConstraintModule(GFInput &input)
void skipPositionConstraintModule(GFInput &input)
void writePositionConstraintModule(GFOutput &output)
void readRangeInformation(GFInput &input)
void skipRangeInformation(GFInput &input)
void writeRangeInformation(GFOutput &output)
void readForceConstraintModule(GFInput &input)
void skipForceConstraintModule(GFInput &input)
void writeForceConstraintModule(GFOutput &output)
void readAlphaModule(GFInput &input)
void skipDoubleVertexModule(GFInput &input)
void writeAlphaModule(GFOutput &output)
void readBetaModule(GFInput &input)
void writeBetaModule(GFOutput &output)
void readRigidityModule(GFInput &input)
void skipIntVertexModule(GFInput &input)
void writeRigidityModule(GFOutput &output)
void readShapePositionModule(GFInput &input)
void skipVectorVertexModule(GFInput &input)
void writeShapePositionModule(GFOutput &output)
void readConnectionsModule(GFInput &input)
void skipConnectionsModule(GFInput &input)
void writeConnectionsModule(GFOutput &output)
void addContour(const ActiveContour3D *contour)
virtual ContourLine* createLine(ContourLine::Topology top)
TclObject* getTclInterface() const
virtual void translate(const Vec3
virtual void scale(const double scale)
virtual void rotate(const Rotation3D &rotation)
EdgeActiveContour3D* selectedEdge
EdgeActiveContour3D* previousSelectedEdge
float selectedEdgeColor[3]
static const float defaultSelectedEdgeColor[3]
float selectedEdgeWidth
static const float defaultSelectedEdgeWidth
static const bool defaultShowClosestPoint
bool showClosestPoint
static const bool defaultShowRangeDistance
bool showRangeDistance