fbxsdk/scene/constraint/fbxconstraintparent.h Source File

fbxconstraintparent.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_PARENT_H_
14 #define _FBXSDK_SCENE_CONSTRAINT_PARENT_H_
15 
16 #include <fbxsdk/fbxsdk_def.h>
17 
19 
20 #include <fbxsdk/fbxsdk_nsbegin.h>
21 
28 {
30 
31 public:
41 
47 
53 
59 
65 
71 
77 
83 
89 
94 
100 
105  void SetTranslationOffset(FbxObject* pObject, FbxVector4 pTranslation);
106 
111  FbxVector4 GetTranslationOffset(const FbxObject* pObject) const;
112 
117  virtual void SetRotationOffset(const FbxObject* pObject, FbxVector4 pRotation);
118 
123  FbxVector4 GetRotationOffset(const FbxObject* pObject) const;
124 
129  void AddConstraintSource(FbxObject* pObject, double pWeight = 100);
130 
134  int GetConstraintSourceCount() const;
135 
140  FbxObject* GetConstraintSource(int pIndex) const;
141 
145  void SetConstrainedObject(FbxObject* pObject);
146 
151 
152 /*****************************************************************************************************************************
153 ** WARNING! Anything beyond these lines is for internal use, may not be documented and is subject to change without notice! **
154 *****************************************************************************************************************************/
155 #ifndef DOXYGEN_SHOULD_SKIP_THIS
156 protected:
157  virtual void ConstructProperties(bool pForceSet);
158  virtual EType GetConstraintType() const;
159 #endif /* !DOXYGEN_SHOULD_SKIP_THIS *****************************************************************************************/
160 };
161 
162 #include <fbxsdk/fbxsdk_nsend.h>
163 
164 #endif /* _FBXSDK_SCENE_CONSTRAINT_PARENT_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.
virtual FbxObject * GetConstrainedObject() const
Retrieve the constrained object.
Definition: fbxconstraint.h:81
FbxPropertyT< FbxBool > AffectRotationX
This property handles whether to affect the rotation of the constrained object around X axis...
virtual EType GetConstraintType() const
Access the type of the constraint.
Definition: fbxconstraint.h:76
FbxPropertyT< FbxBool > AffectTranslationZ
This property handles whether to affect the translation of the constrained object along Z axis...
FbxPropertyT< FbxBool > AffectTranslationY
This property handles whether to affect the translation of the constrained object along Y axis...
virtual FbxObject * GetConstraintSource(int) const
Retrieve a constraint source with the specified index.
Definition: fbxconstraint.h:92
Base class for weighted animation constraints.
Definition: fbxconstraint.h:27
FbxPropertyT< FbxBool > AffectScalingY
This property handles whether to affect the scaling of the constrained object along Y axis...
FbxPropertyT< FbxBool > AffectScalingZ
This property handles whether to affect the scaling of the constrained object along Z axis...
FbxPropertyT< FbxReference > ConstrainedObject
This property used to access constrained object.
FbxPropertyT< FbxBool > AffectTranslationX
This property handles whether to affect the translation of the constrained object along X axis...
The base class of most FBX objects.
Definition: fbxobject.h:157
FbxPropertyT< FbxBool > AffectRotationY
This property handles whether to affect the rotation of the constrained object around Y axis...
EType
Constraint attribute types.
Definition: fbxconstraint.h:60
FbxPropertyT< FbxReference > ConstraintSources
This property used to access constraint sources.
FbxPropertyT< FbxBool > AffectRotationZ
This property handles whether to affect the rotation of the constrained object around Z axis...
FbxPropertyT< FbxBool > AffectScalingX
This property handles whether to affect the scaling of the constrained object along X axis...
A four double mathematic vector class.
Definition: fbxvector4.h:25
#define FBXSDK_DLL
Definition: fbxarch.h:173
The parent constraint creates a parent-to-child relationship between any two objects, from any two hierarchies.
virtual int GetConstraintSourceCount() const
Retrieve the count of constraint source.
Definition: fbxconstraint.h:86
virtual void ConstructProperties(bool pForceSet)
Optional property constructor override, automatically called by default constructor.