An interactive simulator is a simulator that we can control step by step (ex: Sofa) More...
#include <InteractiveSimulator.h>
Public Member Functions | |
void | createPml (const char *inputFile, const char *pmlFile) override=0 |
Create a pml file from an imput file. More... | |
virtual void | doMove (double dt)=0 |
ask the simulator do to one step of the simulation More... | |
void | end () override=0 |
end simultor More... | |
void | getPosition (int index, double position[3]) override=0 |
get current position for one atom More... | |
void | init () override=0 |
initialize the simulator More... | |
InteractiveSimulator (MonitoringManager *monitoringManager) | |
constructor More... | |
InteractiveSimulator (MonitoringManager *monitoringManager, const char *file) | |
constructor More... | |
~InteractiveSimulator () override=default | |
destructor More... | |
Public Member Functions inherited from Simulator | |
virtual void | getForce (int index, double force[3])=0 |
get current force for one atom 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 ()=default |
destructor More... | |
Additional Inherited Members | |
Protected Attributes inherited from Simulator | |
MonitoringManager * | monitoringManager |
monitoring manager More... | |
An interactive simulator is a simulator that we can control step by step (ex: Sofa)
InteractiveSimulator::InteractiveSimulator | ( | MonitoringManager * | monitoringManager | ) |
constructor
InteractiveSimulator::InteractiveSimulator | ( | MonitoringManager * | monitoringManager, |
const char * | file | ||
) |
constructor
|
overridedefault |
destructor
|
overridepure virtual |
|
pure virtual |
ask the simulator do to one step of the simulation
dt | integration step |
Implemented in SofaSimulator.
Referenced by InteractiveMonitoringManager::doMove().
|
overridepure virtual |
end simultor
Implements Simulator.
Implemented in SofaSimulator.
Referenced by InteractiveMonitoringManager::end().
|
overridepure virtual |
|
overridepure virtual |
initialize the simulator
Implements Simulator.
Implemented in SofaSimulator.
Referenced by InteractiveMonitoringManager::init().