keyreduc.h File Reference

keyreduc.h File Reference
#include "coreexp.h"
#include "maxheap.h"
#include "interval.h"

Classes

class  KeyReduceStatus
 

Macros

#define DEFULAT_KEYREDUCE_THRESHOLD   (0.5f)
 
#define KEYREDUCE_ABORT   -1
 
#define KEYREDUCE_STOP   0
 
#define KEYREDUCE_CONTINUE   1
 

Functions

CoreExport int ApplyKeyReduction (Control *cont, Interval range, float thresh, TimeValue step, KeyReduceStatus *status)
 Attempts to delete keys that lie within the given time range. More...
 

Macro Definition Documentation

#define DEFULAT_KEYREDUCE_THRESHOLD   (0.5f)
#define KEYREDUCE_ABORT   -1
#define KEYREDUCE_STOP   0
#define KEYREDUCE_CONTINUE   1

Function Documentation

CoreExport int ApplyKeyReduction ( Control cont,
Interval  range,
float  thresh,
TimeValue  step,
KeyReduceStatus status 
)

Attempts to delete keys that lie within the given time range.

Parameters
contThe controller whose keys are to be reduced.
rangeThe time range within which to delete keys.
threshAfter the key reduction, the controller's values at each step are guaranteed to be within this distance from their original values.
stepThe controller will be sampled in steps of this time increment.
statusThe callback object used to report the key reduction status and control continued processing.