Castor3D 0.17.0
Multiplatform 3D engine
Public Member Functions | Friends | List of all members
castor3d::TextureAnimation Class Reference

#include <TextureAnimation.hpp>

Inheritance diagram for castor3d::TextureAnimation:
Inheritance graph
[legend]
Collaboration diagram for castor3d::TextureAnimation:
Collaboration graph
[legend]

Public Member Functions

C3D_API TextureAnimation (Engine &engine, castor::String const &name=castor::cuEmptyString)
 Constructor.
 
C3D_API void setAnimable (TextureUnit &unit)
 
C3D_API void initialiseTiles (TextureUnit const &unit)
 
C3D_API castor::Point3f getTranslate (castor::Milliseconds const &time) const
 
C3D_API castor::Angle getRotate (castor::Milliseconds const &time) const
 
C3D_API castor::Point3f getScale (castor::Milliseconds const &time) const
 
C3D_API bool isTransformAnimated () const
 
void addPendingAnimated (AnimatedObject &object) noexcept
 
TextureTranslateSpeed const & getTranslateSpeed () const noexcept
 
TextureRotateSpeed const & getRotateSpeed () const noexcept
 
TextureScaleSpeed const & getScaleSpeed () const noexcept
 
void setTranslateSpeed (TextureTranslateSpeed translate) noexcept
 
void setRotateSpeed (TextureRotateSpeed rotate) noexcept
 
void setScaleSpeed (TextureScaleSpeed scale) noexcept
 
void enableTileAnim () noexcept
 
bool isTileAnimated () const noexcept
 
void setTransformSpeed (TextureTranslateSpeed translate, TextureRotateSpeed rotate, TextureScaleSpeed scale) noexcept
 
C3D_API TextureAnimation (TextureAnimation &&rhs) noexcept=default
 
C3D_API TextureAnimationoperator= (TextureAnimation &&rhs) noexcept=delete
 
C3D_API TextureAnimation (TextureAnimation const &rhs)=delete
 
C3D_API TextureAnimationoperator= (TextureAnimation const &rhs)=delete
 
C3D_API ~TextureAnimation () noexcept override=default
 
- Public Member Functions inherited from castor3d::Animation
C3D_API Animation (Engine &handler, AnimationType type, Animable &animable, castor::String const &name=castor::cuEmptyString)
 Constructor.
 
C3D_API Animation (Engine &handler, AnimationType type, castor::String const &name=castor::cuEmptyString)
 Constructor.
 
C3D_API void addKeyFrame (AnimationKeyFrameUPtr keyFrame)
 Adds a keyframe to the animation.
 
C3D_API AnimationKeyFrameArray::iterator find (castor::Milliseconds const &time)
 Finds a keyframe given a time index.
 
C3D_API void findKeyFrame (castor::Milliseconds const &time, AnimationKeyFrameArray::iterator &prv, AnimationKeyFrameArray::iterator &cur) const
 Finds a keyframe given a time index.
 
C3D_API void updateLength ()
 Updates the animation length.
 
C3D_API void cloneInto (Animation &output) const
 Clones this object into the given one.
 
bool isEmpty () const
 
size_t size () const
 
AnimationKeyFrameArray::const_iterator begin () const
 
AnimationKeyFrameArray::iterator begin ()
 
AnimationKeyFrameArray::const_iterator end () const
 
AnimationKeyFrameArray::iterator end ()
 
AnimationType getType () const
 
castor::Milliseconds const & getLength () const
 
AnimablegetAnimable () const
 
C3D_API Animation (Animation &&rhs) noexcept=default
 
C3D_API Animationoperator= (Animation &&rhs) noexcept=delete
 
C3D_API Animation (Animation const &rhs)=delete
 
C3D_API Animationoperator= (Animation const &rhs)=delete
 
virtual C3D_API ~Animation () noexcept=default
 
- 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< Engine >
Engine * getOwner () const noexcept
 
void setOwner (Engine &owner) noexcept
 

Friends

class BinaryWriter< TextureAnimation >
 
class BinaryParser< TextureAnimation >
 
class TextureAnimationInstance
 

Additional Inherited Members

- Protected Member Functions inherited from castor::OwnedBy< Engine >
 OwnedBy (Engine &owner) noexcept
 Constructor.
 
- Protected Attributes inherited from castor3d::Animation
Animablem_animable {}
 
