#include <MechanicalVisitor.h>


Public Member Functions | |
| MechanicalApplyConstraintsVisitor (VecId res, double **W=NULL) | |
| virtual Result | fwdMechanicalState (simulation::Node *, core::componentmodel::behavior::BaseMechanicalState *mm) |
| Process the BaseMechanicalState if it is not mapped from the parent level. | |
| virtual Result | fwdMappedMechanicalState (simulation::Node *, core::componentmodel::behavior::BaseMechanicalState *) |
| Process the BaseMechanicalState if it is mapped from the parent level. | |
| virtual void | bwdConstraint (simulation::Node *, core::componentmodel::behavior::BaseConstraint *c) |
| Process all the BaseConstraint. | |
| virtual bool | isThreadSafe () const |
| Specify whether this action can be parallelized. | |
Data Fields | |
| VecId | res |
| double ** | W |
This works for simple independent constraints, like maintaining a fixed point.
Definition at line 643 of file MechanicalVisitor.h.
| sofa::simulation::MechanicalApplyConstraintsVisitor::MechanicalApplyConstraintsVisitor | ( | VecId | res, | |
| double ** | W = NULL | |||
| ) | [inline] |
Definition at line 648 of file MechanicalVisitor.h.
| void sofa::simulation::MechanicalApplyConstraintsVisitor::bwdConstraint | ( | simulation::Node * | , | |
| core::componentmodel::behavior::BaseConstraint * | ||||
| ) | [virtual] |
Process all the BaseConstraint.
Reimplemented from sofa::simulation::MechanicalVisitor.
Definition at line 487 of file MechanicalVisitor.cpp.
References sofa::core::componentmodel::behavior::BaseConstraint::projectResponse(), and W.
| Visitor::Result sofa::simulation::MechanicalApplyConstraintsVisitor::fwdMappedMechanicalState | ( | simulation::Node * | , | |
| core::componentmodel::behavior::BaseMechanicalState * | ||||
| ) | [virtual] |
Process the BaseMechanicalState if it is mapped from the parent level.
Reimplemented from sofa::simulation::MechanicalVisitor.
Definition at line 481 of file MechanicalVisitor.cpp.
References sofa::simulation::Visitor::RESULT_CONTINUE.
| Visitor::Result sofa::simulation::MechanicalApplyConstraintsVisitor::fwdMechanicalState | ( | simulation::Node * | , | |
| core::componentmodel::behavior::BaseMechanicalState * | ||||
| ) | [virtual] |
Process the BaseMechanicalState if it is not mapped from the parent level.
Reimplemented from sofa::simulation::MechanicalVisitor.
Definition at line 475 of file MechanicalVisitor.cpp.
References res, sofa::simulation::Visitor::RESULT_CONTINUE, and sofa::core::componentmodel::behavior::BaseMechanicalState::setDx().
| virtual bool sofa::simulation::MechanicalApplyConstraintsVisitor::isThreadSafe | ( | ) | const [inline, virtual] |
Specify whether this action can be parallelized.
Reimplemented from sofa::simulation::Visitor.
Definition at line 655 of file MechanicalVisitor.h.
1.5.7.1