SOFA API  7226d276
Open source framework for multi-physics simuation
sofa::simulation::Simulation Class Reference

#include <Simulation.h>

Detailed Description

Main controller of the scene. Defines how the scene is inited at the beginning, and updated at each time step. Derives from Base in order to use smart pointers and model the parameters as Datas, which makes their edition easy in the GUI.

Public Member Functions

 Simulation ()
 
virtual ~Simulation ()
 
 Simulation (const Simulation &n)=delete
 
Simulation & operator= (const Simulation &n)=delete
 
virtual NodeSPtr createNewGraph (const std::string &name)
 create a new graph(or tree) and return its root node. More...
 
virtual NodeSPtr createNewNode (const std::string &name)
 creates and returns a new node. More...
 
virtual bool isDirectedAcyclicGraph ()
 Can the simulation handle a directed acyclic graph? More...
 

Constructor details

◆ Simulation() [1/2]

sofa::simulation::Simulation::Simulation ( )

◆ ~Simulation()

sofa::simulation::Simulation::~Simulation ( )
virtual

◆ Simulation() [2/2]

sofa::simulation::Simulation::Simulation ( const Simulation &  n)
delete

Function details

◆ createNewGraph()

NodeSPtr sofa::simulation::Simulation::createNewGraph ( const std::string &  name)
virtual

create a new graph(or tree) and return its root node.

◆ createNewNode()

NodeSPtr sofa::simulation::Simulation::createNewNode ( const std::string &  name)
virtual

creates and returns a new node.

◆ isDirectedAcyclicGraph()

bool sofa::simulation::Simulation::isDirectedAcyclicGraph ( )
virtual

Can the simulation handle a directed acyclic graph?

◆ operator=()

Simulation& sofa::simulation::Simulation::operator= ( const Simulation &  n)
delete