sofa::simulation::MechanicalComputeContactForceVisitor Class Reference

Accumulate only the contact forces computed in applyContactForce. More...

#include <MechanicalVisitor.h>

Inheritance diagram for sofa::simulation::MechanicalComputeContactForceVisitor:

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

Collaboration graph
[legend]

Public Member Functions

 MechanicalComputeContactForceVisitor (VecId res)
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 void bwdMechanicalMapping (simulation::Node *, core::componentmodel::behavior::BaseMechanicalMapping *map)
 Process the BaseMechanicalMapping.
virtual bool isThreadSafe () const
 Specify whether this action can be parallelized.

Data Fields

VecId res

Detailed Description

Accumulate only the contact forces computed in applyContactForce.

This action is typically called after a MechanicalResetForceVisitor.

Definition at line 740 of file MechanicalVisitor.h.


Constructor & Destructor Documentation

sofa::simulation::MechanicalComputeContactForceVisitor::MechanicalComputeContactForceVisitor ( VecId  res  )  [inline]

Definition at line 744 of file MechanicalVisitor.h.


Member Function Documentation

void sofa::simulation::MechanicalComputeContactForceVisitor::bwdMechanicalMapping ( simulation::Node *  ,
core::componentmodel::behavior::BaseMechanicalMapping *   
) [virtual]

Process the BaseMechanicalMapping.

Reimplemented from sofa::simulation::MechanicalVisitor.

Definition at line 543 of file MechanicalVisitor.cpp.

References sofa::core::componentmodel::behavior::BaseMechanicalMapping::accumulateForce().

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

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

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

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

Specify whether this action can be parallelized.

Reimplemented from sofa::simulation::Visitor.

Definition at line 751 of file MechanicalVisitor.h.


Field Documentation

Definition at line 743 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:29 2008 for Sofa by  doxygen 1.5.7.1