Animation Clip Operator factory.
More...
#include <AnimationClipOperators.h>
Animation Clip Operator factory.
Factory used to create Animation Clip Operators.
◆ createAnimationClipOperator()
AtomsPtr<AnimationClipOperator> Atoms::AnimationClipOperators::createAnimationClipOperator |
( |
const std::string & |
name | ) |
|
Creates a animation clip operator.
- Parameters
-
name | animation clip operator type name |
- Returns
- Smart pointer to the animation clip operator created
◆ createAnimationClipOperatorRawPtr()
AnimationClipOperator* Atoms::AnimationClipOperators::createAnimationClipOperatorRawPtr |
( |
const std::string & |
name | ) |
|
Creates a animation clip operator.
- Parameters
-
name | animation clip operator type name |
- Returns
- Raw pointer to the animation clip operator created
◆ deregisterAnimationClipOperator()
bool Atoms::AnimationClipOperators::deregisterAnimationClipOperator |
( |
const std::string & |
name | ) |
|
Deregisters a animation clip operator type from the factory.
- Parameters
-
name | animation clip operator name |
- Returns
- True if the module is removed from the map
◆ getRegisteredAnimationClipOperators()
std::vector<std::string> Atoms::AnimationClipOperators::getRegisteredAnimationClipOperators |
( |
| ) |
|
Gets all registered animation clip operators.
- Returns
- List of all animation clip operator registered
◆ isRegistered()
bool Atoms::AnimationClipOperators::isRegistered |
( |
const std::string & |
name | ) |
|
Check if a animation clip operator is registered.
- Parameters
-
name | animation clip operator name |
- Returns
- Return true if the animation clip operator is already registered
◆ processClip()
Process a clip with the given operator.
- Parameters
-
clip | Animation Clip |
opName | The operator name |
metadata | The operator parameters |
- Returns
- Return false if the operator with the given name was not found or if any of the parameters are invalid
◆ registerAnimationClipOperator()
bool Atoms::AnimationClipOperators::registerAnimationClipOperator |
( |
const std::string & |
moduleName, |
|
|
creatorFn |
func, |
|
|
bool |
replace = false |
|
) |
| |
Registers a animation clip operator in the factory.
- Parameters
-
name | Behavioir module name |
func | creator function |
replace | Replace module if it already exists |
- Returns
- True if the module is added to the map
The documentation for this class was generated from the following file: