sofa::simulation::VelocityThresholdVisitor Class Reference

#include <VelocityThresholdVisitor.h>

Inheritance diagram for sofa::simulation::VelocityThresholdVisitor:

Inheritance graph
[legend]
Collaboration diagram for sofa::simulation::VelocityThresholdVisitor:

Collaboration graph
[legend]

Public Types

typedef
sofa::core::componentmodel::behavior::BaseMechanicalState::VecId 
VecId

Public Member Functions

virtual Visitor::Result processNodeTopDown (simulation::Node *node)
 Callback method called when decending to a new node. Recursion will stop if this method returns RESULT_PRUNE.
 VelocityThresholdVisitor (VecId v, double threshold)
virtual const char * getCategoryName () const
 Return a category name for this action.

Protected Attributes

VecId vid
 Id of the vector to process.
double threshold
 All the entries below this threshold will be set to 0.

Detailed Description

Definition at line 40 of file VelocityThresholdVisitor.h.


Member Typedef Documentation

Definition at line 43 of file VelocityThresholdVisitor.h.


Constructor & Destructor Documentation

sofa::simulation::VelocityThresholdVisitor::VelocityThresholdVisitor ( VecId  v,
double  threshold 
)

Definition at line 39 of file VelocityThresholdVisitor.cpp.


Member Function Documentation

virtual const char* sofa::simulation::VelocityThresholdVisitor::getCategoryName (  )  const [inline, virtual]

Return a category name for this action.

Only used for debugging / profiling purposes

Reimplemented from sofa::simulation::Visitor.

Definition at line 53 of file VelocityThresholdVisitor.h.

Visitor::Result sofa::simulation::VelocityThresholdVisitor::processNodeTopDown ( simulation::Node *   )  [virtual]

Callback method called when decending to a new node. Recursion will stop if this method returns RESULT_PRUNE.

Reimplemented from sofa::simulation::Visitor.

Definition at line 44 of file VelocityThresholdVisitor.cpp.

References sofa::simulation::Node::mechanicalState, sofa::simulation::Visitor::RESULT_CONTINUE, threshold, and vid.


Field Documentation

All the entries below this threshold will be set to 0.

Definition at line 60 of file VelocityThresholdVisitor.h.

Referenced by processNodeTopDown().

Id of the vector to process.

Definition at line 59 of file VelocityThresholdVisitor.h.

Referenced by processNodeTopDown().


The documentation for this class was generated from the following files:

Generated on Sun Nov 23 04:24:36 2008 for Sofa by  doxygen 1.5.7.1