FBX C++ API Reference
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
fbxcolladaanimationelement.h
Go to the documentation of this file.
1 /****************************************************************************************
2 
3  Copyright (C) 2016 Autodesk, Inc.
4  All rights reserved.
5 
6  Use of this software is subject to the terms of the Autodesk license agreement
7  provided at the time of installation or download, or which otherwise accompanies
8  this software in either electronic or hard copy form.
9 
10 ****************************************************************************************/
11 
13 #ifndef _FBXSDK_FILEIO_COLLADA_ANIMATION_ELEMENT_H_
14 #define _FBXSDK_FILEIO_COLLADA_ANIMATION_ELEMENT_H_
15 
16 #include <fbxsdk.h>
17 
19 
20 #include <map>
21 
22 #include <fbxsdk/fbxsdk_nsbegin.h>
23 
27 {
28 public:
30 
32  virtual ~AnimationElement();
33 
37  int GetChannelCount() const;
38 
42  bool FromCOLLADA(xmlNode * pElement, const SourceElementMapType & pSourceElements);
43 
49  bool FromFBX(const FbxAnimCurve * pCurve, double pUnitConversion = 1.0);
50 
56  bool ToFBX(FbxAnimCurve * pFBXCurve, int pChannelIndex,
57  double pUnitConversion = 1.0) const;
58 
64  bool ToFBX(FbxNode * pFBXNode, FbxAnimLayer * pAnimLayer,
65  double pUnitConversion = 1.0) const;
66 
72  bool ToCOLLADA(xmlNode * pAnimationLibrary, const char * pNodeID,
73  const char * pAttributeSID);
74 
75 private:
76  int mKeyCount;
77  double * mInputArray;
78  double * mOutputArray;
79  int mOutputStride;
80  FbxString * mInterpolationArray;
81  int mInterpolationStride;
82  double * mInTangentArray;
83  int mInTangentStride;
84  double * mOutTangentArray;
85  int mOutTangentStride;
86 };
87 
88 #include <fbxsdk/fbxsdk_nsend.h>
89 
90 #endif /* _FBXSDK_FILEIO_COLLADA_ANIMATION_ELEMENT_H_ */
The animation layer is a collection of animation curve nodes.
Definition: fbxanimlayer.h:30
bool ToFBX(FbxAnimCurve *pFBXCurve, int pChannelIndex, double pUnitConversion=1.0) const
Copy the channel with specific index to the FBX animation curve.
Utility class to manipulate strings.
Definition: fbxstring.h:66
Representing a COLLADA animation element.
This class implements an efficient map based on key comparison, which stores key-value pairs...
Definition: fbxmap.h:68
bool FromCOLLADA(xmlNode *pElement, const SourceElementMapType &pSourceElements)
Initialize with the content of a COLLADA element.
virtual ~AnimationElement()
Represents an element in the scene graph.
Definition: fbxnode.h:72
int GetChannelCount() const
Get the count of animation channels in the element.
An animation curve, defined by a collection of keys (FbxAnimCurveKey), and indicating how a value cha...
Definition: fbxanimcurve.h:779
bool FromFBX(const FbxAnimCurve *pCurve, double pUnitConversion=1.0)
Initialize with an animation curve.
bool ToCOLLADA(xmlNode *pAnimationLibrary, const char *pNodeID, const char *pAttributeSID)
Add the content to COLLADA animation library.
Representing a common COLLADA element.