This class describes a functor that approximates a sequence of floats with a spline. More...
Static Public Member Functions | |
static VgRefPtr < VgFloatSplineFunctorDescriptor > | create () |
This static method returns a new heap-allocated descriptor. | |
Public Attributes | |
std::vector< std::pair< float, float > > | mFloatNodes |
The vector of float nodes (val and time) of the spline. | |
Protected Member Functions | |
VgFloatSplineFunctorDescriptor () | |
Class constructor. | |
virtual | ~VgFloatSplineFunctorDescriptor () |
Class destructor. |
This class describes a functor that approximates a sequence of floats with a spline.
VgEngine::VgFloatSplineFunctorDescriptor::VgFloatSplineFunctorDescriptor | ( | ) | [protected] |
Class constructor.
This can't be called publicly, instances must be obtained through the VgFloatInterpolationFunctorDescriptor::create method.
virtual VgEngine::VgFloatSplineFunctorDescriptor::~VgFloatSplineFunctorDescriptor | ( | ) | [protected, virtual] |
Class destructor.
static VgRefPtr< VgFloatSplineFunctorDescriptor > VgEngine::VgFloatSplineFunctorDescriptor::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.
std::vector< std::pair< float, float > > VgEngine::VgFloatSplineFunctorDescriptor::mFloatNodes |
The vector of float nodes (val and time) of the spline.
First element is the value, second is the time. Times must be in ascending order.