VisioMove SDK (iOS)  2.1.22
VgEngine::VgAnimationDescriptor Struct Reference
Inheritance diagram for VgEngine::VgAnimationDescriptor:
Inheritance graph

Public Types

typedef VgAnimation Described
 

Static Public Member Functions

static VgEngine::VgRefPtr< VgAnimationDescriptorcreate ()
 

Public Attributes

VgEngine::VgFunctorDescriptorMap mFunctorDescriptors
 
float mDuration
 
unsigned int mLoopMode
 
VgEngine::VgRefPtr< VgEngine::VgIAnimationCallbackmCallback
 

Protected Member Functions

 VgAnimationDescriptor ()
 
 ~VgAnimationDescriptor ()
 

Additional Inherited Members

- Public Member Functions inherited from VgEngine::VgReferenced
 VgReferenced ()
 
 VgReferenced (const VgReferenced &pThis)
 
virtual ~VgReferenced ()
 
VgReferencedoperator= (const VgReferenced &pThis)
 
void ref () const
 
int unref () const
 
int getNbReferences () const
 
- Protected Attributes inherited from VgEngine::VgReferenced
int mNbReferences
 

Detailed Description

This class implements descriptors for animations. This is the set of parameters that will allow animation instantiation.

Member Typedef Documentation

This is the described type.

Constructor & Destructor Documentation

VgEngine::VgAnimationDescriptor::VgAnimationDescriptor ( )
protected

This constructor will initialize an empty animation descriptor (no channel functor).

VgEngine::VgAnimationDescriptor::~VgAnimationDescriptor ( )
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.

Member Function Documentation

static VgEngine::VgRefPtr< VgAnimationDescriptor > VgEngine::VgAnimationDescriptor::create ( )
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.

Member Data Documentation

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).

Version
2.0.7729

The documentation for this struct was generated from the following file:
VisioMove 2.1.22, Visioglobe® 2016