![]() |
Computer Assited Medical Intervention Tool Kit
version 3.3
|
A simulator engine is used to compute the displacements of all atoms of the model. More...
#include <Simulator.h>
Public Member Functions | |
virtual void | createPml (const char *inputFile, const char *pmlFile)=0 |
Create a pml file from a simulator specific imput file. More... | |
virtual void | end ()=0 |
end simultor More... | |
virtual void | getForce (int index, double force[3])=0 |
get current force for one atom More... | |
virtual void | getPosition (int index, double position[3])=0 |
get current position for one atom More... | |
virtual void | init ()=0 |
initialize the simulator 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... | |
Protected Attributes | |
MonitoringManager * | monitoringManager |
monitoring manager More... | |
A simulator engine is used to compute the displacements of all atoms of the model.
Simulator::Simulator | ( | MonitoringManager * | monitoringManager | ) |
default constructor build a simulation from context provided by monitoringManager
monitoringManager | manager provinding context of simulation |
Simulator::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
monitoringManager | manager provinding context of simulation |
file | path to simulator specific file |
|
virtual |
destructor
|
pure virtual |
Create a pml file from a simulator specific imput file.
Implemented in SofaSimulator, NonInteractiveSimulator, InteractiveSimulator, AnsysSimulator, and ArtisynthSimulator.
|
pure virtual |
end simultor
Implemented in SofaSimulator, AnsysSimulator, ArtisynthSimulator, InteractiveSimulator, and NonInteractiveSimulator.
|
pure virtual |
get current force for one atom
Implemented in SofaSimulator, AnsysSimulator, and ArtisynthSimulator.
|
pure virtual |
get current position for one atom
Implemented in SofaSimulator, AnsysSimulator, InteractiveSimulator, NonInteractiveSimulator, and ArtisynthSimulator.
|
pure virtual |
initialize the simulator
Implemented in SofaSimulator, AnsysSimulator, ArtisynthSimulator, InteractiveSimulator, and NonInteractiveSimulator.
void Simulator::updatePositions | ( | ) |
update all current positions and store last positions
|
protected |
monitoring manager