#include <VelocityThresholdVisitor.h>


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. | |
Definition at line 40 of file VelocityThresholdVisitor.h.
| typedef sofa::core::componentmodel::behavior::BaseMechanicalState::VecId sofa::simulation::VelocityThresholdVisitor::VecId |
Definition at line 43 of file VelocityThresholdVisitor.h.
| sofa::simulation::VelocityThresholdVisitor::VelocityThresholdVisitor | ( | VecId | v, | |
| double | threshold | |||
| ) |
Definition at line 39 of file VelocityThresholdVisitor.cpp.
| 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.
double sofa::simulation::VelocityThresholdVisitor::threshold [protected] |
All the entries below this threshold will be set to 0.
Definition at line 60 of file VelocityThresholdVisitor.h.
Referenced by processNodeTopDown().
VecId sofa::simulation::VelocityThresholdVisitor::vid [protected] |
Id of the vector to process.
Definition at line 59 of file VelocityThresholdVisitor.h.
Referenced by processNodeTopDown().
1.5.7.1