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 301 of file kfbxkfcurvefilters.h.
#include <kfbxkfcurvefilters.h>
Public Member Functions |
|
virtual K_DEPRECATED const char * | GetName () const |
Get the name of the filter. |
|
virtual K_DEPRECATED KTime & | GetStartTime () |
Get the start time for the application of
the filter. |
|
virtual K_DEPRECATED void | SetStartTime (KTime &pTime) |
Set the start time for the application of
the filter. |
|
virtual K_DEPRECATED KTime & | GetStopTime () |
Get the stop time for the application of the
filter. |
|
virtual K_DEPRECATED void | SetStopTime (KTime &pTime) |
Set the stop time for the application of the
filter. |
|
virtual K_DEPRECATED int | GetStartKey (KFbxAnimCurve &pCurve) const |
Get the index of start key on the given
curve. |
|
virtual K_DEPRECATED int | GetStopKey (KFbxAnimCurve &pCurve) const |
Get the index of stop key on the given
curve. |
|
virtual K_DEPRECATED bool | NeedApply (KFbxAnimStack *pAnimStack) |
Check if any curve on the animation stack
needs an application of the filter. |
|
virtual K_DEPRECATED bool | NeedApply (KFbxAnimCurveNode &pCurveNode) |
Check if the animation curve node needs an
application of the filter. |
|
virtual K_DEPRECATED bool | NeedApply (KFbxAnimCurve **pCurve, int pCount) |
Check if the given animation curve need an
application of the filter. |
|
virtual K_DEPRECATED bool | NeedApply (KFbxAnimCurve &pCurve) |
Check if an animation curve need an
application of the filter. |
|
virtual K_DEPRECATED KError * | GetError () |
Retrieve error object. |
|
virtual K_DEPRECATED int | GetLastErrorID () const |
Get last error ID. |
|
virtual K_DEPRECATED const char * | GetLastErrorString () const |
Get last error string. |
|
virtual K_DEPRECATED bool | Apply (KFbxAnimStack *pAnimStack) |
Apply filter to all the curves stored in the
animation stack. |
|
virtual K_DEPRECATED bool | Apply (KFbxAnimCurveNode &pCurveNode) |
Apply filter on all the curves of an
animation curve node. |
|
virtual K_DEPRECATED bool | Apply (KFbxAnimCurve **pCurve, int pCount) |
Apply filter on the given animation curve.
|
|
virtual K_DEPRECATED bool | Apply (KFbxAnimCurve &pCurve) |
Apply filter on an animation curve. |
|
virtual K_DEPRECATED void | Reset () |
Reset the filter to its default parameters.
|
|
K_DEPRECATED double | GetPrecision () const |
Get precision. |
|
K_DEPRECATED void | SetPrecision (double pPrecision) |
Set precision. |
|
K_DEPRECATED bool | GetKeySync () const |
Return true key sync is applied
at the end. |
|
K_DEPRECATED void | SetKeySync (bool pKeySync) |
Set to true to apply key sync
at the end. |
|
Protected Member Functions |
|
KFbxKFCurveFilterKeyReducer (KFbxSdkManager &pManager, char const *pName) | |
Constructor. |
|
virtual void | Destruct (bool pRecursive, bool pDependents) |
Protected Attributes |
|
KFCurveFilterKeyReducer * | mDataCurveFilter |
KFbxKFCurveFilterKeyReducer | ( | KFbxSdkManager & | pManager, |
char const * | pName | ||
) | [protected] |
Constructor.
virtual K_DEPRECATED const char* GetName | ( | ) | const [virtual] |
virtual K_DEPRECATED KTime& GetStartTime | ( | ) | [virtual] |
Get the start time for the application of the filter.
The part of the animation curves before the start time will remain untouched.
Reimplemented from KFbxKFCurveFilter.
virtual K_DEPRECATED void SetStartTime | ( | KTime & | pTime | ) | [virtual] |
Set the start time for the application of the filter.
The part of the animation curves before the start time will remain untouched.
pTime | The time to be set. |
Reimplemented from KFbxKFCurveFilter.
virtual K_DEPRECATED KTime& GetStopTime | ( | ) | [virtual] |
Get the stop time for the application of the filter.
The part of the animation curves after the stop time will remain untouched.
Reimplemented from KFbxKFCurveFilter.
virtual K_DEPRECATED void SetStopTime | ( | KTime & | pTime | ) | [virtual] |
Set the stop time for the application of the filter.
The part of the animation curves after the stop time will remain untouched.
pTime | The time to be set. |
Reimplemented from KFbxKFCurveFilter.
virtual K_DEPRECATED int GetStartKey | ( | KFbxAnimCurve & | pCurve | ) | const [virtual] |
Get the index of start key on the given curve.
This is the index of the first key after the filter's start time.
pCurve | Curve on which we want to retrieve the start key. |
Reimplemented from KFbxKFCurveFilter.
virtual K_DEPRECATED int GetStopKey | ( | KFbxAnimCurve & | pCurve | ) | const [virtual] |
Get the index of stop key on the given curve.
This is the index of the last key before the filter's stop time.
pCurve | Curve on which we want to retrieve the stop key |
Reimplemented from KFbxKFCurveFilter.
virtual K_DEPRECATED bool NeedApply | ( | KFbxAnimStack * | pAnimStack | ) | [inline, virtual] |
Check if any curve on the animation stack needs an application of the filter.
pAnimStack | Animation stack where to retrieve the animation curves |
true
if at least one animated property needs an
application of the filter.Reimplemented from KFbxKFCurveFilter.
Definition at line 352 of file kfbxkfcurvefilters.h.
{ return ParentClass::NeedApply(pAnimStack); }
virtual K_DEPRECATED bool NeedApply | ( | KFbxAnimCurveNode & | pCurveNode | ) | [virtual] |
Check if the animation curve node needs an application of the filter.
pCurveNode | Curves to test if they needs application of filter |
true
if the animation curve node needs an
application of the filter.Reimplemented from KFbxKFCurveFilter.
virtual K_DEPRECATED bool NeedApply | ( | KFbxAnimCurve ** | pCurve, |
int | pCount | ||
) | [virtual] |
Check if the given animation curve need an application of the filter.
pCurve | Array of curves to test if they need the and application of the filter. |
pCount | Number of curves in array. |
true
if at least one animation curve in the array
needs an application of the filter.Reimplemented from KFbxKFCurveFilter.
virtual K_DEPRECATED bool NeedApply | ( | KFbxAnimCurve & | pCurve | ) | [virtual] |
Check if an animation curve need an application of the filter.
pCurve | Curve to test if it needs application of filter. |
true
if the animation curve needs an application
of the filter.Reimplemented from KFbxKFCurveFilter.
virtual K_DEPRECATED KError* GetError | ( | ) | [virtual] |
virtual K_DEPRECATED int GetLastErrorID | ( | ) | const [virtual] |
virtual K_DEPRECATED const char* GetLastErrorString | ( | ) | const [virtual] |
virtual K_DEPRECATED 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 KFbxKFCurveFilter.
Definition at line 390 of file kfbxkfcurvefilters.h.
{ return ParentClass::Apply(pAnimStack); }
virtual K_DEPRECATED bool Apply | ( | KFbxAnimCurveNode & | pCurveNode | ) | [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 KFbxKFCurveFilter.
virtual K_DEPRECATED 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 KFbxKFCurveFilter.
virtual K_DEPRECATED 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.Reimplemented from KFbxKFCurveFilter.
virtual K_DEPRECATED void Reset | ( | ) | [virtual] |
Reset the filter to its default parameters.
Reimplemented from KFbxKFCurveFilter.
K_DEPRECATED double GetPrecision | ( | ) | const |
Get precision.
K_DEPRECATED void SetPrecision | ( | double | pPrecision | ) |
K_DEPRECATED bool GetKeySync | ( | ) | const |
Return true
key sync is applied at the end.
K_DEPRECATED void SetKeySync | ( | bool | pKeySync | ) |
Set to true
to apply key sync at the end.
pKeySync | Key sync flag. |
virtual void Destruct | ( | bool | pRecursive, |
bool | pDependents | ||
) | [protected, virtual] |
Reimplemented from KFbxObject.
KFCurveFilterKeyReducer*
mDataCurveFilter [protected] |
Definition at line 444 of file kfbxkfcurvefilters.h.