- Main Page
- Classes
- Files
- Directories

- Class List
- Class Hierarchy
- Class Members

Public Types | Public Member Functions

# AnimationElement Class Reference

Search for all occurrences

## Detailed Description

Representing a COLLADA animation element.

Definition at line 26 of file fbxcolladaanimationelement.h.

`#include <fbxcolladaanimationelement.h>`

Inheritance diagram for AnimationElement:
[legend]

List of all members.

## Public Types
typedef ElementBase | base_type
## Public Member Functions
| AnimationElement ()
virtual | ~AnimationElement ()
int | GetChannelCount () const
| Get the count of animation channels in the element.
void | FromCOLLADA (xmlNode *pElement, const SourceElementMapType &pSourceElements)
| Initialize with the content of a COLLADA element.
void | FromFBX (const FbxAnimCurve *pCurve, double pUnitConversion=1.0)
| Initialize with an animation curve.
void | ToFBX (FbxAnimCurve *pFBXCurve, int pChannelIndex, double pUnitConversion=1.0) const
| Copy the channel with specific index to the FBX animation curve.
void | ToFBX (FbxNode *pFBXNode, FbxAnimLayer *pAnimLayer, double pUnitConversion=1.0) const
| Copy the matrix animation to the FBX node TRS properties.
void | ToCOLLADA (xmlNode *pAnimationLibrary, const char *pNodeID, const char *pAttributeSID)
| Add the content to COLLADA animation library.

## Member Typedef Documentation

typedef ElementBase base_type

Search for all occurrences

Definition at line 29 of file fbxcolladaanimationelement.h.

## Constructor & Destructor Documentation

AnimationElement | ( |  | ) |

virtual ~AnimationElement | ( |  | ) | `[virtual]`

## Member Function Documentation

int GetChannelCount | ( |  | ) | const

Search for all occurrences

Get the count of animation channels in the element.

Returns:
  Return the channel count.

void FromCOLLADA | ( | xmlNode * | pElement,
|  | const SourceElementMapType & | pSourceElements
| ) |  |

Search for all occurrences

Initialize with the content of a COLLADA element.

This method should be called before ToFBX.

void FromFBX | ( | const FbxAnimCurve * | pCurve,
|  | double | pUnitConversion = `1.0`
| ) |  |

Search for all occurrences

Initialize with an animation curve.

This method should be called before ToCOLLADA.

Parameters:

  pCurve | The specific animation curve.
  pUnitConversion | The unit conversion for key value.

void ToFBX | ( | FbxAnimCurve * | pFBXCurve,
|  | int | pChannelIndex,
|  | double | pUnitConversion = `1.0`
| ) |  | const

Search for all occurrences

Copy the channel with specific index to the FBX animation curve.

Parameters:

  pFBXCurve | The destination FBX animation curve.
  pChannelIndex | The index of the source channel.
  pUnitConversion | The unit conversion from local element to global.

void ToFBX | ( | FbxNode * | pFBXNode,
|  | FbxAnimLayer * | pAnimLayer,
|  | double | pUnitConversion = `1.0`
| ) |  | const

Search for all occurrences

Copy the matrix animation to the FBX node TRS properties.

Parameters:

  pFBXNode | The destination FBX node.
  pUnitConversion | The unit conversion from local element to global.

void ToCOLLADA | ( | xmlNode * | pAnimationLibrary,
|  | const char * | pNodeID,
|  | const char * | pAttributeSID
| ) |  |

Search for all occurrences

Add the content to COLLADA animation library.

Parameters:

  pAnimationLibrary | The COLLADA animation library element.
  pNodeID | The ID of the element to who this curve is belong.
  pAttributeSID | The ID the attribute to who this curve is belong.

The documentation for this class was generated from the following file:

- fbxsdk/fileio/collada/fbxcolladaanimationelement.h

AnimationElement AnimationElement AnimationElement AnimationElement AnimationElement AnimationElement AnimationElement AnimationElement AnimationElement AnimationElement
AnimationElement AnimationElement AnimationElement AnimationElement AnimationElement AnimationElement AnimationElement AnimationElement AnimationElement AnimationElement