Classes | |
struct | CleanupCheck |
Functions | |
SOFA_SIMPLEAPI_API void | init () |
Initialize the Sofa.SimpleApi library, as well as its dependencies. More... | |
SOFA_SIMPLEAPI_API bool | isInitialized () |
Return true if and only if the Sofa.SimpleApi library has been initialized. More... | |
SOFA_SIMPLEAPI_API void | cleanup () |
Clean up the resources used by the SofaSimulationGraph library, as well as its dependencies. More... | |
SOFA_SIMPLEAPI_API bool | isCleanedUp () |
Return true if and only if the Sofa.SimpleApi library has been cleaned up. More... | |
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 > ¶ms) |
NodeSPtr | createRootNode (Simulation *s, const std::string &name, const std::map< std::string, std::string > ¶ms) |
BaseObject::SPtr | createObject (Node::SPtr parent, BaseObjectDescription &desc) |
BaseObject::SPtr | createObject (Node::SPtr parent, const std::string &type, const std::map< std::string, std::string > ¶ms) |
Node::SPtr | createChild (Node::SPtr node, const std::string &name, const std::map< std::string, std::string > ¶ms) |
Node::SPtr | createChild (Node::SPtr node, BaseObjectDescription &desc) |
Node::SPtr | createNode (const std::string &name) |
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... | |
sofa::core::sptr< BaseObject > SOFA_SIMPLEAPI_API | createObject (NodeSPtr node, BaseObjectDescription ¶ms) |
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... | |
sofa::core::sptr< BaseObject > SOFA_SIMPLEAPI_API | createObject (NodeSPtr node, const std::string &type, const std::map< std::string, std::string > ¶ms=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... | |
NodeSPtr SOFA_SIMPLEAPI_API | createChild (NodeSPtr node, const std::string &name, const std::map< std::string, std::string > ¶ms=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... | |
NodeSPtr SOFA_SIMPLEAPI_API | createChild (NodeSPtr 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... | |
void SOFA_SIMPLEAPI_API | dumpScene (NodeSPtr root) |
template<class T > | |
std::string | str (const T &t) |
SOFA_SIMPLEAPI_API void sofa::simpleapi::cleanup | ( | ) |
Clean up the resources used by the SofaSimulationGraph library, as well as its dependencies.
Node::SPtr sofa::simpleapi::createChild | ( | Node::SPtr | node, |
BaseObjectDescription & | desc | ||
) |
Node::SPtr sofa::simpleapi::createChild | ( | Node::SPtr | node, |
const std::string & | name, | ||
const std::map< std::string, std::string > & | params | ||
) |
NodeSPtr SOFA_SIMPLEAPI_API sofa::simpleapi::createChild | ( | NodeSPtr | 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).
NodeSPtr SOFA_SIMPLEAPI_API sofa::simpleapi::createChild | ( | NodeSPtr | 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.
NodeSPtr SOFA_SIMPLEAPI_API sofa::simpleapi::createNode | ( | const std::string & | name | ) |
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 | ||
) |
BaseObject::SPtr sofa::simpleapi::createObject | ( | Node::SPtr | parent, |
const std::string & | type, | ||
const std::map< std::string, std::string > & | params | ||
) |
sofa::core::sptr<BaseObject> SOFA_SIMPLEAPI_API sofa::simpleapi::createObject | ( | NodeSPtr | 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.
sofa::core::sptr<BaseObject> SOFA_SIMPLEAPI_API sofa::simpleapi::createObject | ( | NodeSPtr | 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.
NodeSPtr SOFA_SIMPLEAPI_API sofa::simpleapi::createRootNode | ( | Simulation * | s, |
const std::string & | name, | ||
const std::map< std::string, std::string > & | params | ||
) |
NodeSPtr SOFA_SIMPLEAPI_API sofa::simpleapi::createRootNode | ( | Simulation::SPtr | s, |
const std::string & | name, | ||
const std::map< std::string, std::string > & | params | ||
) |
Simulation::SPtr SOFA_SIMPLEAPI_API sofa::simpleapi::createSimulation | ( | const std::string & | type | ) |
void sofa::simpleapi::dumpScene | ( | Node::SPtr | root | ) |
void SOFA_SIMPLEAPI_API sofa::simpleapi::dumpScene | ( | NodeSPtr | root | ) |
bool SOFA_SIMPLEAPI_API sofa::simpleapi::importPlugin | ( | const std::string & | name | ) |
SOFA_SIMPLEAPI_API void sofa::simpleapi::init | ( | ) |
Initialize the Sofa.SimpleApi library, as well as its dependencies.
SOFA_SIMPLEAPI_API bool sofa::simpleapi::isCleanedUp | ( | ) |
Return true if and only if the Sofa.SimpleApi library has been cleaned up.
SOFA_SIMPLEAPI_API bool sofa::simpleapi::isInitialized | ( | ) |
Return true if and only if the Sofa.SimpleApi library has been initialized.
std::string sofa::simpleapi::str | ( | const T & | t | ) |