Urho3D::AttributeAnimationInfo Class Reference

Attribute animation instance. More...

#include <Animatable.h>

Inheritance diagram for Urho3D::AttributeAnimationInfo:
[legend]
Collaboration diagram for Urho3D::AttributeAnimationInfo:
[legend]

Public Member Functions

 AttributeAnimationInfo (Animatable *animatable, const AttributeInfo &attributeInfo, ValueAnimation *attributeAnimation, WrapMode wrapMode, float speed)
 Construct.
 
 AttributeAnimationInfo (const AttributeAnimationInfo &other)
 Copy construct.
 
 ~AttributeAnimationInfo ()
 Destruct.
 
const AttributeInfoGetAttributeInfo () const
 Return attribute infomation.
 
- Public Member Functions inherited from Urho3D::ValueAnimationInfo
 ValueAnimationInfo (ValueAnimation *animation, WrapMode wrapMode, float speed)
 Construct without target object.
 
 ValueAnimationInfo (Object *target, ValueAnimation *animation, WrapMode wrapMode, float speed)
 Construct with target object.
 
 ValueAnimationInfo (const ValueAnimationInfo &other)
 Copy construct.
 
 ~ValueAnimationInfo ()
 Destruct.
 
bool Update (float timeStep)
 Update. Return true when the animation is finished. No-op when the target object is not defined.
 
void SetWrapMode (WrapMode wrapMode)
 Set wrap mode.
 
void SetSpeed (float speed)
 Set speed.
 
ObjectGetTarget () const
 Return target object.
 
ValueAnimationGetAnimation () const
 Return animation.
 
WrapMode GetWrapMode () const
 Return wrap mode.
 
float GetSpeed () const
 Return speed.
 
- Public Member Functions inherited from Urho3D::RefCounted
 RefCounted ()
 Construct. Allocate the reference count structure and set an initial self weak reference.
 
virtual ~RefCounted ()
 Destruct. Mark as expired and also delete the reference count structure if no outside weak references exist.
 
void AddRef ()
 Increment reference count. Can also be called outside of a SharedPtr for traditional reference counting.
 
void ReleaseRef ()
 Decrement reference count and delete self if no more references. Can also be called outside of a SharedPtr for traditional reference counting.
 
int Refs () const
 Return reference count.
 
int WeakRefs () const
 Return weak reference count.
 
RefCountRefCountPtr ()
 Return pointer to the reference count structure.
 

Protected Member Functions

virtual void ApplyValue (const Variant &newValue)
 Apply new animation value to the target object. Called by Update().
 
- Protected Member Functions inherited from Urho3D::ValueAnimationInfo
float CalculateScaledTime (float currentTime, bool &finished) const
 Calculate scaled time.
 
void GetEventFrames (float beginTime, float endTime, PODVector< const VAnimEventFrame * > &eventFrames)
 Return event frames.
 

Private Attributes

const AttributeInfoattributeInfo_
 Attribute information.
 

Additional Inherited Members

- Protected Attributes inherited from Urho3D::ValueAnimationInfo
WeakPtr< Objecttarget_
 Target object.
 
SharedPtr< ValueAnimationanimation_
 Attribute animation.
 
WrapMode wrapMode_
 Wrap mode.
 
float speed_
 Animation speed.
 
float currentTime_
 Current time.
 
float lastScaledTime_
 Last scaled time.
 

Detailed Description

Attribute animation instance.


The documentation for this class was generated from the following files:
  • /home/travis/build/urho3d/Urho3D/Source/Urho3D/Scene/Animatable.h
  • /home/travis/build/urho3d/Urho3D/Source/Urho3D/Scene/Animatable.cpp