VisioMove SDK (iOS)
2.1.22
|
Public Types | |
typedef VgAnimation | Described |
Static Public Member Functions | |
static VgEngine::VgRefPtr< VgAnimationDescriptor > | create () |
Public Attributes | |
VgEngine::VgFunctorDescriptorMap | mFunctorDescriptors |
float | mDuration |
unsigned int | mLoopMode |
VgEngine::VgRefPtr< VgEngine::VgIAnimationCallback > | mCallback |
Protected Member Functions | |
VgAnimationDescriptor () | |
~VgAnimationDescriptor () | |
Additional Inherited Members | |
Public Member Functions inherited from VgEngine::VgReferenced | |
VgReferenced () | |
VgReferenced (const VgReferenced &pThis) | |
virtual | ~VgReferenced () |
VgReferenced & | operator= (const VgReferenced &pThis) |
void | ref () const |
int | unref () const |
int | getNbReferences () const |
Protected Attributes inherited from VgEngine::VgReferenced | |
int | mNbReferences |
This class implements descriptors for animations. This is the set of parameters that will allow animation instantiation.
This is the described type.
|
protected |
This constructor will initialize an empty animation descriptor (no channel functor).
|
protected |
It does not delete the callback nor the functor descriptors. It is the caller's responsibility to release the callbacks and the functor descriptors, they are not reference-counted.
|
static |
This static method returns a new heap-allocated descriptor. It is the only method that should be used to instantiate new descriptors. It is a way to make sure no one will delete it, except the last VgRefPtr pointing to it.
VgEngine::VgRefPtr< VgEngine::VgIAnimationCallback > VgEngine::VgAnimationDescriptor::mCallback |
Pointer to the callback to notify when the animation finishes. The caller must free this pointer, the animation must be stopped and deleted before freeing the callback. If the mLoop flag is true, this callback will never get called, since the animation never finishes.
float VgEngine::VgAnimationDescriptor::mDuration |
Animation duration in seconds (default is 1 second).
VgEngine::VgFunctorDescriptorMap VgEngine::VgAnimationDescriptor::mFunctorDescriptors |
This map associates a spatial (by name) an animation target (by name) and a functor descriptor that will be used to instantiate the real functors. If the spatial's name is empty, it means it is the spatial hosting the animation. Standard target names are "position", "orientation", ... (see When a functor descriptor is added to this map, the ownership is left to the caller. It is the caller responsibility to delete it after animation instantiation.
unsigned int VgEngine::VgAnimationDescriptor::mLoopMode |
Flag to set up a looping animation (default is no loop).