FBX C++ API Reference
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  FbxProperty GetTranslationOffsetProperty(const FbxObject* pObject) const;
118 
123  virtual void SetRotationOffset(const FbxObject* pObject, FbxVector4 pRotation);
124 
129  FbxVector4 GetRotationOffset(const FbxObject* pObject) const;
130 
135  FbxProperty GetRotationOffsetProperty(const FbxObject* pObject) const;
136 
141  void AddConstraintSource(FbxObject* pObject, double pWeight = 100);
142 
146  int GetConstraintSourceCount() const override;
147 
152  FbxObject* GetConstraintSource(int pIndex) const override;
153 
157  void SetConstrainedObject(FbxObject* pObject);
158 
162  FbxObject* GetConstrainedObject() const override;
163 
164 /*****************************************************************************************************************************
165 ** WARNING! Anything beyond these lines is for internal use, may not be documented and is subject to change without notice! **
166 *****************************************************************************************************************************/
167 #ifndef DOXYGEN_SHOULD_SKIP_THIS
168 protected:
169  void ConstructProperties(bool pForceSet) override;
170  EType GetConstraintType() const override;
171 #endif /* !DOXYGEN_SHOULD_SKIP_THIS *****************************************************************************************/
172 };
173 
174 #include <fbxsdk/fbxsdk_nsend.h>
175 
176 #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...
Class to hold user properties.
Definition: fbxproperty.h:39
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:176
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.