FBX C++ API Reference
|
#include <fbxanimevalstate.h>
This class hold results from animation evaluations.
To clear an evaluation state for re-use, it is possible to invalidate or to reset it. For the same scene with the same objects, invalidating an evaluation state is the quickest way to clear an evaluation state object for re-use because it only zeroes all the entries. A reset will delete all the entries. Unless the scene changes, for performance purposes it is recommended to invalidate evaluation states instead of resetting them.
Definition at line 41 of file fbxanimevalstate.h.
Public Member Functions | |
FbxTime | GetTime () const |
Get the time associated with this evaluation state. More... | |
void | Reset () |
Reset an evaluation state by deleting the cache it contains. More... | |
void | Begin (const FbxTime &pTime) |
Start a new evaluation state frame by zeroing the cache it contains, and changing its associated time. More... | |
void | Flush (FbxNode *pNode) |
Invalidate a node evaluation state to force update on next evaluation. More... | |
void | Flush (FbxProperty &pProperty) |
Invalidate a property evaluation state to force update on next evaluation. More... | |
FbxNodeEvalState * | GetNodeEvalState (FbxNode *pNode) |
Get node transform evaluation result from the evaluation state. More... | |
FbxPropertyEvalState * | GetPropertyEvalState (FbxProperty &pProperty) |
Get a property evaluation result from the evaluation state. More... | |
FbxAnimCurveNode * | GetPropertyCurveNode (FbxProperty &pProperty, FbxAnimLayer *pAnimLayer) |
Get a property curve node from the evaluation state for quick access. More... | |
FbxTime GetTime | ( | ) | const |
Get the time associated with this evaluation state.
void Reset | ( | ) |
Reset an evaluation state by deleting the cache it contains.
This will remove all entries in the cache.
void Begin | ( | const FbxTime & | pTime | ) |
Start a new evaluation state frame by zeroing the cache it contains, and changing its associated time.
All node and property entries will remain in the list, but their evaluation state will not be up-to-date.
pTime | The time at which the evaluation state should be set after the invalidation. |
void Flush | ( | FbxNode * | pNode | ) |
Invalidate a node evaluation state to force update on next evaluation.
pNode | The node that needs to be updated on next evaluation. |
void Flush | ( | FbxProperty & | pProperty | ) |
Invalidate a property evaluation state to force update on next evaluation.
pProperty | The property that needs to be updated on next evaluation. |
FbxNodeEvalState* GetNodeEvalState | ( | FbxNode * | pNode | ) |
Get node transform evaluation result from the evaluation state.
pNode | The node for which the value was stored. |
FbxPropertyEvalState* GetPropertyEvalState | ( | FbxProperty & | pProperty | ) |
Get a property evaluation result from the evaluation state.
pProperty | The property for which the value was stored. |
FbxAnimCurveNode* GetPropertyCurveNode | ( | FbxProperty & | pProperty, |
FbxAnimLayer * | pAnimLayer | ||
) |
Get a property curve node from the evaluation state for quick access.
pProperty | The property to search for its animation curve node. |
pAnimLayer | The animation layer on which the animation curve node must be searched. |