KFbxKFCurveFilterConstantKeyReducer
#include<kfbxkfcurvefilters.h>

Inheritance diagram for KFbxKFCurveFilterConstantKeyReducer:

Inheritance graph
[legend]

List of all members.

Detailed Description

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 line195of filekfbxkfcurvefilters.h.


Public Member Functions

const char * GetName()
 Get the Name of the Filter.
KTimeGetStartTime()
 Get the Start Time.
void SetStartTime(KTime&pTime)
 Set the Start Time.
KTimeGetStopTime()
 Get the Stop Time.
void SetStopTime(KTime&pTime)
 Set the Stoping Time.
int GetStartKey(KFCurve&pCurve)
 Get the Start Key.
int GetStopKey(KFCurve&pCurve)
 Get the Stop Key.
bool NeedApply(KFCurveNode&pCurveNode, bool pRecursive=true)
 Check if theKFCurveNodeneeds an application of the filter.
bool NeedApply(KFCurve**pCurve, int pCount)
 Check if oneKFCurvein an array needs an application of the filter.
bool NeedApply(KFCurve&pCurve)
 Check if aKFCurveneed an application of the filter.
KErrorGetError()
 Retrieve error object.
int GetLastErrorID() const
 Get last error ID.
const char * GetLastErrorString() const
 Get last error name.
bool Apply(KFCurveNode&pCurveNode, bool pRecursive=true)
 Apply filter on aKFCurveNode.
bool Apply(KFCurve**pCurve, int pCount)
 Apply filter on a number ofKFCurve.
bool Apply(KFCurve&pCurve)
 Apply filter on aKFCurve.
void Reset()
 Reset default parameters.
double GetDerivativeTolerance()
 Get the derivative tolerance.
void SetDerivativeTolerance(double pValue)
 Set the derivative tolerance.
double GetValueTolerance()
 Get the tolerance value.
void SetValueTolerance(double pValue)
 Set the tolerance value.
bool GetKeepFirstAndLastKeys()
 Get the state of the KeepFirstAndLastKeys flag.
void SetKeepFirstAndLastKeys(bool pKeepFirstAndLastKeys)
 Set the state of the KeepFirstAndLastKeys flag.
bool GetKeepOneKey()
 Get the state of the KeepOneKey flag.
void SetKeepOneKey(bool pKeepOneKey)
 Set the state of the KeepOneKey flag.

Member Function Documentation

const char* GetName( ) [virtual]

Get the Name of the Filter.

Returns:
Pointer to name

Reimplemented fromKFbxKFCurveFilters.

KTime&GetStartTime( ) [virtual]

Get the Start Time.

Returns:
The time expressed asKTime.

Reimplemented fromKFbxKFCurveFilters.

void SetStartTime(KTimepTime ) [virtual]

Set the Start Time.

Parameters:
pTime The time to be set

Reimplemented fromKFbxKFCurveFilters.

KTime&GetStopTime( ) [virtual]

Get the Stop Time.

Returns:
The time expressed asKTime.

Reimplemented fromKFbxKFCurveFilters.

void SetStopTime(KTimepTime ) [virtual]

Set the Stoping Time.

Parameters:
pTime The time to be set

Reimplemented fromKFbxKFCurveFilters.

int GetStartKey(KFCurvepCurve ) [virtual]

Get the Start Key.

Parameters:
pCurve Curve on which we want to retrieve the start key
Returns:
The position of the start key

Reimplemented fromKFbxKFCurveFilters.

int GetStopKey(KFCurvepCurve ) [virtual]

Get the Stop Key.

Parameters:
pCurve Curve on which we want to retrieve the stop key
Returns:
The position of the stop key

Reimplemented fromKFbxKFCurveFilters.

bool NeedApply(KFCurveNodepCurveNode,
bool pRecursive=true 
)[virtual]

Check if theKFCurveNodeneeds an application of the filter.

Parameters:
pCurveNode Curve to test if it needs application of filter
pRecursive Check recursively through the Curve
Returns:
trueif theKFCurveNodeneed an application of the filter.

Reimplemented fromKFbxKFCurveFilters.

bool NeedApply(KFCurve** pCurve,
int pCount 
)[virtual]

Check if oneKFCurvein an array needs an application of the filter.

Parameters:
pCurve Array of Curves to test if it needs application of filter
pCount Number of Curves in array to test
Returns:
trueif oneKFCurvein an array need an application of the filter.

Reimplemented fromKFbxKFCurveFilters.

bool NeedApply(KFCurvepCurve ) [virtual]

Check if aKFCurveneed an application of the filter.

Parameters:
pCurve Curve to test if it needs application of filter
Returns:
trueif theKFCurveneed an application of the filter.

Reimplemented fromKFbxKFCurveFilters.

KError&GetError( ) [virtual]

Retrieve error object.

Returns:
Error object.

Reimplemented fromKFbxKFCurveFilters.

int GetLastErrorID( ) const

Get last error ID.

Returns:
Last error ID.

const char* GetLastErrorString( ) const

Get last error name.

Returns:
Last error name.

bool Apply(KFCurveNodepCurveNode,
bool pRecursive=true 
)[virtual]

Apply filter on aKFCurveNode.

Parameters:
pCurveNode Curve to apply the filter
pRecursive Apply recursively through the Curve
Returns:
trueif successful,falseotherwise.

Reimplemented fromKFbxKFCurveFilters.

bool Apply(KFCurve** pCurve,
int pCount 
)[virtual]

Apply filter on a number ofKFCurve.

Parameters:
pCurve Array of Curve to apply the filter
pCount Number of Curves in array to apply the filter
Returns:
trueif successful,falseotherwise.

Reimplemented fromKFbxKFCurveFilters.

bool Apply(KFCurvepCurve ) [virtual]

Apply filter on aKFCurve.

Parameters:
pCurve Curve to apply the filter
Returns:
trueif successful,falseotherwise.

Reimplemented fromKFbxKFCurveFilters.

void Reset( ) [virtual]

Reset default parameters.

Reimplemented fromKFbxKFCurveFilters.

double GetDerivativeTolerance( ) 

Get the derivative tolerance.

Returns:
The value of the derivative tolerance.

void SetDerivativeTolerance(double pValue ) 

Set the derivative tolerance.

Parameters:
pValue Value derivative tolerance.

double GetValueTolerance( ) 

Get the tolerance value.

Returns:
The tolerance value.

void SetValueTolerance(double pValue ) 

Set the tolerance value.

Parameters:
pValue Tolerance value.

bool GetKeepFirstAndLastKeys( ) 

Get the state of the KeepFirstAndLastKeys flag.

Returns:
trueif the filter keeps the first and last keys.

void SetKeepFirstAndLastKeys(bool pKeepFirstAndLastKeys ) 

Set the state of the KeepFirstAndLastKeys flag.

Parameters:
pKeepFirstAndLastKeys Set totrueif you want the filter to keep the first and last keys.

bool GetKeepOneKey( ) 

Get the state of the KeepOneKey flag.

Returns:
trueif the filter keeps one keys.

void SetKeepOneKey(bool pKeepOneKey ) 

Set the state of the KeepOneKey flag.

Parameters:
pKeepOneKey Set totrueif you want the filter to keep one key.