Cortex
10.0.0-a4
|
#include <OversamplesCalculator.h>
Public Member Functions | |
OversamplesCalculator (float frameRate=24.0, unsigned samplesPerFrame=1, unsigned ticksPerSecond=6000) | |
void | setFrameRate (float frameRate) |
float | getFrameRate () const |
void | setSamplesPerFrame (unsigned samplesPerFrame) |
unsigned | getSamplesPerFrame () const |
void | setTicksPerSecond (unsigned ticksPerSecond) |
unsigned | getTicksPerSecond () const |
int | framesToTicks (float f) const |
Convert the given fractional frame into ticks. | |
float | ticksToFrames (int i) const |
Convert the specfied tick to frames. | |
int | nearestTick (int tick) const |
Returns the tick nearest to the argument. | |
float | tickInterval (float frame, int &tickLow, int &tickHigh) const |
Returns lerp factor, and the times of the adjacent ticks. | |
Performs conversions between floating-point time and a discretized "tick"-based system, such as the one Maya uses (there are 6000 Maya ticks per second). Also provides a utility for computing the interpolation factor between two successive ticks for a given frame under different oversampling conditions.