|
Assignments
Assignments
|
#include <keyFrames.h>
Public Member Functions | |
| KeyFrameData (void) | |
| ~KeyFrameData (void) | |
| float | duration (void) const |
| int | keyframes (void) const |
| int | dofs (void) const |
| const DataType & | current (const std::string &dofName) const |
| template<typename ParameterType> | |
| void | setEvaluator (void) |
| void | setCurrentValues (double t, int curveType) |
Private Attributes | |
| float | _duration |
| std::vector< std::string > | _dofNames |
| std::vector< std::vector< DataType > > | _data |
| std::vector< DataType > | _currentValues |
| KeyFrameEvaluator< DataType > * | _keyFrameEvaluator |
This templated class represents a set of key-frame values associated to named degrees of freedom
| Ray::KeyFrameData< DataType >::KeyFrameData | ( | void | ) |
The default constructor
| Ray::KeyFrameData< DataType >::~KeyFrameData | ( | void | ) |
The destructor
| const DataType & Ray::KeyFrameData< DataType >::current | ( | const std::string & | dofName | ) | const |
This method returns a reference to the DataType storing the current data for the specified dof
| int Ray::KeyFrameData< DataType >::dofs | ( | void | ) | const |
This method returns the number of parameters stored.
| float Ray::KeyFrameData< DataType >::duration | ( | void | ) | const |
This is the duration (in seconds) over which the animation is to play
| int Ray::KeyFrameData< DataType >::keyframes | ( | void | ) | const |
This method returns the number of key-frames stored.
| void Ray::KeyFrameData< DataType >::setCurrentValues | ( | double | t, |
| int | curveType ) |
This method updates the current value of all the parameters, using the interpolation/approximation method specified by curveType
| void Ray::KeyFrameData< DataType >::setEvaluator | ( | void | ) |
This templated method sets the evaluator using the prescribed type of parameter
|
private |
The current values for the different degrees of freedom
|
private |
The key-frame values for the different degrees of freedom
|
private |
The names of the degrees of freedom
|
private |
The duration of the animation
|
private |
An object enabling the interpolation of key frame values