Rebel Fork Framework
Urho3D::VariantAnimationTrack Struct Reference

Generic animation track, stores keyframes of single animatable entity. More...

#include <Urho3D/Graphics/AnimationTrack.h>

Inheritance diagram for Urho3D::VariantAnimationTrack:
Urho3D::VariantCurve Urho3D::KeyFrameSet< VariantCurvePoint >

Public Member Functions

bool IsLooped () const
 Return whether the track is looped, i.e. the first and the last keyframes have the same value.
 
- Public Member Functions inherited from Urho3D::VariantCurve
void Commit ()
 
Variant Sample (float time, float duration, bool isLooped, unsigned &frameIndex) const
 Sample value at given time.
 
VariantType GetType () const
 Return type of animation track. Defined by the type of the first keyframe.
 
void SerializeInBlock (Archive &archive)
 Serialize content from/to archive. May throw ArchiveException.
 
unsigned ToHash () const
 
bool operator== (const VariantCurve &rhs) const
 
bool operator!= (const VariantCurve &rhs) const
 
- Public Member Functions inherited from Urho3D::KeyFrameSet< VariantCurvePoint >
void SortKeyFrames ()
 Sort keyframes by time.
 
void AddKeyFrame (const KeyFrame &keyFrame)
 Append keyframe preserving container order.
 
void RemoveKeyFrame (unsigned index)
 Remove a keyframe at index.
 
void RemoveAllKeyFrames ()
 Remove all keyframes.
 
KeyFrameGetKeyFrame (unsigned index)
 Return keyframe at index, or null if not found.
 
unsigned GetNumKeyFrames () const
 
void GetKeyFrames (float time, float duration, bool isLooped, unsigned &frameIndex, unsigned &nextFrameIndex, float &blendFactor) const
 Return keyframes for interpolation.
 
bool GetKeyFrameIndex (float time, unsigned &index) const
 Return keyframe index based on time and previous index as hint. Return false if animation is empty.
 

Public Attributes

float weight_ {1.0f}
 Weight of the track.
 
- Public Attributes inherited from Urho3D::VariantCurve
ea::string name_
 Annotated name of the curve. May have special meaning for the user.
 
StringHash nameHash_
 
KeyFrameInterpolation interpolation_ { KeyFrameInterpolation::Linear }
 Interpolation mode.
 
float splineTension_ { 0.5f }
 Spline tension for spline interpolation.
 
ea::vector< VariantinTangents_
 Tangents for cubic spline. Recalculated on commit for tension spline.
 
ea::vector< VariantoutTangents_
 
VariantType type_ {}
 Type of values, deduced from key frames.
 
- Public Attributes inherited from Urho3D::KeyFrameSet< VariantCurvePoint >
ea::vector< KeyFramekeyFrames_
 

Additional Inherited Members

- Public Types inherited from Urho3D::KeyFrameSet< VariantCurvePoint >
using KeyFrame = VariantCurvePoint
 
- Static Public Attributes inherited from Urho3D::VariantCurve
static const VariantCurve EMPTY
 Empty curve. Returns empty Variant on sampling.
 

Detailed Description

Generic animation track, stores keyframes of single animatable entity.


The documentation for this struct was generated from the following files: