![]() |
Computer Assited Medical Intervention Tool Kit
version 3.3
|
TODO Comment class here. More...
#include <SofaSimulator.h>
Public Member Functions | |
std::string | getScnFile () |
SofaSimulator (MonitoringManager *monitoringManager) | |
SofaSimulator (MonitoringManager *monitoringManager, const char *file) | |
virtual | ~SofaSimulator () |
Simulator inherited | |
void | doMove (double dt) |
ask the simulator do to one step of the simulation More... | |
void | init () |
initialize the simulator More... | |
void | getPosition (int index, double position[3]) |
get current position for one atom More... | |
void | getForce (int index, double force[3]) |
get current force for one atom More... | |
void | end () |
end simultor More... | |
void | createPml (const char *inputFile, const char *pmlFile) |
Create a pml file from an imput file. More... | |
![]() | |
InteractiveSimulator (MonitoringManager *monitoringManager) | |
constructor More... | |
InteractiveSimulator (MonitoringManager *monitoringManager, const char *file) | |
constructor More... | |
virtual | ~InteractiveSimulator () |
destructor More... | |
![]() | |
Simulator (MonitoringManager *monitoringManager) | |
default constructor build a simulation from context provided by monitoringManager More... | |
Simulator (MonitoringManager *monitoringManager, const char *file) | |
constructor with simulator file build a simulation from context provided by monitoringManager and physical model provided by a simulator specific input file More... | |
void | updatePositions () |
update all current positions and store last positions More... | |
virtual | ~Simulator () |
destructor More... | |
Private Member Functions | |
void | build () |
build structure More... | |
void | buildConstraints () |
translate loads into constraints More... | |
unsigned int | getAtomIndex (unsigned int mechObjectIndex, unsigned int dofIndex) |
get the atom id corresponding to DOF of index dofIndex in the MechanicalObject of index mechObjectIndex More... | |
sofa::defaulttype::Vec3Types::Deriv | getDOFForce (unsigned int atomIndex) |
Return the force std::vector corresponding to the Atom number i. More... | |
sofa::defaulttype::Vec3Types::Deriv | getDOFForce (unsigned int mechObjectIndex, unsigned int dofIndex) |
get the force of the DOF of index dofIndex in the MechanicalObject of index mechObjectIndex More... | |
sofa::defaulttype::Vec3Types::Coord | getDOFPosition (unsigned int atomIndex) |
Return the Coord std::vector corresponding to the Atom number i. More... | |
sofa::defaulttype::Vec3Types::Coord | getDOFPosition (unsigned int mechObjectIndex, unsigned int dofIndex) |
get the position of the DOF of index dofIndex in the MechanicalObject of index mechObjectIndex More... | |
sofa::simulation::Node * | getGNode () |
get the sofa graph node root More... | |
sofa::component::container::MechanicalObject < sofa::defaulttype::Vec3Types > * | getMechanicalObject (unsigned int mechObjectIndex) |
get a mechanical object by its index More... | |
std::MechanicalObjectAtomDOFMap & | getMechanicalObjectAtomDOFMap (unsigned int mechObjectIndex) |
get the MechanicalObjectAtomDOFMap for a given mechancial object More... | |
std::MechanicalObjectDOFAtomMap & | getMechanicalObjectDOFAtomMap (unsigned int mechObjectIndex) |
get the MechanicalObjectAtomDOFMap for a given mechancial object More... | |
sofa::defaulttype::Vec3Types::VecDeriv | getMechanicalObjectDOFForce (unsigned int mechObjectIndex) |
get the forces of all DOF for mechanical object mechObjectIndex More... | |
sofa::defaulttype::Vec3Types::VecCoord | getMechanicalObjectDOFPosition (unsigned int mechObjectIndex) |
get the positions of all DOF for mechanical object mechObjectIndex More... | |
unsigned int | getNumberOfMechanicalObjects () |
get the number of mechanical objects More... | |
Private Attributes | |
std::AtomDOFMap | atomsToDOF |
create a correspondance between the atoms and the DOFs (indexAtom<->indexMechObject[indexDOF]) More... | |
sofa::simulation::Node * | groot |
the sofa graph node root More... | |
std::vector < std::MechanicalObjectAtomDOFMap * > | mechanicalObjectAtomDOFMap |
list of all MechanicalObjectAtomDOFMap More... | |
std::vector < std::MechanicalObjectDOFAtomMap * > | mechanicalObjectDOFAtomMap |
list of all MechanicalObjectDOFAtomMap More... | |
SofaVector< BaseMechanicalState * > | mechanicalObjects |
all the mechanical objects More... | |
std::string | scnFile |
path to .scn file More... | |
std::vector < TranslationConstraint < sofa::defaulttype::Vec3Types > * > | translations |
the load constraints (i.e. Translation) for each mechanical Objects More... | |
Additional Inherited Members | |
![]() | |
MonitoringManager * | monitoringManager |
monitoring manager More... | |
TODO Comment class here.
SofaSimulator::SofaSimulator | ( | MonitoringManager * | monitoringManager | ) |
SofaSimulator::SofaSimulator | ( | MonitoringManager * | monitoringManager, |
const char * | file | ||
) |
|
virtual |
|
private |
build structure
|
private |
translate loads into constraints
|
virtual |
Create a pml file from an imput file.
Implements InteractiveSimulator.
|
virtual |
ask the simulator do to one step of the simulation
dt | integration step |
Implements InteractiveSimulator.
|
inlinevirtual |
end simultor
Implements InteractiveSimulator.
|
private |
get the atom id corresponding to DOF of index dofIndex in the MechanicalObject of index mechObjectIndex
|
private |
Return the force std::vector corresponding to the Atom number i.
|
private |
get the force of the DOF of index dofIndex in the MechanicalObject of index mechObjectIndex
|
private |
Return the Coord std::vector corresponding to the Atom number i.
|
private |
get the position of the DOF of index dofIndex in the MechanicalObject of index mechObjectIndex
|
virtual |
get current force for one atom
Implements Simulator.
|
inlineprivate |
get the sofa graph node root
References groot.
|
private |
get a mechanical object by its index
Referenced by getMechanicalObjectDOFForce(), and getMechanicalObjectDOFPosition().
|
inlineprivate |
get the MechanicalObjectAtomDOFMap for a given mechancial object
References mechanicalObjectAtomDOFMap.
|
inlineprivate |
get the MechanicalObjectAtomDOFMap for a given mechancial object
References mechanicalObjectDOFAtomMap.
|
inlineprivate |
get the forces of all DOF for mechanical object mechObjectIndex
References getMechanicalObject().
|
inlineprivate |
get the positions of all DOF for mechanical object mechObjectIndex
References getMechanicalObject().
|
inlineprivate |
get the number of mechanical objects
References mechanicalObjects.
|
virtual |
get current position for one atom
Implements InteractiveSimulator.
|
inline |
References scnFile.
|
virtual |
initialize the simulator
Implements InteractiveSimulator.
|
private |
create a correspondance between the atoms and the DOFs (indexAtom<->indexMechObject[indexDOF])
|
private |
the sofa graph node root
Referenced by getGNode().
|
private |
list of all MechanicalObjectAtomDOFMap
Referenced by getMechanicalObjectAtomDOFMap().
|
private |
list of all MechanicalObjectDOFAtomMap
Referenced by getMechanicalObjectDOFAtomMap().
|
private |
all the mechanical objects
Referenced by getNumberOfMechanicalObjects().
|
private |
path to .scn file
Referenced by getScnFile().
|
private |
the load constraints (i.e. Translation) for each mechanical Objects