A template class to create key objects for the Animation class. More...
#include "murl_logic_animation.h"
Public Types | |
using | ValueType = DataType |
The template parameter value type. | |
Public Member Functions | |
AnimationKey () | |
The default constructor. | |
AnimationKey (Real time, const DataType &value) | |
The constructor including time and value. More... | |
AnimationKey (Real time, const DataType &value, Bool linear) | |
The constructor including time, value and linear flag. More... | |
AnimationKey (Real time, const DataType &value, IEnums::Interpolation interpolation) | |
The constructor including time, value and interpolation. More... | |
Bool | IsEqual (const AnimationKey &other) const |
Compare the animation key to another one. More... | |
bool | operator== (const AnimationKey &rhs) const |
The "equal to" comparison operator, calls IsEqual(). More... | |
bool | operator!= (const AnimationKey &rhs) const |
The "not equal to" comparison operator, calls IsEqual(). More... | |
Public Attributes | |
Real | mTime |
The time of the key. | |
DataType | mValue |
The value of the key. | |
IEnums::Interpolation | mInterpolation |
The interpolation type of the key. | |
Detailed Description
template<class DataType>
class Murl::Logic::AnimationKey< DataType >
A template class to create key objects for the Animation class.
Constructor & Destructor Documentation
◆ AnimationKey() [1/3]
|
inline |
The constructor including time and value.
- Parameters
-
time The time for the key in seconds. value The value for the key.
◆ AnimationKey() [2/3]
|
inline |
The constructor including time, value and linear flag.
- Parameters
-
time The time for the key in seconds. value The value for the key. linear true for linear interpolation, false for constant interpolation.
◆ AnimationKey() [3/3]
|
inline |
The constructor including time, value and interpolation.
- Parameters
-
time The time for the key in seconds. value The value for the key. interpolation The interpolation type.
Member Function Documentation
◆ IsEqual()
|
inline |
Compare the animation key to another one.
- Parameters
-
other The key to compare.
- Returns
- true if both keys are identical.
References Murl::Logic::AnimationKey< DataType >::mInterpolation, Murl::Logic::AnimationKey< DataType >::mTime, and Murl::Logic::AnimationKey< DataType >::mValue.
Referenced by Murl::Logic::AnimationKey< DataType >::operator!=(), and Murl::Logic::AnimationKey< DataType >::operator==().
◆ operator==()
|
inline |
The "equal to" comparison operator, calls IsEqual().
- Parameters
-
rhs The right hand side key to compare.
- Returns
- true if both keys are identical.
References Murl::Logic::AnimationKey< DataType >::IsEqual().
◆ operator!=()
|
inline |
The "not equal to" comparison operator, calls IsEqual().
- Parameters
-
rhs The right hand side key to compare.
- Returns
- true if both keys are not identical.
References Murl::Logic::AnimationKey< DataType >::IsEqual().
The documentation for this class was generated from the following file:
- murl_logic_animation.h