VisioMove  2.1.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Friends Pages
VgEngine::VgAnimationDescriptor Struct Reference

This class implements descriptors for animations. More...

Inheritance diagram for VgEngine::VgAnimationDescriptor:
Inheritance graph

Public Types

typedef VgAnimation Described
 This is the described type. More...
 

Static Public Member Functions

static VgEngine::VgRefPtr
< VgAnimationDescriptor
create ()
 This static method returns a new heap-allocated descriptor. More...
 

Public Attributes

VgEngine::VgFunctorDescriptorMap 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. More...
 
float mDuration
 Animation duration in seconds (default is 1 second). More...
 
unsigned int mLoopMode
 Flag to set up a looping animation (default is no loop). More...
 
VgEngine::VgRefPtr
< VgEngine::VgIAnimationCallback
mCallback
 Pointer to the callback to notify when the animation finishes. More...
 

Protected Member Functions

 VgAnimationDescriptor ()
 This constructor will initialize an empty animation descriptor (no channel functor). More...
 
 ~VgAnimationDescriptor ()
 It does not delete the callback nor the functor descriptors. More...
 

Additional Inherited Members

- Public Member Functions inherited from VgEngine::VgReferenced
 VgReferenced ()
 Constructor. More...
 
 VgReferenced (const VgReferenced &pThis)
 Copy constructor. More...
 
virtual ~VgReferenced ()
 Destructor. More...
 
VgReferencedoperator= (const VgReferenced &pThis)
 Assignment operator. More...
 
void ref () const
 This method is used to add a reference to this object. More...
 
int unref () const
 This method is used to remove a reference to this object. More...
 
int getNbReferences () const
 Retrieves the number of references to this object. More...
 
- Protected Attributes inherited from VgEngine::VgReferenced
int mNbReferences
 The number of references to this object. More...
 

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.5, Visioglobe® 2015