Static Public Member Functions | Public Attributes | Protected Member Functions | Friends

VgEngine::VgVectorInterpolationFunctorDescriptor Class Reference

This class implements descriptors for vector interpolation functors. More...

Inheritance diagram for VgEngine::VgVectorInterpolationFunctorDescriptor:
Inheritance graph
[legend]
Collaboration diagram for VgEngine::VgVectorInterpolationFunctorDescriptor:
Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static VgRefPtr
< VgVectorInterpolationFunctorDescriptor
create ()
 This static method returns a new heap-allocated descriptor.

Public Attributes

VgEngine::VgPosition mStartPosition
 The starting position.
VgEngine::VgPosition mEndPosition
 The target position.
bool mCubic
 This boolean value tells whether we should use a cubic function to add acceleration and deceleration (true) or pure linear with constant velocity (false).

Protected Member Functions

 VgVectorInterpolationFunctorDescriptor ()
 Class constructor.
virtual ~VgVectorInterpolationFunctorDescriptor ()
 Class destructor.

Friends

class VgObjectBridge

Detailed Description

This class implements descriptors for vector interpolation functors.

It will simply interpolate between the start and end vectors using linear interpolation. It is possible to set the functor to use a cubic function to have acceleration at start and deceleration at end.

Version:
2.0.7729

Constructor & Destructor Documentation

VgEngine::VgVectorInterpolationFunctorDescriptor::VgVectorInterpolationFunctorDescriptor (  ) [protected]

Class constructor.

This can't be called publicly, instances must be obtained through the VgVectorInterpolationFunctorDescriptor::create method.

virtual VgEngine::VgVectorInterpolationFunctorDescriptor::~VgVectorInterpolationFunctorDescriptor (  ) [protected, virtual]

Class destructor.


Member Function Documentation

static VgRefPtr< VgVectorInterpolationFunctorDescriptor > VgEngine::VgVectorInterpolationFunctorDescriptor::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.


Friends And Related Function Documentation

friend class VgObjectBridge [friend]

Reimplemented from VgEngine::VgFunctorDescriptor.


Member Data Documentation

This boolean value tells whether we should use a cubic function to add acceleration and deceleration (true) or pure linear with constant velocity (false).

The target position.

The starting position.


The documentation for this class was generated from the following file:
VisioDevKit 2.0, Visioglobe® 2013