fbxsdk/scene/constraint/fbxcharacterpose.h Source File

fbxcharacterpose.h
Go to the documentation of this file.
1 /****************************************************************************************
2 
3  Copyright (C) 2015 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_SCENE_CONSTRAINT_CHARACTER_POSE_H_
14 #define _FBXSDK_SCENE_CONSTRAINT_CHARACTER_POSE_H_
15 
16 #include <fbxsdk/fbxsdk_def.h>
17 
18 #include <fbxsdk/core/fbxobject.h>
21 
22 #include <fbxsdk/fbxsdk_nsbegin.h>
23 
49 {
51 
52 public:
54  void Reset();
55 
59  FbxNode* GetRootNode() const;
60 
64  FbxCharacter* GetCharacter() const;
65 
71  bool GetOffset(FbxCharacter::ENodeId pCharacterNodeId, FbxAMatrix& pOffset) const;
72 
80  bool GetLocalPosition(FbxCharacter::ENodeId pCharacterNodeId, FbxVector4& pLocalT, FbxVector4& pLocalR, FbxVector4& pLocalS) const;
81 
87  bool GetGlobalPosition(FbxCharacter::ENodeId pCharacterNodeId, FbxAMatrix& pGlobalPosition) const;
88 
91  FbxScene* GetPoseScene() const;
92 
93 /*****************************************************************************************************************************
94 ** WARNING! Anything beyond these lines is for internal use, may not be documented and is subject to change without notice! **
95 *****************************************************************************************************************************/
96 #ifndef DOXYGEN_SHOULD_SKIP_THIS
97  virtual FbxObject& Copy(const FbxObject& pObject);
98  virtual FbxObject* Clone( FbxObject::ECloneType pCloneType=eDeepClone, FbxObject* pContainer=NULL, void* pSet = NULL) const;
99  void Clone(FbxScene* pPoseScene, FbxObject::ECloneType pCloneType=eDeepClone, FbxObject* pContainer=NULL, void* pSet = NULL);
100 
101 protected:
102  virtual void Construct(const FbxObject* pFrom);
103  virtual void Destruct(bool pRecursive);
104 
105 private:
106  FbxScene* mPoseScene;
107 #endif /* !DOXYGEN_SHOULD_SKIP_THIS *****************************************************************************************/
108 };
109 
110 #include <fbxsdk/fbxsdk_nsend.h>
111 
112 #endif /* _FBXSDK_SCENE_CONSTRAINT_CHARACTER_POSE_H_ */
#define FBXSDK_OBJECT_DECLARE(Class, Parent)
Macro used to declare a new class derived from FbxObject.
Definition: fbxobject.h:61
FBX SDK environment definition.
#define NULL
Definition: fbxarch.h:210
virtual FbxObject & Copy(const FbxObject &pObject)
Copy an object content into this object.
ECloneType
Types of clones that can be created for FbxObject.
Definition: fbxobject.h:245
ENodeId
Define ID for each character node.
Definition: fbxcharacter.h:133
A character pose is a character and an associated hierarchy of nodes.
The base class of most FBX objects.
Definition: fbxobject.h:157
Represents an element in the scene graph.
Definition: fbxnode.h:72
This class contains the description of a 3D scene.
Definition: fbxscene.h:61
virtual void Construct(const FbxObject *pFrom)
Optional constructor override, automatically called by default constructor.
A four double mathematic vector class.
Definition: fbxvector4.h:25
FBX SDK affine matrix class.
virtual FbxObject * Clone(FbxObject::ECloneType pCloneType=eDeepClone, FbxObject *pContainer=((void *) 0), void *pSet=((void *) 0)) const
Creates a clone of this object.
#define FBXSDK_DLL
Definition: fbxarch.h:173
A Character is a person or animal with pre-defined skeleton system.
Definition: fbxcharacter.h:91
virtual void Destruct(bool pRecursive)
Optional destructor override, automatically called by default destructor.