#include <MechanicalComputeEnergyVisitor.h>


Public Member Functions | |
| MechanicalComputeEnergyVisitor () | |
| ~MechanicalComputeEnergyVisitor () | |
| double | getKineticEnergy () |
| double | getPotentialEnergy () |
| virtual Result | fwdMass (simulation::Node *, core::componentmodel::behavior::BaseMass *mass) |
| Process the BaseMass. | |
| virtual Result | fwdForceField (simulation::Node *, core::componentmodel::behavior::BaseForceField *f) |
| Process the BaseForceField. | |
Private Attributes | |
| SReal | m_kineticEnergy |
| SReal | m_potentialEnergy |
Definition at line 53 of file MechanicalComputeEnergyVisitor.h.
| sofa::simulation::MechanicalComputeEnergyVisitor::MechanicalComputeEnergyVisitor | ( | ) |
Definition at line 45 of file MechanicalComputeEnergyVisitor.cpp.
| sofa::simulation::MechanicalComputeEnergyVisitor::~MechanicalComputeEnergyVisitor | ( | ) |
Definition at line 53 of file MechanicalComputeEnergyVisitor.cpp.
| Visitor::Result sofa::simulation::MechanicalComputeEnergyVisitor::fwdForceField | ( | simulation::Node * | , | |
| core::componentmodel::behavior::BaseForceField * | f | |||
| ) | [virtual] |
Process the BaseForceField.
Reimplemented from sofa::simulation::MechanicalVisitor.
Definition at line 75 of file MechanicalComputeEnergyVisitor.cpp.
References sofa::core::componentmodel::behavior::BaseForceField::getPotentialEnergy(), m_potentialEnergy, and sofa::simulation::Visitor::RESULT_CONTINUE.
| Visitor::Result sofa::simulation::MechanicalComputeEnergyVisitor::fwdMass | ( | simulation::Node * | , | |
| core::componentmodel::behavior::BaseMass * | mass | |||
| ) | [virtual] |
Process the BaseMass.
Reimplemented from sofa::simulation::MechanicalVisitor.
Definition at line 69 of file MechanicalComputeEnergyVisitor.cpp.
References sofa::core::componentmodel::behavior::BaseMass::getKineticEnergy(), m_kineticEnergy, and sofa::simulation::Visitor::RESULT_CONTINUE.
| double sofa::simulation::MechanicalComputeEnergyVisitor::getKineticEnergy | ( | ) |
| double sofa::simulation::MechanicalComputeEnergyVisitor::getPotentialEnergy | ( | ) |
Definition at line 55 of file MechanicalComputeEnergyVisitor.h.
Referenced by fwdMass(), and getKineticEnergy().
Definition at line 56 of file MechanicalComputeEnergyVisitor.h.
Referenced by fwdForceField(), and getPotentialEnergy().
1.5.7.1