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.
|
| Simulation () |
|
virtual | ~Simulation () |
|
| Simulation (const Simulation &n)=delete |
|
Simulation & | operator= (const Simulation &n)=delete |
|
virtual void | print (Node *root)=delete |
| Print all object in the graph. More...
|
|
virtual void | init (Node *root)=delete |
| Initialize the objects. More...
|
|
virtual void | initNode (Node *node)=delete |
| Init a node without changing the context of the simulation. More...
|
|
virtual void | animate (Node *root, SReal dt=0.0)=delete |
| Execute one timestep. If dt is 0, the dt parameter in the graph will be used. More...
|
|
virtual void | updateVisual (Node *root)=delete |
| Update the Visual Models: triggers the Mappings. More...
|
|
virtual void | reset (Node *root)=delete |
| Reset to initial state. More...
|
|
virtual void | initTextures (Node *root)=delete |
| Initialize the textures. More...
|
|
virtual void | updateContext (Node *root)=delete |
| Update contexts. Required before drawing the scene if root flags are modified. More...
|
|
virtual void | updateVisualContext (Node *root)=delete |
| Update contexts. Required before drawing the scene if root flags are modified. More...
|
|
virtual void | computeBBox (Node *root, SReal *minBBox, SReal *maxBBox, bool init=true)=delete |
|
virtual void | computeTotalBBox (Node *root, SReal *minBBox, SReal *maxBBox)=delete |
|
virtual void | draw (sofa::core::visual::VisualParams *vparams, Node *root)=delete |
| Render the scene. More...
|
|
virtual void | exportOBJ (Node *root, const char *filename, bool exportMTL=true)=delete |
| Export a scene to an OBJ 3D Scene. More...
|
|
virtual void | exportXML (Node *root, const char *fileName=nullptr)=delete |
| Print all object in the graph in XML format. More...
|
|
virtual void | exportGraph (Node *root, const char *filename=nullptr)=delete |
| Print all objects in the graph in the given file (format is given by the filename extension) More...
|
|
virtual void | dumpState (Node *root, std::ofstream &out)=delete |
| Dump the current state in the given stream. More...
|
|
virtual NodeSPtr | load (const std::string &, bool reload=false, const std::vector< std::string > &sceneArgs=std::vector< std::string >(0))=delete |
| Load a scene from a file. More...
|
|
virtual void | unload (NodeSPtr root)=delete |
| Unload a scene from a Node. More...
|
|
virtual NodeSPtr | createNewGraph (const std::string &name)=0 |
| create a new graph(or tree) and return its root node. More...
|
|
virtual NodeSPtr | createNewNode (const std::string &name)=0 |
| creates and returns a new node. More...
|
|
virtual bool | isDirectedAcyclicGraph ()=0 |
| Can the simulation handle a directed acyclic graph? More...
|
|