A factory for a RWPEConstraintSolver. This factory also defines an extension point for RWPEConstraintSolver.
More...
#include <RWPEConstraintSolver.hpp>
Inherits ExtensionPoint< RWPEConstraintSolver >.
|
typedef rw::common::Ptr< ExtensionPoint > | Ptr |
| smart pointer type of ExtensionPoint
|
|
| ExtensionPoint (const std::string &id, const std::string &name, Plugin *plugin=NULL) |
| Constructor. More...
|
|
const std::string & | getId () const |
| get unique identifier of this extensionpoint
|
|
const std::string & | getName () const |
| get human readable name of this extension point
|
|
const rw::common::PropertyMap & | getSchema () const |
| the schema describe the possible properties/configurations elements which is used in the PropertyMap. It contain examples of all possible configuration options. This can be used to configure any extensions that needs to attach to this extension point.
|
|
std::vector< Extension::Descriptor > | getExtensionDescriptors () const |
| get all extension descriptions of this extension point
|
|
std::vector< rw::common::Ptr< Extension > > | getExtensions () const |
| get all extensions of this extension point
|
|
rw::common::PropertyMap & | getSchema () |
| the schema describe the possible properties/configurations elements which is used in the PropertyMap. The schema property map should just be loaded with all possible configuration options which the extension might use. More...
|
|
A factory for a RWPEConstraintSolver. This factory also defines an extension point for RWPEConstraintSolver.
By default the factory provides the following RWPEConstraintSolver types:
- SVD - RWPEConstraintSolverSVD
◆ getSolvers()
static std::vector<std::string> getSolvers |
( |
| ) |
|
|
static |
Get the available solver types.
- Returns
- a vector of identifiers for solvers.
◆ hasSolver()
static bool hasSolver |
( |
const std::string & |
solverType | ) |
|
|
static |
Check if solver type is available.
- Parameters
-
solverType | [in] the name of the solver. |
- Returns
- true if available, false otherwise.
◆ makeSolver()
Create a new solver.
- Parameters
-
solverType | [in] the name of the solver. |
manager | [in] a pointer to the graph of bodies and constraints to use. |
gravity | [in] the gravity in world coordinates. |
- Returns
- a pointer to a new RWPEConstraintSolver - the pointer is owned by the caller.
The documentation for this class was generated from the following file: