Base class for a value animation instance, which includes animation runtime information and updates the target object's value automatically.  
 More...
#include </home/runner/work/urho3d-doxygen.github.io/urho3d-doxygen.github.io/urho3d_repo/Source/Urho3D/Scene/ValueAnimationInfo.h>
 | 
| 
  | 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 () override | 
|   | Destruct. 
  | 
|   | 
| 
bool  | Update (float timeStep) | 
|   | Advance time position and apply. Return true when the animation is finished. No-op when the target object is not defined. 
  | 
|   | 
| 
bool  | SetTime (float time) | 
|   | Set time position and apply. 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. 
  | 
|   | 
| 
Object *  | GetTarget () const | 
|   | Return target object. 
  | 
|   | 
| 
ValueAnimation *  | GetAnimation () const | 
|   | Return animation. 
  | 
|   | 
| 
WrapMode  | GetWrapMode () const | 
|   | Return wrap mode. 
  | 
|   | 
| 
float  | GetTime () const | 
|   | Return time position. 
  | 
|   | 
| 
float  | GetSpeed () const | 
|   | Return speed. 
  | 
|   | 
| 
  | 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. 
  | 
|   | 
| 
  | RefCounted (const RefCounted &rhs)=delete | 
|   | Prevent copy construction. 
  | 
|   | 
| 
RefCounted &  | operator= (const RefCounted &rhs)=delete | 
|   | Prevent assignment. 
  | 
|   | 
| 
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. 
  | 
|   | 
| 
RefCount *  | RefCountPtr () | 
|   | Return pointer to the reference count structure. 
  | 
|   | 
Base class for a value animation instance, which includes animation runtime information and updates the target object's value automatically. 
 
◆ ApplyValue()
  
  
      
        
          | void Urho3D::ValueAnimationInfo::ApplyValue  | 
          ( | 
          const Variant &  | 
          newValue | ) | 
           | 
         
       
   | 
  
protectedvirtual   | 
  
 
 
◆ GetEventFrames()
  
  
      
        
          | void Urho3D::ValueAnimationInfo::GetEventFrames  | 
          ( | 
          float  | 
          beginTime,  | 
         
        
           | 
           | 
          float  | 
          endTime,  | 
         
        
           | 
           | 
          Vector< const VAnimEventFrame * > &  | 
          eventFrames  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
protected   | 
  
 
Return event frames. 
- Todo:
 - This can miss an event if the deltatime is exactly the animation's length 
 
 
 
The documentation for this class was generated from the following files:
- /home/runner/work/urho3d-doxygen.github.io/urho3d-doxygen.github.io/urho3d_repo/Source/Urho3D/Scene/ValueAnimationInfo.h
 
- /home/runner/work/urho3d-doxygen.github.io/urho3d-doxygen.github.io/urho3d_repo/Source/Urho3D/Scene/ValueAnimationInfo.cpp