Key reducing filter.
Filter to test if each key is really necessary to define the curve at a definite degree of precision. It filters recursively from the strongest difference first. All useless keys are eliminated.
Definition at line 537 of file kfbxanimcurvefilters.h.
#include <kfbxanimcurvefilters.h>
Public Member Functions |
|
KFbxAnimCurveFilterKeyReducer () | |
Constructor. |
|
virtual | ~KFbxAnimCurveFilterKeyReducer () |
Destructor. |
|
virtual const char * | GetName () const |
Get the name of the filter. |
|
virtual bool | Apply (KFbxAnimCurve **pCurve, int pCount) |
Apply filter on the given animation curve.
|
|
virtual bool | Apply (KFbxAnimCurve &pCurve) |
Apply filter on an animation curve. |
|
virtual void | Reset () |
Reset the filter to its default parameters.
|
|
double | GetPrecision () const |
Get precision. |
|
void | SetPrecision (double pPrecision) |
Set precision. |
|
bool | GetKeySync () const |
Return true key sync is applied
at the end. |
|
void | SetKeySync (bool pKeySync) |
Set to true to apply key sync
at the end. |
|
Exposed parent class methods |
|
virtual bool | Apply (KFbxAnimStack *pAnimStack) |
Apply filter to all the curves stored in the
animation stack. |
|
virtual bool | Apply (KFbxObject *pObj, KFbxAnimStack *pAnimStack) |
Apply filter to all the animated properties
of the object. |
|
virtual bool | Apply (KFbxAnimCurveNode &pCurveNode) |
Apply filter on all the curves of an
animation curve node. |
Constructor.
virtual ~KFbxAnimCurveFilterKeyReducer | ( | ) | [inline, virtual] |
virtual const char* GetName | ( | ) | const [virtual] |
virtual bool Apply | ( | KFbxAnimStack * | pAnimStack | ) | [inline, virtual] |
Apply filter to all the curves stored in the animation stack.
pAnimStack | Animation stack where to retrieve the animation curves |
true
if the curve filtering operation was
successful, false
otherwise.Reimplemented from KFbxAnimCurveFilter.
Definition at line 555 of file kfbxanimcurvefilters.h.
{ return KFbxAnimCurveFilter::Apply(pAnimStack); }
virtual bool Apply | ( | KFbxObject * | pObj, |
KFbxAnimStack * | pAnimStack | ||
) | [inline, virtual] |
Apply filter to all the animated properties of the object.
pObj | Object containing the animated properties to which the filter is applied. |
pAnimStack | Animation stack where to retrieve the animation curves |
true
if the curve filtering operation was
successful, false
otherwise.Reimplemented from KFbxAnimCurveFilter.
Definition at line 556 of file kfbxanimcurvefilters.h.
{ return KFbxAnimCurveFilter::Apply(pObj, pAnimStack); }
virtual bool Apply | ( | KFbxAnimCurveNode & | pCurveNode | ) | [inline, virtual] |
Apply filter on all the curves of an animation curve node.
pCurveNode | Curve node to which the filter is applied. |
true
if the curve filtering operation was
successful, false
otherwise.Reimplemented from KFbxAnimCurveFilter.
Definition at line 557 of file kfbxanimcurvefilters.h.
{ return KFbxAnimCurveFilter::Apply(pCurveNode); }
virtual bool Apply | ( | KFbxAnimCurve ** | pCurve, |
int | pCount | ||
) | [virtual] |
Apply filter on the given animation curve.
pCurve | Array of curve to which the filter is applied. |
pCount | Number of curves in array. |
true
if the curve filtering operation was
successful, false
otherwise.Reimplemented from KFbxAnimCurveFilter.
virtual bool Apply | ( | KFbxAnimCurve & | pCurve | ) | [virtual] |
Apply filter on an animation curve.
pCurve | Curve to which the filter is applied. |
true
if the curve filtering operation was
successful, false
otherwise.Implements KFbxAnimCurveFilter.
virtual void Reset | ( | ) | [virtual] |
Reset the filter to its default parameters.
Reimplemented from KFbxAnimCurveFilter.
double GetPrecision | ( | ) | const |
Get precision.
void SetPrecision | ( | double | pPrecision | ) |
bool GetKeySync | ( | ) | const |
Return true
key sync is applied at the end.
void SetKeySync | ( | bool | pKeySync | ) |
Set to true
to apply key sync at the end.
pKeySync | Key sync flag. |