![]() |
Castor3D 0.17.0
Multiplatform 3D engine
|
#include <AnimatedObjectGroup.hpp>


Public Types | |
| using | AnimatedObjectMap = castor::StringMap< AnimatedObjectUPtr > |
Public Member Functions | |
| C3D_API | AnimatedObjectGroup (castor::String const &name, Scene &scene) |
| Specified constructor. | |
| C3D_API | ~AnimatedObjectGroup () noexcept |
| Destructor. | |
| C3D_API AnimatedObjectRPtr | addObject (SceneNode &node, castor::String const &name) |
| Creates an AnimatedObject from the SceneNode given as a parameter, adds it to the list. | |
| C3D_API AnimatedObjectRPtr | addObject (Mesh &mesh, Geometry &geometry, castor::String const &name) |
| Creates an AnimatedObject from the Mesh given as a parameter, adds it to the list. | |
| C3D_API AnimatedObjectRPtr | addObject (Skeleton &skeleton, Mesh &mesh, Geometry &geometry, castor::String const &name) |
| Creates an AnimatedObject from the Skeleton given as a parameter, adds it to the list. | |
| C3D_API AnimatedObjectRPtr | addObject (TextureSourceInfo const &sourceInfo, TextureConfiguration const &config, Pass &pass) |
| Creates an AnimatedObject for a texture, adds it to the list. | |
| C3D_API bool | addObject (AnimatedObjectUPtr object) |
| adds an AnimatedObject to this group. | |
| C3D_API AnimatedObject * | findObject (castor::String const &name) const |
| Find an AnimatedObject given its name. | |
| C3D_API bool | addAnimation (castor::String const &name) |
| adds the animation to the list. | |
| C3D_API void | setAnimationLooped (castor::String const &name, bool looped) |
| Sets the loop status of wanted animation. | |
| C3D_API void | setAnimationScale (castor::String const &name, float scale) |
| Sets the time scale of wanted animation. | |
| C3D_API void | setAnimationStartingPoint (castor::String const &name, castor::Milliseconds value) |
| Sets the starting point of wanted animation. | |
| C3D_API void | setAnimationStoppingPoint (castor::String const &name, castor::Milliseconds value) |
| Sets the stopping point of wanted animation. | |
| C3D_API void | setAnimationInterpolation (castor::String const &name, InterpolatorType mode) |
| Sets the interpolation mode of wanted animation. | |
| C3D_API void | update (CpuUpdater &updater) |
| CPU Update. | |
| C3D_API void | startAnimation (castor::String const &name) |
| Starts the animation identified by the given name. | |
| C3D_API void | stopAnimation (castor::String const &name) |
| Stops the animation identified by the given name. | |
| C3D_API void | pauseAnimation (castor::String const &name) |
| Pauses the animation identified by the given name. | |
| C3D_API void | startAllAnimations () |
| Starts all animations. | |
| C3D_API void | stopAllAnimations () |
| Stops all animations. | |
| C3D_API void | pauseAllAnimations () |
| Pauses all animations. | |
| GroupAnimationMap const & | getAnimations () const |
| AnimatedObjectMap const & | getObjects () const |
Public Member Functions inherited from castor::NamedBaseT< T > | |
| NamedBaseT (T name) noexcept | |
| Constructor. | |
| T const & | getName () const noexcept |
| Retrieves the name. | |
| void | rename (T name) noexcept |
Public Member Functions inherited from castor::OwnedBy< Scene > | |
| Scene * | getOwner () const noexcept |
| void | setOwner (Scene &owner) noexcept |
Static Public Member Functions | |
| static C3D_API void | addParsers (castor::AttributeParsers &result) |
Additional Inherited Members | |
Protected Member Functions inherited from castor::OwnedBy< Scene > | |
| OwnedBy (Scene &owner) noexcept | |
| Constructor. | |
Protected Attributes inherited from castor::NamedBaseT< T > | |
| T | m_name |
| using castor3d::AnimatedObjectGroup::AnimatedObjectMap = castor::StringMap< AnimatedObjectUPtr > |
| C3D_API castor3d::AnimatedObjectGroup::AnimatedObjectGroup | ( | castor::String const & | name, |
| Scene & | scene ) |
Specified constructor.
| [in] | scene | The scene |
| [in] | name | The group name |
|
noexcept |
Destructor.
| C3D_API bool castor3d::AnimatedObjectGroup::addAnimation | ( | castor::String const & | name | ) |
adds the animation to the list.
| [in] | name | The animation to add. |
true if the animation didn't exist already. | C3D_API bool castor3d::AnimatedObjectGroup::addObject | ( | AnimatedObjectUPtr | object | ) |
adds an AnimatedObject to this group.
| [in] | object | The AnimatedObject to add |
| C3D_API AnimatedObjectRPtr castor3d::AnimatedObjectGroup::addObject | ( | Mesh & | mesh, |
| Geometry & | geometry, | ||
| castor::String const & | name ) |
Creates an AnimatedObject from the Mesh given as a parameter, adds it to the list.
| [in] | mesh | The Mesh from which AnimatedObject is created. |
| [in] | geometry | The geometry instantiating the mesh. |
| [in] | name | The Mesh instance name. |
| C3D_API AnimatedObjectRPtr castor3d::AnimatedObjectGroup::addObject | ( | SceneNode & | node, |
| castor::String const & | name ) |
Creates an AnimatedObject from the SceneNode given as a parameter, adds it to the list.
| [in] | node | The SceneNode from which AnimatedObject is created. |
| [in] | name | The SceneNode instance name. |
| C3D_API AnimatedObjectRPtr castor3d::AnimatedObjectGroup::addObject | ( | Skeleton & | skeleton, |
| Mesh & | mesh, | ||
| Geometry & | geometry, | ||
| castor::String const & | name ) |
Creates an AnimatedObject from the Skeleton given as a parameter, adds it to the list.
| [in] | skeleton | The Skeleton from which AnimatedObject is created. |
| [in] | mesh | The mesh to which the skeleton is bound. |
| [in] | geometry | The geometry instantiating the mesh. |
| [in] | name | The Skeleton instance name. |
| C3D_API AnimatedObjectRPtr castor3d::AnimatedObjectGroup::addObject | ( | TextureSourceInfo const & | sourceInfo, |
| TextureConfiguration const & | config, | ||
| Pass & | pass ) |
Creates an AnimatedObject for a texture, adds it to the list.
| [in] | sourceInfo | The texture source informations. |
| [in] | config | The texture configuration. |
| [in] | pass | The pass instanciating the texture. |
|
static |
| C3D_API AnimatedObject * castor3d::AnimatedObjectGroup::findObject | ( | castor::String const & | name | ) | const |
Find an AnimatedObject given its name.
| [in] | name | The AnimatedObject name. |
|
inline |
|
inline |
| C3D_API void castor3d::AnimatedObjectGroup::pauseAllAnimations | ( | ) |
Pauses all animations.
| C3D_API void castor3d::AnimatedObjectGroup::pauseAnimation | ( | castor::String const & | name | ) |
Pauses the animation identified by the given name.
| [in] | name | The name of the animation |
| C3D_API void castor3d::AnimatedObjectGroup::setAnimationInterpolation | ( | castor::String const & | name, |
| InterpolatorType | mode ) |
Sets the interpolation mode of wanted animation.
| [in] | name | The name of the animation. |
| [in] | mode | The interpolation mode. |
| C3D_API void castor3d::AnimatedObjectGroup::setAnimationLooped | ( | castor::String const & | name, |
| bool | looped ) |
Sets the loop status of wanted animation.
| [in] | name | The name of the animation. |
| [in] | looped | The status. |
| C3D_API void castor3d::AnimatedObjectGroup::setAnimationScale | ( | castor::String const & | name, |
| float | scale ) |
Sets the time scale of wanted animation.
| [in] | name | The name of the animation. |
| [in] | scale | The scale. |
| C3D_API void castor3d::AnimatedObjectGroup::setAnimationStartingPoint | ( | castor::String const & | name, |
| castor::Milliseconds | value ) |
Sets the starting point of wanted animation.
| [in] | name | The name of the animation. |
| [in] | value | The starting point. |
| C3D_API void castor3d::AnimatedObjectGroup::setAnimationStoppingPoint | ( | castor::String const & | name, |
| castor::Milliseconds | value ) |
Sets the stopping point of wanted animation.
| [in] | name | The name of the animation. |
| [in] | value | The stopping point. |
| C3D_API void castor3d::AnimatedObjectGroup::startAllAnimations | ( | ) |
Starts all animations.
| C3D_API void castor3d::AnimatedObjectGroup::startAnimation | ( | castor::String const & | name | ) |
Starts the animation identified by the given name.
| [in] | name | The name of the animation |
| C3D_API void castor3d::AnimatedObjectGroup::stopAllAnimations | ( | ) |
Stops all animations.
| C3D_API void castor3d::AnimatedObjectGroup::stopAnimation | ( | castor::String const & | name | ) |
Stops the animation identified by the given name.
| [in] | name | The name of the animation |
| C3D_API void castor3d::AnimatedObjectGroup::update | ( | CpuUpdater & | updater | ) |
CPU Update.
| [in,out] | updater | The update data. |
| OnAnimatedMeshChange castor3d::AnimatedObjectGroup::onMeshAdded |
| OnAnimatedMeshChange castor3d::AnimatedObjectGroup::onMeshRemoved |
| OnAnimatedSceneNodeChange castor3d::AnimatedObjectGroup::onSceneNodeAdded |
| OnAnimatedSceneNodeChange castor3d::AnimatedObjectGroup::onSceneNodeRemoved |
| OnAnimatedSkeletonChange castor3d::AnimatedObjectGroup::onSkeletonAdded |
| OnAnimatedSkeletonChange castor3d::AnimatedObjectGroup::onSkeletonRemoved |
| OnAnimatedTextureChange castor3d::AnimatedObjectGroup::onTextureAdded |
| OnAnimatedTextureChange castor3d::AnimatedObjectGroup::onTextureRemoved |