This class implements descriptors for orientation interpolation functors. More...
Static Public Member Functions | |
static VgEngine::VgRefPtr < VgEngine::VgQuaternionInterpolationFunctorDescriptor > | create () |
This static method returns a new heap-allocated descriptor. | |
Public Attributes | |
VgOrientation | mStartOrientation |
This is the starting orientation. | |
VgOrientation | mEndOrientation |
This is the target orientation. | |
int | mExtraSpins |
Number of additional full cycles. | |
bool | mCubic |
This boolean value tells whether a cubic function should be used to add acceleration and deceleration (true) or pure linear with constant velocity (false). | |
Protected Member Functions | |
VgQuaternionInterpolationFunctorDescriptor () | |
Class constructor. | |
virtual | ~VgQuaternionInterpolationFunctorDescriptor () |
Class destructor. | |
Friends | |
class | VgObjectBridge |
This class implements descriptors for orientation interpolation functors.
It will simply interpolate between the start and end orientations using spheric linear interpolation. It is possible to set the functor to use a cubic function to have acceleration at start and deceleration at end.
VgEngine::VgQuaternionInterpolationFunctorDescriptor::VgQuaternionInterpolationFunctorDescriptor | ( | ) | [protected] |
Class constructor.
This can't be called publicly, instances must be obtained through the VgQuaternionInterpolationFunctorDescriptor::create method.
virtual VgEngine::VgQuaternionInterpolationFunctorDescriptor::~VgQuaternionInterpolationFunctorDescriptor | ( | ) | [protected, virtual] |
Class destructor.
static VgEngine::VgRefPtr< VgEngine::VgQuaternionInterpolationFunctorDescriptor > VgEngine::VgQuaternionInterpolationFunctorDescriptor::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.
friend class VgObjectBridge [friend] |
Reimplemented from VgEngine::VgFunctorDescriptor.
This boolean value tells whether a cubic function should be used to add acceleration and deceleration (true) or pure linear with constant velocity (false).
This is the target orientation.
Number of additional full cycles.
This is the starting orientation.