AnimationType m_type { AnimationType::eCount }
 
castor::Milliseconds m_length { 0 }
 
AnimationKeyFrameArray m_keyframes
 
- Protected Attributes inherited from castor::NamedBaseT< T >
m_name
 

Constructor & Destructor Documentation

◆ TextureAnimation() [1/3]

C3D_API castor3d::TextureAnimation::TextureAnimation ( TextureAnimation && rhs)
defaultnoexcept

name Copy / Move.

◆ TextureAnimation() [2/3]

C3D_API castor3d::TextureAnimation::TextureAnimation ( TextureAnimation const & rhs)
delete

◆ ~TextureAnimation()

C3D_API castor3d::TextureAnimation::~TextureAnimation ( )
overridedefaultnoexcept

◆ TextureAnimation() [3/3]

C3D_API castor3d::TextureAnimation::TextureAnimation ( Engine & engine,
castor::String const & name = castor::cuEmptyString )
explicit

Constructor.

Parameters
[in]engineThe engine.
[in]nameThe name of the animation.

Member Function Documentation

◆ addPendingAnimated()

void castor3d::TextureAnimation::addPendingAnimated ( AnimatedObject & object)
inlinenoexcept

◆ enableTileAnim()

void castor3d::TextureAnimation::enableTileAnim ( )
inlinenoexcept

◆ getRotate()

C3D_API castor::Angle castor3d::TextureAnimation::getRotate ( castor::Milliseconds const & time) const

◆ getRotateSpeed()

TextureRotateSpeed const & castor3d::TextureAnimation::getRotateSpeed ( ) const
inlinenoexcept

◆ getScale()

C3D_API castor::Point3f castor3d::TextureAnimation::getScale ( castor::Milliseconds const & time) const

◆ getScaleSpeed()

TextureScaleSpeed const & castor3d::TextureAnimation::getScaleSpeed ( ) const
inlinenoexcept

◆ getTranslate()

C3D_API castor::Point3f castor3d::TextureAnimation::getTranslate ( castor::Milliseconds const & time) const

◆ getTranslateSpeed()

TextureTranslateSpeed const & castor3d::TextureAnimation::getTranslateSpeed ( ) const
inlinenoexcept

◆ initialiseTiles()

C3D_API void castor3d::TextureAnimation::initialiseTiles ( TextureUnit const & unit)

◆ isTileAnimated()

bool castor3d::TextureAnimation::isTileAnimated ( ) const
inlinenoexcept

◆ isTransformAnimated()

C3D_API bool castor3d::TextureAnimation::isTransformAnimated ( ) const

◆ operator=() [1/2]

C3D_API TextureAnimation & castor3d::TextureAnimation::operator= ( TextureAnimation && rhs)
deletenoexcept

◆ operator=() [2/2]

C3D_API TextureAnimation & castor3d::TextureAnimation::operator= ( TextureAnimation const & rhs)
delete

◆ setAnimable()

C3D_API void castor3d::TextureAnimation::setAnimable ( TextureUnit & unit)

◆ setRotateSpeed()

void castor3d::TextureAnimation::setRotateSpeed ( TextureRotateSpeed rotate)
inlinenoexcept

Referenced by setTransformSpeed().

Here is the caller graph for this function:

◆ setScaleSpeed()

void castor3d::TextureAnimation::setScaleSpeed ( TextureScaleSpeed scale)
inlinenoexcept

Referenced by setTransformSpeed().

Here is the caller graph for this function:

◆ setTransformSpeed()

void castor3d::TextureAnimation::setTransformSpeed ( TextureTranslateSpeed translate,
TextureRotateSpeed rotate,
TextureScaleSpeed scale )
inlinenoexcept

References setRotateSpeed(), setScaleSpeed(), and setTranslateSpeed().

Here is the call graph for this function:

◆ setTranslateSpeed()

void castor3d::TextureAnimation::setTranslateSpeed ( TextureTranslateSpeed translate)
inlinenoexcept

Referenced by setTransformSpeed().

Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ BinaryParser< TextureAnimation >

friend class BinaryParser< TextureAnimation >
friend

◆ BinaryWriter< TextureAnimation >

friend class BinaryWriter< TextureAnimation >
friend

◆ TextureAnimationInstance

friend class TextureAnimationInstance
friend

The documentation for this class was generated from the following file: