#include <CategoryLibrary.h>
An Generic Category of the Sofa Library. More...
An Generic Category of the Sofa Library.
It contains all the components available for Sofa corresponding to a given category (force field, mass, mapping...) This Interface is used for the Modeler mainly.
Protected Attributes | |
std::string | name |
VecComponent | components |
Public Member Functions | |
CategoryLibrary (const std::string &categoryName) | |
virtual | ~CategoryLibrary () |
virtual ComponentLibrary * | addComponent (const std::string &componentName, ClassEntry::SPtr entry, const std::vector< std::string > &exampleFiles) |
virtual void | endConstruction () |
const std::string & | getName () const |
const VecComponent & | getComponents () const |
const ComponentLibrary * | getComponent (const std::string &componentName) const |
size_t | getNumComponents () const |
Static Public Member Functions | |
static void | getCategories (const sofa::core::objectmodel::BaseClass *mclass, std::vector< std::string > &outputVector) |
Get the list of categories a class belongs to, based on its parent classes. More... | |
static std::vector< std::string > | getCategories () |
Protected Member Functions | |
virtual ComponentLibrary * | createComponent (const std::string &componentName, ClassEntry::SPtr entry, const std::vector< std::string > &exampleFiles) |
|
protected |
|
protected |
sofa::core::CategoryLibrary::CategoryLibrary | ( | const std::string & | categoryName | ) |
|
inlinevirtual |
|
virtual |
|
inlineprotectedvirtual |
|
virtual |
|
static |
|
static |
Get the list of categories a class belongs to, based on its parent classes.
mclass | the class the categorize |
outputVector | the vector where to push the categories |
The categories are: AnimationLoop, BehaviorModel, CollisionAlgorithm, CollisionAlgorithm, CollisionAlgorithm, CollisionModel, ConfigurationSetting, ConstraintSet, ConstraintSolver, ConstraintSolver, ContextObject, Controller, Engine, ForceField, InteractionForceField, LinearSolver, LinearSystem, Loader, Mapping, Mass, MechanicalState, OdeSolver, ProjectiveConstraintSet, TopologicalMapping, Topology, TopologyObject, and VisualModel
const ComponentLibrary * sofa::core::CategoryLibrary::getComponent | ( | const std::string & | componentName | ) | const |
|
inline |
|
inline |
|
inline |