Matrix conversion filter.
Definition at line 1094 of file kfbxanimcurvefilters.h.
#include <kfbxanimcurvefilters.h>
Public Types |
|
enum |
EMatrixID { ePreGlobal, ePreTranslate, ePostTranslate, ePreRotate, ePostRotate, ePreScale, ePostScale, ePostGlobal, eScaleOffset, eInactivePre, eInactivePost, eRotationPivot, eScalingPivot, eMatrixCount } |
Matrix ID
|
|
Public Member Functions |
|
KFbxAnimCurveFilterMatrixConverter () | |
Constructor. |
|
virtual | ~KFbxAnimCurveFilterMatrixConverter () |
Destructor. |
|
virtual const char * | GetName () const |
Get the name of the filter. |
|
virtual bool | NeedApply (KFbxAnimStack *pAnimStack) |
This filter expects to works with
interdependent curves. |
|
virtual bool | NeedApply (KFbxObject *pObj, KFbxAnimStack *pAnimStack) |
This filter expects to works with 3
interdependent curves. |
|
virtual bool | NeedApply (KFbxAnimCurveNode *pCurveNode[3]) |
Check if the animation curve nodes need an
application of the filter. |
|
virtual bool | NeedApply (KFbxAnimCurve &pCurve) |
This filter expects to works with
interdependent curves. |
|
virtual bool | Apply (KFbxAnimStack *pAnimStack) |
This filter expects to works with
interdependent curves. |
|
virtual bool | Apply (KFbxObject *pObj, KFbxAnimStack *pAnimStack) |
This filter expects to works with 3
interdependent curves. |
|
virtual bool | Apply (KFbxAnimCurveNode *pCurveNode[3]) |
Apply filter on all the curves of the
animation curve nodes. |
|
virtual bool | Apply (KFbxAnimCurve **pCurve, int pCount) |
Apply filter on the given animation curve.
|
|
bool | Apply (KFbxAnimCurve **pCurve, double *pVals) |
Apply filter on the given animation curve.
|
|
virtual bool | Apply (KFbxAnimCurve &pCurve) |
This filter expects to works with
interdependent curves. |
|
virtual void | Reset () |
Reset the filter to its default parameters.
|
|
void | GetSourceMatrix (EMatrixID pIndex, KFbxXMatrix &pMatrix) const |
Get the Translation Rotation Scaling source
matrix. |
|
void | SetSourceMatrix (EMatrixID pIndex, KFbxXMatrix &pMatrix) |
Set the Translation Rotation Scaling source
matrix. |
|
void | SetSourceMatrix (EMatrixID pIndex, KgeAMatrix &pMatrix) |
void | GetDestMatrix (EMatrixID pIndex, KFbxXMatrix &pMatrix) const |
Get the Translation Rotation Scaling
destination matrix. |
|
void | SetDestMatrix (EMatrixID pIndex, KFbxXMatrix &pMatrix) |
Set the Translation Rotation Scaling
destination matrix. |
|
void | SetDestMatrix (EMatrixID pIndex, KgeAMatrix &pMatrix) |
KTime | GetResamplingPeriod () const |
Get the resampling period. |
|
void | SetResamplingPeriod (KTime &pResamplingPeriod) |
Set the resampling period. |
|
bool | GetGenerateLastKeyExactlyAtEndTime () const |
Check if the last key is exactly at the end
time. |
|
void | SetGenerateLastKeyExactlyAtEndTime (bool pFlag) |
Set the last key to be is exactly at end
time or not. |
|
bool | GetResamplingOnFrameRateMultiple () const |
Check if resampling is on frame rate
multiple. |
|
void | SetResamplingOnFrameRateMultiple (bool pFlag) |
Set the resample on a frame rate multiple.
|
|
bool | GetApplyUnroll () const |
Get the current state of the ApplyUnroll
flag. |
|
void | SetApplyUnroll (bool pFlag) |
Set the state of the ApplyUnroll flag.
|
|
bool | GetApplyConstantKeyReducer () const |
Get if constant key reducer is used.
|
|
void | SetApplyConstantKeyReducer (bool pFlag) |
Set if constant key reducer is used.
|
|
bool | GetResampleTranslation () const |
Get if the resample translation is used.
|
|
void | SetResampleTranslation (bool pFlag) |
Set the resample translation data. |
|
void | SetSrcRotateOrder (int pOrder) |
Set the rotation order of the source.
|
|
void | SetDestRotateOrder (int pOrder) |
Set the rotation order of the destination.
|
|
void | SetForceApply (bool pVal) |
Set to force apply even if source and
destination matrices are equivalent. |
|
bool | GetForceApply () const |
Get if the force apply is used. |
|
Exposed parent class methods |
|
virtual bool | NeedApply (KFbxAnimCurve **pCurve, int pCount) |
Check if the given animation curve need an
application of the filter. |
enum EMatrixID |
Matrix ID
ePreGlobal | |
ePreTranslate | |
ePostTranslate | |
ePreRotate | |
ePostRotate | |
ePreScale | |
ePostScale | |
ePostGlobal | |
eScaleOffset | |
eInactivePre | |
eInactivePost | |
eRotationPivot | |
eScalingPivot | |
eMatrixCount |
Definition at line 1218 of file kfbxanimcurvefilters.h.
Constructor.
virtual ~KFbxAnimCurveFilterMatrixConverter | ( | ) | [virtual] |
Destructor.
virtual const char* GetName | ( | ) | const [virtual] |
virtual bool NeedApply | ( | KFbxAnimCurve ** | pCurve, |
int | pCount | ||
) | [inline, 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 KFbxAnimCurveFilter.
Definition at line 1112 of file kfbxanimcurvefilters.h.
{ return KFbxAnimCurveFilter::NeedApply(pCurve, pCount); }
virtual bool NeedApply | ( | KFbxAnimStack * | pAnimStack | ) | [inline, virtual] |
This filter expects to works with interdependent curves.
Passing the animation stack makes no sense since this object would not know which curves to handle.
pAnimStack | Animation stack. |
false
Reimplemented from KFbxAnimCurveFilter.
Definition at line 1120 of file kfbxanimcurvefilters.h.
{ return false; }
virtual bool NeedApply | ( | KFbxObject * | pObj, |
KFbxAnimStack * | pAnimStack | ||
) | [inline, virtual] |
This filter expects to works with 3 interdependent curves.
Collecting all the animation curves from the properties defined in pObj could not guarantee that we are manipulating 3 interdependent curves.
pObj | Object containing the properties to test. |
pAnimStack | Animation stack where to retrieve the animation curves |
false
Reimplemented from KFbxAnimCurveFilter.
Definition at line 1128 of file kfbxanimcurvefilters.h.
{ return false; }
virtual bool NeedApply | ( | KFbxAnimCurveNode * | pCurveNode[3] | ) | [virtual] |
Check if the animation curve nodes need an application of the filter.
pCurveNode | Curves to test if they needs application of filter |
true
if the animation curve nodes needs an
application of the filter and false
if they don't or
an incompatible configuration is detected.virtual bool NeedApply | ( | KFbxAnimCurve & | pCurve | ) | [inline, virtual] |
This filter expects to works with interdependent curves.
Receiving one single curve is useless.
false
Reimplemented from KFbxAnimCurveFilter.
Definition at line 1143 of file kfbxanimcurvefilters.h.
{ return false; }
virtual bool Apply | ( | KFbxAnimStack * | pAnimStack | ) | [inline, virtual] |
This filter expects to works with interdependent curves.
Passing the animation stack makes no sense since this object would not know which curves to handle.
pAnimStack | Animation stack |
false
.Reimplemented from KFbxAnimCurveFilter.
Definition at line 1150 of file kfbxanimcurvefilters.h.
{ return false; }
virtual bool Apply | ( | KFbxObject * | pObj, |
KFbxAnimStack * | pAnimStack | ||
) | [inline, virtual] |
This filter expects to works with 3 interdependent curves.
Collecting all the animation curves from the properties defined in pObj could not guarantee that we are manipulating 3 interdependent curves.
pObj | Object containing the properties to test. |
pAnimStack | Animation stack where to retrieve the animation curves |
false
Reimplemented from KFbxAnimCurveFilter.
Definition at line 1158 of file kfbxanimcurvefilters.h.
{ return false; }
virtual bool Apply | ( | KFbxAnimCurveNode * | pCurveNode[3] | ) | [virtual] |
Apply filter on all the curves of the animation curve nodes.
pCurveNode | Curve nodes to which the filter is applied. |
true
if the curve filtering operation was
successful, false
otherwise.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.
bool Apply | ( | KFbxAnimCurve ** | pCurve, |
double * | pVals | ||
) |
Apply filter on the given animation curve.
pCurve | Array of curve to which the filter is applied. |
pVals | Array of channels values (same size as pCurve). |
true
if the curve filtering operation was
successful, false
otherwise.virtual bool Apply | ( | KFbxAnimCurve & | pCurve | ) | [inline, virtual] |
This filter expects to works with interdependent curves.
Receiving one single curve is useless.
false
Implements KFbxAnimCurveFilter.
Definition at line 1198 of file kfbxanimcurvefilters.h.
{ return false; };
virtual void Reset | ( | ) | [virtual] |
Reset the filter to its default parameters.
Reimplemented from KFbxAnimCurveFilter.
void GetSourceMatrix | ( | EMatrixID | pIndex, |
KFbxXMatrix & | pMatrix | ||
) | const |
Get the Translation Rotation Scaling source matrix.
pIndex | The matrix ID. |
pMatrix | The matrix used to receive the source matrix. |
void SetSourceMatrix | ( | EMatrixID | pIndex, |
KFbxXMatrix & | pMatrix | ||
) |
Set the Translation Rotation Scaling source matrix.
pIndex | The matrix ID. |
pMatrix | The matrix used to set the source matrix. |
void SetSourceMatrix | ( | EMatrixID | pIndex, |
KgeAMatrix & | pMatrix | ||
) |
void GetDestMatrix | ( | EMatrixID | pIndex, |
KFbxXMatrix & | pMatrix | ||
) | const |
Get the Translation Rotation Scaling destination matrix.
pIndex | The matrix ID. |
pMatrix | The matrix used to receive the destination matrix. |
void SetDestMatrix | ( | EMatrixID | pIndex, |
KFbxXMatrix & | pMatrix | ||
) |
Set the Translation Rotation Scaling destination matrix.
pIndex | The matrix ID. |
pMatrix | The matrix used to set the destination matrix. |
void SetDestMatrix | ( | EMatrixID | pIndex, |
KgeAMatrix & | pMatrix | ||
) |
KTime GetResamplingPeriod | ( | ) | const |
void SetResamplingPeriod | ( | KTime & | pResamplingPeriod | ) |
Set the resampling period.
pResamplingPeriod | The resampling period to be set. |
bool GetGenerateLastKeyExactlyAtEndTime | ( | ) | const |
Check if the last key is exactly at the end time.
true
if last key is set exactly at end time.void SetGenerateLastKeyExactlyAtEndTime | ( | bool | pFlag | ) |
Set the last key to be is exactly at end time or not.
pFlag | value to set if last key is set exactly at end time. |
bool GetResamplingOnFrameRateMultiple | ( | ) | const |
Check if resampling is on frame rate multiple.
true
if resampling is on a frame rate
multiple.void SetResamplingOnFrameRateMultiple | ( | bool | pFlag | ) |
Set the resample on a frame rate multiple.
pFlag | The value to be set |
bool GetApplyUnroll | ( | ) | const |
Get the current state of the ApplyUnroll flag.
true
if the internal unroll filter is
applied.void SetApplyUnroll | ( | bool | pFlag | ) |
Set the state of the ApplyUnroll flag.
pFlag | New value of the flag. If set to true , an unroll
is applied to the rotation curves. |
bool GetApplyConstantKeyReducer | ( | ) | const |
Get if constant key reducer is used.
true
if constant key reducer is applied.void SetApplyConstantKeyReducer | ( | bool | pFlag | ) |
bool GetResampleTranslation | ( | ) | const |
Get if the resample translation is used.
true
if translation data is resampled upon
conversion.void SetResampleTranslation | ( | bool | pFlag | ) |
Set the resample translation data.
pFlag | Value to be set. |
void SetSrcRotateOrder | ( | int | pOrder | ) |
Set the rotation order of the source.
pOrder | The order to be set. |
void SetDestRotateOrder | ( | int | pOrder | ) |
Set the rotation order of the destination.
pOrder | The order to be set. |
void SetForceApply | ( | bool | pVal | ) |
Set to force apply even if source and destination matrices are equivalent.
pVal | If the forces apply is to be used |
bool GetForceApply | ( | ) | const |