|
Computer Assited Medical Intervention Tool Kit
version 5.0
|
|
Go to the documentation of this file.
26 #ifndef SIMULATOR_SIMULATOR_H
27 #define SIMULATOR_SIMULATOR_H
35 #ifdef MML_GENERATE_GUI
64 virtual void init() = 0;
66 virtual void end() = 0;
68 void updatePositions();
70 virtual void getPosition(
int index,
double position[3]) = 0;
72 virtual void getForce(
int index,
double force[3]) = 0;
75 virtual void createPml(
const char* inputFile,
const char* pmlFile) = 0;
77 #ifdef MML_GENERATE_GUI
86 #ifdef MML_GENERATE_GUI
93 #endif // SIMULATOR_SIMULATOR_H
Simulator(MonitoringManager *monitoringManager)
default constructor build a simulation from context provided by monitoringManager
Definition: Simulator.cpp:29
PhysicalModel * getPml()
Definition: MonitoringManager.cpp:263
Atom * getAtom(const unsigned int id)
Get the atom that has the global index given in parameters.
Definition: PhysicalModel.h:385
unsigned int getIndex() const
get the structure unique index (stored in its property)
Definition: Structure.cpp:30
#define MML_API
Definition: MMLAPI.h:43
A simulator engine is used to compute the displacements of all atoms of the model.
Definition: Simulator.h:46
void storeOldPositions()
store old positions before next step
Definition: MonitoringManager.cpp:361
MonitoringManager * monitoringManager
monitoring manager
Definition: Simulator.h:107
void setPosition(const double[3])
set the position of the atom
Definition: Atom.h:125
virtual void getPosition(int index, double position[3])=0
get current position for one atom
Manager of the benchmark tests. Do simulation loop and tests.
Definition: MonitoringManager.h:50
Structure * getStructure(const unsigned int) const
get a structure by its index (fisrt structure is at index 0)
Definition: StructuralComponent.h:220
StructuralComponent * getAtoms() const
get all the atoms
Definition: PhysicalModel.h:380
void updatePositions()
update all current positions and store last positions
Definition: Simulator.cpp:44