Computer Assisted Medical Intervention Tool Kit  version 5.2
SofaSimulator Class Reference

TODO Comment class here. More...

#include <SofaSimulator.h>

+ Inheritance diagram for SofaSimulator:
+ Collaboration diagram for SofaSimulator:

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...
 
- Public Member Functions inherited from InteractiveSimulator
 InteractiveSimulator (MonitoringManager *monitoringManager)
 constructor More...
 
 InteractiveSimulator (MonitoringManager *monitoringManager, const char *file)
 constructor More...
 
 ~InteractiveSimulator () override=default
 destructor More...
 
- Public Member Functions inherited from Simulator
 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
MonitoringManagermonitoringManager
 monitoring manager More...
 

Detailed Description

TODO Comment class here.

Constructor & Destructor Documentation

◆ SofaSimulator() [1/2]

◆ SofaSimulator() [2/2]

SofaSimulator::SofaSimulator ( MonitoringManager monitoringManager,
const char *  file 
)

◆ ~SofaSimulator()

SofaSimulator::~SofaSimulator ( )
virtual

Member Function Documentation

◆ createPml()

◆ doMove()

void SofaSimulator::doMove ( double  dt)
virtual

ask the simulator do to one step of the simulation

Parameters
dtintegration step

Implements InteractiveSimulator.

◆ end()

void SofaSimulator::end ( )
inlinevirtual

end simultor

Implements InteractiveSimulator.

◆ getForce()

void SofaSimulator::getForce ( int  index,
double  force[3] 
)
virtual

get current force for one atom

Implements Simulator.

◆ getPosition()

void SofaSimulator::getPosition ( int  index,
double  position[3] 
)
virtual

get current position for one atom

Implements InteractiveSimulator.

◆ getScnFile()

std::string SofaSimulator::getScnFile ( )
inline

Referenced by SofaWidget::SofaWidget().

+ Here is the caller graph for this function:

◆ init()

void SofaSimulator::init ( )
virtual

initialize the simulator

Implements InteractiveSimulator.

References MonitoringManager::isLmlPresent(), and Simulator::monitoringManager.

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: