Radium Engine
1.5.20
|
#include <Core/Asset/AnimationTime.hpp>
Public Types | |
using | Time = Scalar |
Public Member Functions | |
AnimationTime (const Time &start=std::numeric_limits< Time >::max(), const Time &end=-std::numeric_limits< Time >::max()) | |
AnimationTime (const AnimationTime &time)=default | |
Time | |
Time | getStart () const |
void | setStart (const Time &start) |
Time | getEnd () const |
void | setEnd (const Time &end) |
void | extends (const Time &t) |
void | extends (const AnimationTime &time) |
Query | |
bool | isValid () const |
Time | duration () const |
bool | contains (const Time &t) const |
bool | intersect (const AnimationTime &time) const |
Comparison operators | |
Time | m_start |
Animation starting time. | |
Time | m_end |
Animation ending time. | |
bool | operator== (const AnimationTime &time) const |
bool | operator!= (const AnimationTime &time) const |
bool | operator== (const Time &t) const |
bool | operator< (const Time &t) const |
bool | operator> (const Time &t) const |
The AnimationTime class stores the start and end times of an animation.
Definition at line 14 of file AnimationTime.hpp.
using Ra::Core::Asset::AnimationTime::Time = Scalar |
Defines the type for time values.
Definition at line 20 of file AnimationTime.hpp.
|
inline |
Definition at line 22 of file AnimationTime.hpp.
|
inline |
Definition at line 28 of file AnimationTime.hpp.
|
inline |
Return true if \( t \in [start,end] \).
Definition at line 88 of file AnimationTime.hpp.
|
inline |
Return the animation duration.
Definition at line 83 of file AnimationTime.hpp.
|
inline |
Performs the merge of *this with time
, resulting in *this being the smallest AnimationTime containing both *this and time
.
Definition at line 65 of file AnimationTime.hpp.
|
inline |
Extends *this so that \( t \in [start,end] \).
Definition at line 56 of file AnimationTime.hpp.
|
inline |
Return the animation end time.
Definition at line 46 of file AnimationTime.hpp.
|
inline |
Return the animation start time.
Definition at line 36 of file AnimationTime.hpp.
|
inline |
Return true if \( *this \cap time \neq \emptyset \).
Definition at line 93 of file AnimationTime.hpp.
|
inline |
Return true if \( start < end \).
Definition at line 77 of file AnimationTime.hpp.
|
inline |
Returns true if *this and time
represent different animation times.
Definition at line 112 of file AnimationTime.hpp.
|
inline |
Returns true if \( t < end \).
Definition at line 122 of file AnimationTime.hpp.
|
inline |
Returns true if *this and time
represent the same animation time.
Definition at line 105 of file AnimationTime.hpp.
|
inline |
Returns true if \( t \in [start,end] \).
Definition at line 117 of file AnimationTime.hpp.
|
inline |
Returns true if \( t > start \).
Definition at line 127 of file AnimationTime.hpp.
|
inline |
Return the animation end time in end
.
Definition at line 51 of file AnimationTime.hpp.
|
inline |
Return the animation start time in start
.
Definition at line 41 of file AnimationTime.hpp.
|
protected |
Animation ending time.
Definition at line 134 of file AnimationTime.hpp.
|
protected |
Animation starting time.
Definition at line 131 of file AnimationTime.hpp.