SOFA API  014b24ea
Open source framework for multi-physics simuation
sofa::simpleapi Namespace Reference

simpleapi More...

Namespaces

 components
 
 meca
 
 visual
 

Functions

bool importPlugin (const std::string &name)
 
void dumpScene (Node::SPtr root)
 
Simulation::SPtr createSimulation (const std::string &type)
 
Node::SPtr createRootNode (Simulation::SPtr s, const std::string &name, const std::map< std::string, std::string > &params)
 
BaseObject::SPtr createObject (Node::SPtr node, BaseObjectDescription &params)
 Create a sofa object in the provided node. The parameter "params" is for passing specific data argument to the created object including the object's type. More...
 
BaseObject::SPtr createObject (Node::SPtr node, const std::string &type, const std::map< std::string, std::string > &params=std::map< std::string, std::string >{})
 create a sofa object in the provided node of the given type. The parameter "params" is for passing specific data argument to the created object. More...
 
Node::SPtr createChild (Node::SPtr &node, const std::string &name, const std::map< std::string, std::string > &params=std::map< std::string, std::string >{})
 create a child to the provided nodeof given name. The parameter "params" is for passing specific data argument to the created object. More...
 
Node::SPtr createChild (Node::SPtr node, BaseObjectDescription &desc)
 create a child to the provided node. The parameter "params" is for passing specific data argument to the created object (including the node name). More...
 
template<class T >
std::string str (const T &t)
 

Detailed Description

simpleapi

Function Documentation

Node::SPtr sofa::simpleapi::createChild ( Node::SPtr node,
const std::string &  name,
const std::map< std::string, std::string > &  params 
)

create a child to the provided nodeof given name. The parameter "params" is for passing specific data argument to the created object.

Node::SPtr sofa::simpleapi::createChild ( Node::SPtr  node,
BaseObjectDescription desc 
)

create a child to the provided node. The parameter "params" is for passing specific data argument to the created object (including the node name).

BaseObject::SPtr sofa::simpleapi::createObject ( Node::SPtr  parent,
BaseObjectDescription desc 
)

Create a sofa object in the provided node. The parameter "params" is for passing specific data argument to the created object including the object's type.

BaseObject::SPtr sofa::simpleapi::createObject ( Node::SPtr  parent,
const std::string &  type,
const std::map< std::string, std::string > &  params 
)

create a sofa object in the provided node of the given type. The parameter "params" is for passing specific data argument to the created object.

Node::SPtr sofa::simpleapi::createRootNode ( Simulation::SPtr  s,
const std::string &  name,
const std::map< std::string, std::string > &  params 
)
Simulation::SPtr SOFA_SIMULATION_GRAPH_API sofa::simpleapi::createSimulation ( const std::string &  type)
void sofa::simpleapi::dumpScene ( Node::SPtr  root)
bool SOFA_SIMULATION_GRAPH_API sofa::simpleapi::importPlugin ( const std::string &  name)
template<class T >
std::string sofa::simpleapi::str ( const T &  t)