Sofa.Core.ObjectFactory
- class Sofa.Core.ObjectFactory
Bases:
pybind11_object
Class used to register and dynamically create objects
It uses the Factory design pattern, where each class is registered in a map, and dynamically retrieved given the type name.
It also stores metainformation on each classes, such as description, authors, license, and available template types.
- static getComponent(arg0: str) Sofa.Core.ClassEntry
Get an entry given a class name (or alias)
- static getComponentsFromTarget(arg0: str) List[Sofa.Core.ClassEntry]
Return the registered classes from a given target
- static shortName(arg0: str) str
Return the shortname for this classname. Empty string if no creator exists for this classname.