#include <fbxanimcurvefilters.h>
Matrix conversion filter.
Definition at line 1153 of file fbxanimcurvefilters.h.
Public Types |
|
| enum |
EMatrixIndex { ePreGlobal, ePreTranslate, ePostTranslate, ePreRotate, ePostRotate, ePreScale, ePostScale, ePostGlobal, eScaleOffset, eInactivePre, eInactivePost, eRotationPivot, eScalingPivot, eMatrixIndexCount } |
| Matrix index type.
More... |
|
Public Member Functions |
|
| FbxAnimCurveFilterMatrixConverter () | |
| Constructor. |
|
| virtual | ~FbxAnimCurveFilterMatrixConverter () |
| Destructor. |
|
| virtual const char * | GetName () const |
| Get the name of the filter. |
|
| virtual bool | NeedApply (FbxAnimStack *, FbxStatus *pStatus=NULL) |
| This filter expects to work with
interdependent curves. |
|
| virtual bool | NeedApply (FbxObject *, FbxAnimStack *, FbxStatus *pStatus=NULL) |
| This filter expects to work with 9
interdependent curves. |
|
| virtual bool | NeedApply (FbxAnimCurveNode *pCurveNode[3], FbxStatus *pStatus=NULL) |
| Check if the animation curve nodes need an
application of the filter. |
|
| virtual bool | NeedApply (FbxAnimCurve &, FbxStatus *pStatus=NULL) |
| This filter expects to work with
interdependent curves. |
|
| virtual bool | Apply (FbxAnimStack *, FbxStatus *pStatus=NULL) |
| This filter expects to work with
interdependent curves. |
|
| virtual bool | Apply (FbxObject *, FbxAnimStack *, FbxStatus *pStatus=NULL) |
| This filter expects to work with 9
interdependent curves. |
|
| virtual bool | Apply (FbxAnimCurveNode *pCurveNode[3], FbxStatus *pStatus=NULL) |
| Apply filter on all the curves of the
animation curve nodes. |
|
| virtual bool | Apply (FbxAnimCurve **pCurve, int pCount, FbxStatus *pStatus=NULL) |
| Apply filter on the given animation curves.
|
|
| bool | Apply (FbxAnimCurve **pCurve, double *pVals, FbxStatus *pStatus=NULL) |
| Apply filter on the given animation curves.
|
|
| virtual bool | Apply (FbxAnimCurve &, FbxStatus *pStatus=NULL) |
| This filter expects to work with
interdependent curves. |
|
| virtual void | Reset () |
| Reset the filter to its default parameters.
|
|
| void | GetSourceMatrix (EMatrixIndex pIndex, FbxAMatrix &pMatrix) const |
| Get the Translation Rotation Scaling source
matrix. |
|
| void | SetSourceMatrix (EMatrixIndex pIndex, FbxAMatrix &pMatrix) |
| Set the Translation Rotation Scaling source
matrix. |
|
| void | GetDestMatrix (EMatrixIndex pIndex, FbxAMatrix &pMatrix) const |
| Get the Translation Rotation Scaling
destination matrix. |
|
| void | SetDestMatrix (EMatrixIndex pIndex, FbxAMatrix &pMatrix) |
| Set the Translation Rotation Scaling
destination matrix. |
|
| FbxTime | GetResamplingPeriod () const |
| Get the re-sampling period. |
|
| void | SetResamplingPeriod (FbxTime &pResamplingPeriod) |
| Set the re-sampling period. |
|
| bool | GetGenerateLastKeyExactlyAtEndTime () const |
| Get the current state of the flag which
determines if the last key should be generated exactly at the end
time or not. |
|
| void | SetGenerateLastKeyExactlyAtEndTime (bool pFlag) |
| Set the flag to determine if the last key
will be generated exactly at the end time or not. |
|
| bool | GetResamplingOnFrameRateMultiple () const |
| Check if re-sampling is on frame rate
multiple. |
|
| void | SetResamplingOnFrameRateMultiple (bool pFlag) |
| Set the re-sample 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 the current state of the flag that
determines if constant key reducer is used or not. |
|
| void | SetApplyConstantKeyReducer (bool pFlag) |
| Set the state of the flag that determines if
constant key reducer is used or not. |
|
| bool | GetResampleTranslation () const |
| Get the current state of the flag that
determines if the translation data should be re-sampled or not.
|
|
| void | SetResampleTranslation (bool pFlag) |
| Set the state of the flag that determines if
the translation data should be re-sampled or not. |
|
| void | SetSrcRotateOrder (int pOrder) |
| Set the rotation order of the source matrix.
|
|
| void | SetDestRotateOrder (int pOrder) |
| Set the rotation order of the destination
matrix. |
|
| void | SetForceApply (bool pVal) |
| Set the state of the flag to force usage of
the filter even if source and destination matrices are equivalent.
|
|
| bool | GetForceApply () const |
| Get the current state of the flag to force
usage of the filter even if source and destination matrices are
equivalent. |
|
Exposed parent class methods. |
|
| virtual bool | NeedApply (FbxAnimCurve **pCurve, int pCount, FbxStatus *pStatus=NULL) |
| Check if the given animation curve need an
application of the filter. |
|
| enum EMatrixIndex |
Matrix index type.
| ePreGlobal | |
| ePreTranslate | |
| ePostTranslate | |
| ePreRotate | |
| ePostRotate | |
| ePreScale | |
| ePostScale | |
| ePostGlobal | |
| eScaleOffset | |
| eInactivePre | |
| eInactivePost | |
| eRotationPivot | |
| eScalingPivot | |
| eMatrixIndexCount |
Definition at line 1285 of file fbxanimcurvefilters.h.
Constructor.
| virtual ~FbxAnimCurveFilterMatrixConverter | ( | ) | [virtual] |
Destructor.
| virtual const char* GetName | ( | ) | const [virtual] |
| virtual bool NeedApply | ( | FbxAnimCurve ** | pCurve, |
| int | pCount, | ||
| FbxStatus * | pStatus =
NULL |
||
| ) | [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. |
| pStatus | The FbxStatus object to hold error codes. |
true if at least one animation curve in the array
needs an application of the filter.Reimplemented from FbxAnimCurveFilter.
Definition at line 1171 of file fbxanimcurvefilters.h.
{ return FbxAnimCurveFilter::NeedApply(pCurve, pCount,pStatus); }
| virtual bool NeedApply | ( | FbxAnimStack * | , |
| FbxStatus * | pStatus =
NULL |
||
| ) | [inline, virtual] |
This filter expects to work with interdependent curves.
Passing the animation stack makes no sense since this object would not know which curves to handle.
| pAnimStack | Animation stack. |
| pStatus | The FbxStatus object to hold error codes. |
falseReimplemented from FbxAnimCurveFilter.
Definition at line 1180 of file fbxanimcurvefilters.h.
{ FBX_UNUSED(pStatus); return false; }
| virtual bool NeedApply | ( | FbxObject * | , |
| FbxAnimStack * | , | ||
| FbxStatus * | pStatus =
NULL |
||
| ) | [inline, virtual] |
This filter expects to work with 9 interdependent curves.
Collecting all the animation curves from the properties defined in pObj could not guarantee that we are manipulating 9 interdependent curves.
| pObj | Object containing the properties to test. |
| pAnimStack | Animation stack where to retrieve the animation curves |
| pStatus | The FbxStatus object to hold error codes. |
falseReimplemented from FbxAnimCurveFilter.
Definition at line 1189 of file fbxanimcurvefilters.h.
{ FBX_UNUSED(pStatus); return false; }
| virtual bool NeedApply | ( | FbxAnimCurveNode * | pCurveNode[3], |
| FbxStatus * | pStatus =
NULL |
||
| ) | [virtual] |
Check if the animation curve nodes need an application of the filter.
| pCurveNode | Curves to test if they need an application of the filter. |
| pStatus | The FbxStatus object to hold error codes. |
true if the animation curve nodes need an
application of the filter and false if they don't or
an incompatible configuration is detected.| virtual bool NeedApply | ( | FbxAnimCurve & | , |
| FbxStatus * | pStatus =
NULL |
||
| ) | [inline, virtual] |
This filter expects to work with interdependent curves.
Receiving one single curve is useless.
false.Reimplemented from FbxAnimCurveFilter.
Definition at line 1205 of file fbxanimcurvefilters.h.
{ FBX_UNUSED(pStatus); return false; }
| virtual bool Apply | ( | FbxAnimStack * | , |
| FbxStatus * | pStatus =
NULL |
||
| ) | [inline, virtual] |
This filter expects to work with interdependent curves.
Passing the animation stack makes no sense since this object would not know which curves to handle.
| pAnimStack | Animation stack where to retrieve the animation curves. |
| pStatus | The FbxStatus object to hold error codes. |
false.Reimplemented from FbxAnimCurveFilter.
Definition at line 1213 of file fbxanimcurvefilters.h.
{ FBX_UNUSED(pStatus); return false; }
| virtual bool Apply | ( | FbxObject * | , |
| FbxAnimStack * | , | ||
| FbxStatus * | pStatus =
NULL |
||
| ) | [inline, virtual] |
This filter expects to work with 9 interdependent curves.
Collecting all the animation curves from the properties defined in pObj could not guarantee that we are manipulating 9 interdependent curves.
| pObj | Object containing the properties to test. |
| pAnimStack | Animation stack where to retrieve the animation curves. |
| pStatus | The FbxStatus object to hold error codes. |
false.Reimplemented from FbxAnimCurveFilter.
Definition at line 1222 of file fbxanimcurvefilters.h.
{ FBX_UNUSED(pStatus); return false; }
| virtual bool Apply | ( | FbxAnimCurveNode * | pCurveNode[3], |
| FbxStatus * | pStatus =
NULL |
||
| ) | [virtual] |
Apply filter on all the curves of the animation curve nodes.
| pCurveNode | Curve nodes to which the filter is applied. |
| pStatus | The FbxStatus object to hold error codes. |
true if the curve filtering operation was
successful, false otherwise.| virtual bool Apply | ( | FbxAnimCurve ** | pCurve, |
| int | pCount, | ||
| FbxStatus * | pStatus =
NULL |
||
| ) | [virtual] |
Apply filter on the given animation curves.
| pCurve | Array of curve to which the filter is applied. |
| pCount | Number of curves in array. |
| pStatus | The FbxStatus object to hold error codes. |
true if the curve filtering operation was
successful, false otherwise.Reimplemented from FbxAnimCurveFilter.
| bool Apply | ( | FbxAnimCurve ** | pCurve, |
| double * | pVals, | ||
| FbxStatus * | pStatus =
NULL |
||
| ) |
Apply filter on the given animation curves.
| pCurve | Array of curve to which the filter is applied. |
| pVals | Array of channel values (same size as pCurve). |
| pStatus | The FbxStatus object to hold error codes. |
true if the curve filtering operation was
successful, false otherwise.| virtual bool Apply | ( | FbxAnimCurve & | , |
| FbxStatus * | pStatus =
NULL |
||
| ) | [inline, virtual] |
This filter expects to work with interdependent curves.
Receiving one single curve is useless.
false.Implements FbxAnimCurveFilter.
Definition at line 1265 of file fbxanimcurvefilters.h.
{ FBX_UNUSED(pStatus); return false; };
| virtual void Reset | ( | ) | [virtual] |
Reset the filter to its default parameters.
Reimplemented from FbxAnimCurveFilter.
| void GetSourceMatrix | ( | EMatrixIndex | pIndex, |
| FbxAMatrix & | pMatrix | ||
| ) | const |
Get the Translation Rotation Scaling source matrix.
| pIndex | The matrix ID. |
| pMatrix | The matrix used to receive the source matrix. |
| void SetSourceMatrix | ( | EMatrixIndex | pIndex, |
| FbxAMatrix & | pMatrix | ||
| ) |
Set the Translation Rotation Scaling source matrix.
| pIndex | The matrix ID. |
| pMatrix | The matrix used to set the source matrix. |
| void GetDestMatrix | ( | EMatrixIndex | pIndex, |
| FbxAMatrix & | pMatrix | ||
| ) | const |
Get the Translation Rotation Scaling destination matrix.
| pIndex | The matrix ID. |
| pMatrix | The matrix used to receive the destination matrix. |
| void SetDestMatrix | ( | EMatrixIndex | pIndex, |
| FbxAMatrix & | pMatrix | ||
| ) |
Set the Translation Rotation Scaling destination matrix.
| pIndex | The matrix ID. |
| pMatrix | The matrix used to set the destination matrix. |
| FbxTime GetResamplingPeriod | ( | ) | const |
| void SetResamplingPeriod | ( | FbxTime & | pResamplingPeriod | ) |
Set the re-sampling period.
| pResamplingPeriod | The re-sampling period to be set. |
| bool GetGenerateLastKeyExactlyAtEndTime | ( | ) | const |
Get the current state of the flag which determines if the last key should be generated exactly at the end time or not.
This filter handles 9 animation curves, each of them has a stop time, the latest one is defined as the end time.
true if last key is set exactly at end time,
false otherwise.| void SetGenerateLastKeyExactlyAtEndTime | ( | bool | pFlag | ) |
Set the flag to determine if the last key will be generated exactly at the end time or not.
This filter handles 9 animation curves, each of them has a stop time, the latest one is defined as the end time.
| pFlag | Set to true to generate the last key exactly at
the end time, false otherwise. |
| bool GetResamplingOnFrameRateMultiple | ( | ) | const |
Check if re-sampling is on frame rate multiple.
true if re-sampling is on a frame rate
multiple.| void SetResamplingOnFrameRateMultiple | ( | bool | pFlag | ) |
Set the re-sample 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,
false otherwise.| void SetApplyUnroll | ( | bool | pFlag | ) |
Set the state of the ApplyUnroll flag.
| pFlag | Set to true to apply an unroll filter to the
rotation curves internally, \ set to false
otherwise. |
| bool GetApplyConstantKeyReducer | ( | ) | const |
Get the current state of the flag that determines if constant key reducer is used or not.
true if constant key reducer is applied,
false otherwise.| void SetApplyConstantKeyReducer | ( | bool | pFlag | ) |
Set the state of the flag that determines if constant key reducer is used or not.
| pFlag | Set to true to apply the constant key reducer, \
Set to false otherwise. |
| bool GetResampleTranslation | ( | ) | const |
Get the current state of the flag that determines if the translation data should be re-sampled or not.
true if translation data is re-sampled upon
conversion, false otherwise.false, translation data must be
calculated after the conversion process, overriding the re-sampling
process.| void SetResampleTranslation | ( | bool | pFlag | ) |
Set the state of the flag that determines if the translation data should be re-sampled or not.
| pFlag | Set to true to re-sample the translation data, set
to false otherwise. |
false, translation data
must be calculated after the conversion process, overriding the
re-sampling process.| void SetSrcRotateOrder | ( | int | pOrder | ) |
Set the rotation order of the source matrix.
| pOrder | The rotation order to be set. |
| void SetDestRotateOrder | ( | int | pOrder | ) |
Set the rotation order of the destination matrix.
| pOrder | The rotation order to be set. |
| void SetForceApply | ( | bool | pVal | ) |
Set the state of the flag to force usage of the filter even if source and destination matrices are equivalent.
| pVal | Set to true to force usage of the filter, set to
false otherwise. |
| bool GetForceApply | ( | ) | const |
Get the current state of the flag to force usage of the filter even if source and destination matrices are equivalent.
true to force usage of the filter,
false otherwise.