This class saves animation data for float properties.
More...
#include <AnimateableProperty.h>
|
| AnimateableProperty (int count=1) |
| Creates a new animateable property.
|
|
| AnimateableProperty (int count, float value) |
| Creates a new animateable property.
|
|
| ~AnimateableProperty () |
| Destroys the animateable property.
|
|
int | getCount () const |
| Returns the count of floats for a single property.
|
|
void | write (const float *data) |
| Writes the properties value and marks it non-animated.
|
|
void | write (const float *data, int position, int count) |
| Writes the properties value and marks it animated.
|
|
void | read (float position, float *out) |
| Reads the properties value.
|
|
bool | isAnimated () const |
| Returns whether the property is animated.
|
|
This class saves animation data for float properties.
◆ AnimateableProperty() [1/2]
AnimateableProperty::AnimateableProperty |
( |
int |
count = 1 | ) |
|
Creates a new animateable property.
- Parameters
-
count | The count of floats for a single property. |
◆ AnimateableProperty() [2/2]
AnimateableProperty::AnimateableProperty |
( |
int |
count, |
|
|
float |
value |
|
) |
| |
Creates a new animateable property.
- Parameters
-
count | The count of floats for a single property. |
value | The value that the property should get initialized with. All count floats will be initialized to the same value. |
◆ getCount()
int AnimateableProperty::getCount |
( |
| ) |
const |
Returns the count of floats for a single property.
- Returns
- The count of floats stored per frame.
◆ isAnimated()
bool AnimateableProperty::isAnimated |
( |
| ) |
const |
Returns whether the property is animated.
- Returns
- Whether the property is animated.
◆ read()
void AnimateableProperty::read |
( |
float |
position, |
|
|
float * |
out |
|
) |
| |
Reads the properties value.
- Parameters
-
| position | The position in the animation in frames. |
[out] | out | Where to write the value to. |
◆ write() [1/2]
void AnimateableProperty::write |
( |
const float * |
data | ) |
|
Writes the properties value and marks it non-animated.
- Parameters
-
◆ write() [2/2]
void AnimateableProperty::write |
( |
const float * |
data, |
|
|
int |
position, |
|
|
int |
count |
|
) |
| |
Writes the properties value and marks it animated.
- Parameters
-
data | The new value. |
position | The position in the animation in frames. |
count | The count of frames to write. |
The documentation for this class was generated from the following file: