#include<kfbxtakenodecontainer.h>
List of all members.
Detailed Description
This class is a container for take nodes which contain animation data.
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()andKFbxTakeNodeContainer::GetDefaultTakeNode()will return the sameKFbxTakeNodeobject. If both the default and the current take node are processed without appropriate testing, the same data will be processed twice.
Definition at line73of filekfbxtakenodecontainer.h.
Member Function Documentation
Create a take node.
- Parameters:
| pName | New take node name. |
- Returns:
- Pointer to the created take node or, if a take node with the same name already exists in the node,
NULL
. In this case,KFbxNode::GetLastErrorID()returns eTAKE_NODE_ERROR andKFbxNode::GetLastErrorString()returns "Take node already exists".
bool RemoveTakeNode | ( | int | pIndex | ) | |
Remove take node by index.
- Parameters:
| pIndex | Index of take node to remove. |
- Returns:
true
on success,false
otherwise. In the last case,KFbxNode::GetLastErrorID()can return one of the following:- eCANNOT_REMOVE_DEFAULT_TAKE_NODE: The default take node can't be removed.
- eINDEX_OUT_OF_RANGE: The index is out of range.
bool RemoveTakeNode | ( | char * | pName | ) | |
Remove take node by name.
- Parameters:
- Returns:
true
on success,false
otherwise. In the last case,KFbxNode::GetLastErrorID()can return one of the following:- eCANNOT_REMOVE_DEFAULT_TAKE_NODE: The default take node can't be removed.
- eUNKNOWN_TAKE_NODE_NAME: No take node with this name exists in the current node.
int GetTakeNodeCount | ( | | ) | const |
Get take node count.
- Returns:
- The number of take nodes including the default take node.
Get take node by index.
- Parameters:
- Returns:
- Pointer to the indexed take node or
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.
- Parameters:
- Returns:
- Name of take node or
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.
- Parameters:
| pIndex | Index of the current take node. |
- Returns:
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.
virtual bool SetCurrentTakeNode | ( | char * | pName | ) | [virtual] |
Set current take node by name.
- Parameters:
| pName | Name of the current take node. |
- Returns:
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.
GetDefaultTakeNode.
- Returns:
- Pointer to the current take node.
GetCurrentTakeNode.
- Returns:
- Pointer to the current take node.
char* GetCurrentTakeNodeName | ( | | ) | |
Get the name of the current take node.
- Returns:
- Name of the current take node.
int GetCurrentTakeNodeIndex | ( | | ) | |
Get index of the current take node.
- Returns:
- Index of the current take node.
virtual bool GetAnimationInterval | ( | KTime& | pStart, |
| | KTime& | pStop | |
| ) | | | [virtual] |
Find the start and end time of the current take.
- Parameters:
| pStart | Reference to store start time. |
| pStop | Reference to store end time. |
- Returns:
true
on success,false
otherwise.
Reimplemented inKFbxNode.