#include <kfbxanimcurvenode.h>
Definition at line 53 of file kfbxanimcurvenode.h.
Utility functions. |
|
bool | IsAnimated (bool pRecurse=false) const |
Returns true if animation keys are found.
|
|
bool | GetAnimationInterval (KTime &pStart, KTime &pStop) const |
Find out start and end time of the
animation. |
|
bool | IsComposite () const |
Test this object to see if it is a composite
KFbxAnimCurveNode
or a "leaf". |
|
KFbxAnimCurveNode * | Find (const char *pName) |
Recursively look for the KFbxAnimCurveNode
matching the passed named argument. |
|
unsigned int | GetChannelsCount () const |
Get the total number of channels properties
defined in the composite member. |
|
int | GetChannelIndex (const char *pChannelName) const |
Get the index of the named channel. |
|
KString | GetChannelName (int pChannelId) const |
Get the name of the channel. |
|
void | ResetChannels () |
Empties the composite member. |
|
template<class T> | |
bool | AddChannel (const char *pChnlName, T const &pValue) |
Adds the specified channel property.
|
|
template<class T> | |
void | SetChannelValue (const char *pChnlName, T pValue) |
Set the default value of the channel.
|
|
template<class T> | |
void | SetChannelValue (unsigned int pChnlId, T pValue) |
Set the default value of the channel.
|
|
template<class T> | |
T | GetChannelValue (const char *pChnlName, T pInitVal) |
Get the default value of the channel.
|
|
template<class T> | |
T | GetChannelValue (unsigned int pChnlId, T pInitVal) |
Get the default value of the channel.
|
|
static KFbxAnimCurveNode * | CreateTypedCurveNode (KFbxProperty &pProperty, KFbxScene *pScene) |
Create a KFbxAnimCurveNode
compatible with the specified property data type. |
|
KFbxAnimCurve management. |
|
bool | DisconnectFromChannel (KFbxAnimCurve *pCurve, unsigned int pChnlId) |
Disconnect the AnimCurves from the channel.
|
|
bool | ConnectToChannel (KFbxAnimCurve *pCurve, const char *pChnl, bool pInFront=false) |
Connects the given animation curve to the
specified channel. |
|
bool | ConnectToChannel (KFbxAnimCurve *pCurve, unsigned int pChnlId, bool pInFront=false) |
Connects the given animation curve to the
specified channel. |
|
KFbxAnimCurve * | CreateCurve (const char *pCurveNodeName, const char *pChannel) |
Creates a new curve and connects it to the
specified channel of this curve node (or pCurveNodeName if this one
is a composite). |
|
KFbxAnimCurve * | CreateCurve (const char *pCurveNodeName, unsigned int pChannelId=0) |
Creates a new curve and connects it to the
specified channel of this curve node (or pCurveNodeName if this one
is a composite). |
|
int | GetCurveCount (unsigned int pChannelId, const char *pCurveNodeName=NULL) |
Get the number of KFbxAnimCurve connected to the specified channel.
|
|
KFbxAnimCurve * | GetCurve (unsigned int pChannelId, unsigned int pId=0, const char *pCurveNodeName=NULL) |
Get the KFbxAnimCurve of the specified channel. |
bool IsAnimated | ( | bool | pRecurse = false |
) | const |
Returns true if animation keys are found.
pRecurse | When true and this AnimCurveNode is composite,
descend to the children. |
true
if at least one AnimCurve is found and
contains animation keys.Find out start and end time of the animation.
This function retrieves the including time span for all the Curve's time span of this curve node.
pStart | Reference to receive start time. | |
pStop | Reference to receive end time. |
true
on success, false
otherwise.false
is also returned if this curve node has no
animation.bool IsComposite | ( | ) | const |
Test this object to see if it is a composite KFbxAnimCurveNode or a "leaf".
A composite KFbxAnimCurveNode is an object whose src connections are only KFbxAnimCurveNode and his channels property is totally empty.
true
if this object is a composite,
false
otherwise.KFbxAnimCurveNode* Find | ( | const char * | pName | ) |
Recursively look for the KFbxAnimCurveNode matching the passed named argument.
pName | Name of the KFbxAnimCurveNode we are looking for. |
static KFbxAnimCurveNode* CreateTypedCurveNode | ( | KFbxProperty & | pProperty, | |
KFbxScene * | pScene | |||
) | [static] |
Create a KFbxAnimCurveNode compatible with the specified property data type.
pProperty | Property to be compatible with. | |
pScene | The scene the created KFbxAnimCurveNode will belong to. |
This function detects fbxDouble3, fbxDouble4 and fbxDouble44 properties DataTypes and automatically adds the required channels properties. Any other DataType is not specifically processed and the channels properties are left empty and need to be filled using the AddChannel() function.
unsigned int GetChannelsCount | ( | ) | const |
Get the total number of channels properties defined in the composite member.
int GetChannelIndex | ( | const char * | pChannelName | ) | const |
Get the index of the named channel.
pChannelName | Name of the channel for which we want the index. |
Get the name of the channel.
pChannelId | Index of the channel for which we want the name. |
void ResetChannels | ( | ) |
Empties the composite member.
bool AddChannel | ( | const char * | pChnlName, | |
T const & | pValue | |||
) | [inline] |
Adds the specified channel property.
pChnlName | Channel name. | |
pValue | Default value of the channel. |
True
if successful.Definition at line 134 of file kfbxanimcurvenode.h.
References KFbxProperty::Create(), FbxTypeOf(), GetFbxDataType(), and KFbxProperty::IsValid().
void SetChannelValue | ( | const char * | pChnlName, | |
T | pValue | |||
) | [inline] |
Set the default value of the channel.
pChnlName | Channel name. | |
pValue | New default value of this channel. |
Definition at line 155 of file kfbxanimcurvenode.h.
References KFbxProperty::IsValid().
void SetChannelValue | ( | unsigned int | pChnlId, | |
T | pValue | |||
) | [inline] |
Set the default value of the channel.
pChnlId | Channel index. | |
pValue | New default value of this channel. |
Definition at line 165 of file kfbxanimcurvenode.h.
References KFbxProperty::IsValid().
T GetChannelValue | ( | const char * | pChnlName, | |
T | pInitVal | |||
) | [inline] |
Get the default value of the channel.
pChnlName | Channel name. | |
pInitVal | Value returned if the specified channel is invalid. |
Definition at line 176 of file kfbxanimcurvenode.h.
References KFbxProperty::IsValid().
T GetChannelValue | ( | unsigned int | pChnlId, | |
T | pInitVal | |||
) | [inline] |
Get the default value of the channel.
pChnlId | Channel index. | |
pInitVal | Value returned if the specified channel is invalid. |
Definition at line 189 of file kfbxanimcurvenode.h.
References KFbxProperty::IsValid().
bool DisconnectFromChannel | ( | KFbxAnimCurve * | pCurve, | |
unsigned int | pChnlId | |||
) |
Disconnect the AnimCurves from the channel.
pCurve | The curve to disconnect from the channel. | |
pChnlId | The channel index. |
true
if the disconnection was made,
false
if an error occurred.bool ConnectToChannel | ( | KFbxAnimCurve * | pCurve, | |
const char * | pChnl, | |||
bool | pInFront = false |
|||
) |
Connects the given animation curve to the specified channel.
pCurve | The curve to connect to the channel. | |
pChnl | The name of the channel the curve is to be connected to. | |
pInFront | When true , all the current connections are moved
after this one. making this one the first. By default, the
connection is the last one. |
true
if the connection was made,
false
if an error occurred.bool ConnectToChannel | ( | KFbxAnimCurve * | pCurve, | |
unsigned int | pChnlId, | |||
bool | pInFront = false |
|||
) |
Connects the given animation curve to the specified channel.
pCurve | The curve to connect to the channel. | |
pChnlId | Index of the channel the curve is to be connected to. | |
pInFront | When true , all the current connections are moved
after this one. making this one the first. By default, the
connection is the last one. |
true
if the connection was made,
false
if an error occurred.KFbxAnimCurve* CreateCurve | ( | const char * | pCurveNodeName, | |
const char * | pChannel | |||
) |
Creates a new curve and connects it to the specified channel of this curve node (or pCurveNodeName if this one is a composite).
pCurveNodeName | Name of the KFbxAnimCurveNode we are looking for (if this one is a composite). | |
pChannel | Channel identifier. |
If the pChannel identifier is left NULL, use the first valid channel.
KFbxAnimCurve* CreateCurve | ( | const char * | pCurveNodeName, | |
unsigned int | pChannelId = 0 |
|||
) |
Creates a new curve and connects it to the specified channel of this curve node (or pCurveNodeName if this one is a composite).
pCurveNodeName | Name of the KFbxAnimCurveNode we are looking for (if this one is a composite). | |
pChannelId | Channel index. |
If the pChannel identifier is left NULL, use the first valid channel.
Get the number of KFbxAnimCurve connected to the specified channel.
pChannelId | Channel index. | |
pCurveNodeName | Name of the KFbxAnimCurveNode we are looking for. |
It is an error if the specified channel cannot be found in this curve node.
If the pCurveNodeName is left NULL only look for the curves on this node even if it is a composite.
KFbxAnimCurve* GetCurve | ( | unsigned int | pChannelId, | |
unsigned int | pId = 0 , |
|||
const char * | pCurveNodeName =
NULL |
|||
) |
Get the KFbxAnimCurve of the specified channel.
pChannelId | Channel index. | |
pId | The index of the desired anim curve (in case there is more than one) | |
pCurveNodeName | Name of the KFbxAnimCurveNode we are looking for (if this object is a composite). |
If the specified channel cannot be found in this curve node, the function return NULL.
If the pCurveNodeName is left NULL only look for the curve on this node even if it is a composite.