#include <kfbxtakenodecontainer.h>
Inherits KFbxObject.
Inherited by KFbxConstraint, KFbxControlSetPlug, KFbxDeformer, KFbxGenericNode, KFbxNode, KFbxSubDeformer, KFbxSurfaceMaterial, KFbxTexture, and KFbxVideo.
Inheritance diagram for KFbxTakeNodeContainer:
A take node contains the animation keys of the container for a given take.
A default take node is always created. This take is used to store default animation values. This take is at index 0, and should not contain animation keys or be removed in any situation.
Be careful when processing take animation. If the current take does not exist for a container, KFbxTakeNodeContainer::GetCurrentTakeNode() and KFbxTakeNodeContainer::GetDefaultTakeNode() will return the same KFbxTakeNode object. If both the default and the current take node are processed without appropriate testing, the same data will be processed twice.
Definition at line 84 of file kfbxtakenodecontainer.h.
Take Node Management | |
KFbxTakeNode * | GetDefaultTakeNode () |
Get default take node. | |
KFbxTakeNode const * | GetDefaultTakeNode () const |
Get default take node. | |
KFbxTakeNode * | CreateTakeNode (char *pName) |
Create a take node. | |
bool | RemoveTakeNode (int pIndex) |
Remove take node by index. | |
bool | RemoveTakeNode (char *pName) |
Remove take node by name. | |
int | GetTakeNodeCount () const |
Get take node count. | |
KFbxTakeNode * | GetTakeNode (int pIndex) const |
Get take node by index. | |
char * | GetTakeNodeName (int pIndex) |
Get name of take node at a given index. | |
virtual bool | SetCurrentTakeNode (int pIndex) |
Set current take node by index. | |
virtual bool | SetCurrentTakeNode (char *pName) |
Set current take node by name. | |
KFbxTakeNode * | GetCurrentTakeNode () |
GetCurrentTakeNode. | |
char * | GetCurrentTakeNodeName () |
Get the name of the current take node. | |
int | GetCurrentTakeNodeIndex () |
Get index of the current take node. | |
virtual bool | GetAnimationInterval (KTime &pStart, KTime &pStop) |
Find the start and end time of the current take. |
KFbxTakeNode* GetDefaultTakeNode | ( | ) |
Get default take node.
KFbxTakeNode const* GetDefaultTakeNode | ( | ) | const |
Get default take node.
KFbxTakeNode* CreateTakeNode | ( | char * | pName | ) |
Create a take node.
pName | New take node name. |
NULL
. In this case, KFbxNode::GetLastErrorID() returns eTAKE_NODE_ERROR and KFbxNode::GetLastErrorString() returns "Take node already exists". bool RemoveTakeNode | ( | int | pIndex | ) |
Remove take node by index.
pIndex | Index of take node to remove. |
true
on success, false
otherwise. In the last case, KFbxNode::GetLastErrorID() can return one of the following:bool RemoveTakeNode | ( | char * | pName | ) |
Remove take node by name.
pName | Take node name. |
true
on success, false
otherwise. In the last case, KFbxNode::GetLastErrorID() can return one of the following:int GetTakeNodeCount | ( | ) | const |
Get take node count.
KFbxTakeNode* GetTakeNode | ( | int | pIndex | ) | const |
Get take node by index.
pIndex | Take node index. |
NULL
if the index is out of range. In the last case, KFbxNode::GetLastErrorID() returns eINDEX_OUT_OF_RANGE. char* GetTakeNodeName | ( | int | pIndex | ) |
Get name of take node at a given index.
pIndex | Take node index. |
NULL
if the index is out of range. In the last case, KFbxNode::GetLastErrorID() returns eINDEX_OUT_OF_RANGE. virtual bool SetCurrentTakeNode | ( | int | pIndex | ) | [virtual] |
Set current take node by index.
pIndex | Index of the current take node. |
true
on success, false
otherwise. In the last case, KFbxNode::GetLastErrorID() returns eINDEX_OUT_OF_RANGE and the current take node is set to index 0, the default take node. Reimplemented in KFbxNode.
virtual bool SetCurrentTakeNode | ( | char * | pName | ) | [virtual] |
Set current take node by name.
pName | Name of the current take node. |
true
on success, false
otherwise. In the last case, KFbxNode::GetLastErrorID() returns eUNKNOWN_TAKE_NODE_NAME and the current take node is set to index 0, the default take node. Reimplemented in KFbxNode.
KFbxTakeNode* GetCurrentTakeNode | ( | ) |
GetCurrentTakeNode.
char* GetCurrentTakeNodeName | ( | ) |
Get the name of the current take node.
int GetCurrentTakeNodeIndex | ( | ) |
Get index of the current take node.
Find the start and end time of the current take.
pStart | Reference to store start time. | |
pStop | Reference to store end time. |
true
on success, false
otherwise. Reimplemented in KFbxNode.