VisioMove
2.1.5
|
This class implements descriptors for sinusoidal animation of vectors. More...
Static Public Member Functions | |
static VgRefPtr < VgSinusoidalVectorOffsetFunctorDescriptor > | create () |
This static method returns a new heap-allocated descriptor. More... | |
Public Attributes | |
float | mBaseVector [3] |
The base vector. More... | |
float | mVector [3] |
The vector along which we will animate (in local metric frame). More... | |
double | mStartPhase |
The sine function start phase (in radians). More... | |
double | mEndPhase |
The sine function end phase (in radians). More... | |
![]() | |
float | mStartTime |
The functor start time (relative to the animation's start time). More... | |
float | mEndTime |
The functor's end time (relative to the animation's start time). More... | |
Protected Member Functions | |
VgSinusoidalVectorOffsetFunctorDescriptor () | |
Class constructor. More... | |
virtual | ~VgSinusoidalVectorOffsetFunctorDescriptor () |
Class destructor. More... | |
![]() | |
VgFunctorDescriptor () | |
This class constructor is protected to prevent instantiation. More... | |
Friends | |
class | VgObjectBridge |
Additional Inherited Members | |
![]() | |
virtual | ~VgFunctorDescriptor () |
Class destructor. More... | |
![]() | |
VgReferenced () | |
Constructor. More... | |
VgReferenced (const VgReferenced &pThis) | |
Copy constructor. More... | |
virtual | ~VgReferenced () |
Destructor. More... | |
VgReferenced & | operator= (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... | |
![]() | |
Private * | mPrivate |
![]() | |
int | mNbReferences |
The number of references to this object. More... | |
This class implements descriptors for sinusoidal animation of vectors.
The sinusoidal vector animation will apply an offset vector weighted by a sinusoidal time-dependent function. The functors described by this class can be used for all animations channels that manage vectors as values. Formula is the following : f(t) = mBaseVector + sin(mStartPhase + t/mDuration * (mEndPhase-mStartPhase)) * mOffsetVector.
|
protected |
Class constructor.
This can't be called publicly, instances must be obtained through the VgSinusoidalVectorOffsetFunctorDescriptor::create method.
|
protectedvirtual |
Class destructor.
|
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.
|
friend |
float VgEngine::VgSinusoidalVectorOffsetFunctorDescriptor::mBaseVector[3] |
The base vector.
double VgEngine::VgSinusoidalVectorOffsetFunctorDescriptor::mEndPhase |
The sine function end phase (in radians).
double VgEngine::VgSinusoidalVectorOffsetFunctorDescriptor::mStartPhase |
The sine function start phase (in radians).
float VgEngine::VgSinusoidalVectorOffsetFunctorDescriptor::mVector[3] |
The vector along which we will animate (in local metric frame).