 |
Computer Assited Medical Intervention Tool Kit
version 4.1
|
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:28
unsigned int getNumberOfStructures() const
get the number of structures
Definition: StructuralComponent.h:251
PhysicalModel * getPml()
Definition: MonitoringManager.cpp:262
Atom * getAtom(const unsigned int id)
Get the atom that has the global index given in parameters.
Definition: PhysicalModel.h:384
unsigned int getIndex() const
get the structure unique index (stored in its property)
Definition: Structure.cpp:29
#define MML_API
Definition: MMLAPI.h:42
A simulator engine is used to compute the displacements of all atoms of the model.
Definition: Simulator.h:45
void storeOldPositions()
store old positions before next step
Definition: MonitoringManager.cpp:360
MonitoringManager * monitoringManager
monitoring manager
Definition: Simulator.h:105
void setPosition(const double[3])
set the position of the atom
Definition: Atom.h:124
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:49
Structure * getStructure(const unsigned int) const
get a structure by its index (fisrt structure is at index 0)
Definition: StructuralComponent.h:219
StructuralComponent * getAtoms() const
get all the atoms
Definition: PhysicalModel.h:379
void updatePositions()
update all current positions and store last positions
Definition: Simulator.cpp:43