sofa::simulation::MechanicalResetForceVisitor Class Reference

Reset the force in all the MechanicalModel This action is typically applied before accumulating all the forces. More...

#include <MechanicalVisitor.h>

Inheritance diagram for sofa::simulation::MechanicalResetForceVisitor:

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

Collaboration graph
[legend]

Public Member Functions

 MechanicalResetForceVisitor (VecId res, bool onlyMapped=false)
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 *mm)
 Process the BaseMechanicalState if it is mapped from the parent level.
virtual bool isThreadSafe () const
 Specify whether this action can be parallelized.

Data Fields

VecId res
bool onlyMapped

Detailed Description

Reset the force in all the MechanicalModel This action is typically applied before accumulating all the forces.

Definition at line 507 of file MechanicalVisitor.h.


Constructor & Destructor Documentation

sofa::simulation::MechanicalResetForceVisitor::MechanicalResetForceVisitor ( VecId  res,
bool  onlyMapped = false 
) [inline]

Definition at line 512 of file MechanicalVisitor.h.


Member Function Documentation

Visitor::Result sofa::simulation::MechanicalResetForceVisitor::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 365 of file MechanicalVisitor.cpp.

References sofa::core::componentmodel::behavior::BaseMechanicalState::resetForce(), and sofa::simulation::Visitor::RESULT_CONTINUE.

Visitor::Result sofa::simulation::MechanicalResetForceVisitor::fwdMechanicalState ( simulation::Node *  ,
core::componentmodel::behavior::BaseMechanicalState *   
) [virtual]

virtual bool sofa::simulation::MechanicalResetForceVisitor::isThreadSafe (  )  const [inline, virtual]

Specify whether this action can be parallelized.

Reimplemented from sofa::simulation::Visitor.

Definition at line 518 of file MechanicalVisitor.h.


Field Documentation

Definition at line 511 of file MechanicalVisitor.h.

Referenced by fwdMechanicalState().

Definition at line 510 of file MechanicalVisitor.h.

Referenced by fwdMechanicalState().


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

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