sofa::simulation::MechanicalApplyConstraintsVisitor Class Reference

Apply the constraints as filters to the given vector. More...

#include <MechanicalVisitor.h>

Inheritance diagram for sofa::simulation::MechanicalApplyConstraintsVisitor:

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

Collaboration graph
[legend]

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

Detailed Description

Apply the constraints as filters to the given vector.

This works for simple independent constraints, like maintaining a fixed point.

Definition at line 643 of file MechanicalVisitor.h.


Constructor & Destructor Documentation

sofa::simulation::MechanicalApplyConstraintsVisitor::MechanicalApplyConstraintsVisitor ( VecId  res,
double **  W = NULL 
) [inline]

Definition at line 648 of file MechanicalVisitor.h.


Member Function Documentation

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.


Field Documentation

Definition at line 646 of file MechanicalVisitor.h.

Referenced by fwdMechanicalState().

Definition at line 647 of file MechanicalVisitor.h.

Referenced by bwdConstraint().


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

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