FBX C++ API Reference
fbxconstraintaim.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_AIM_H_
14 #define _FBXSDK_SCENE_CONSTRAINT_AIM_H_
15 
16 #include <fbxsdk/fbxsdk_def.h>
17 
19 
20 #include <fbxsdk/fbxsdk_nsbegin.h>
21 
27 {
29 
30 public:
33  enum EWorldUp
34  {
40  eAimAtCount
41  };
42 
52 
56 
60 
64 
68 
74 
80 
86 
92 
98 
105 
110  void AddConstraintSource(FbxObject* pObject, double pWeight = 100);
111 
115  int GetConstraintSourceCount() const;
116 
121  FbxObject* GetConstraintSource(int pIndex) const;
122 
126  void SetConstrainedObject(FbxObject* pObject);
127 
132 
136  void SetWorldUpObject(FbxObject* pObject);
137 
141  FbxObject* GetWorldUpObject() const;
142 
143 /*****************************************************************************************************************************
144 ** WARNING! Anything beyond these lines is for internal use, may not be documented and is subject to change without notice! **
145 *****************************************************************************************************************************/
146 #ifndef DOXYGEN_SHOULD_SKIP_THIS
147 protected:
148  virtual void ConstructProperties(bool pForceSet);
149 
150  virtual EType GetConstraintType() const;
151 #endif /* !DOXYGEN_SHOULD_SKIP_THIS *****************************************************************************************/
152 };
153 
155 
156 #include <fbxsdk/fbxsdk_nsend.h>
157 
158 #endif /* _FBXSDK_SCENE_CONSTRAINT_AIM_H_ */
FbxPropertyT< FbxEnum > WorldUpType
This property handles world up type.
#define FBXSDK_OBJECT_DECLARE(Class, Parent)
Macro used to declare a new class derived from FbxObject.
Definition: fbxobject.h:61
FBX SDK environment definition.
An aim constraint governs an object&#39;s orientation so that the object points to other objects...
virtual int GetConstraintSourceCount() const
Retrieve the count of constraint source.
Definition: fbxconstraint.h:86
Constraint vector type.
FbxPropertyT< FbxBool > AffectZ
This property handles whether to affect the rotation around Z axis.
FbxPropertyT< FbxReference > AimAtObjects
This property provides access to the object or objects which are the targets.
Constraint object rotation up type.
Constraint scene up type.
FbxPropertyT< FbxDouble3 > AimVector
This property enables you set a specific axis for the constrained object to orient towards...
virtual FbxObject * GetConstraintSource(int) const
Retrieve a constraint source with the specified index.
Definition: fbxconstraint.h:92
FbxPropertyT< FbxBool > AffectX
This property handles whether to affect the rotation around X axis.
Base class for weighted animation constraints.
Definition: fbxconstraint.h:27
EFbxType
Type identifier constants.
EFbxType FbxTypeOf(const FbxConstraintAim::EWorldUp &)
The base class of most FBX objects.
Definition: fbxobject.h:157
FbxPropertyT< FbxDouble3 > WorldUpVector
This property handles world up vector.
FbxPropertyT< FbxBool > AffectY
This property handles whether to affect the rotation around Y axis.
EType
Constraint attribute types.
Definition: fbxconstraint.h:60
EWorldUp
Constraint world up type, which has the same meaning with Maya.
Enumeration.
#define FBXSDK_DLL
Definition: fbxarch.h:173
FbxPropertyT< FbxDouble3 > RotationOffset
This property handles the rotation offset value.
virtual EType GetConstraintType() const
Access the type of the constraint.
Definition: fbxconstraint.h:76
This template class is used to contain user properties of specific data types.
Definition: fbxproperty.h:1070
FbxPropertyT< FbxReference > ConstrainedObject
This property provides access to the object being aimed.
FbxPropertyT< FbxDouble3 > UpVector
This property handles up vector.
FbxPropertyT< FbxReference > WorldUpObject
This property handles world up object.
virtual void ConstructProperties(bool pForceSet)
Optional property constructor override, automatically called by default constructor.
virtual FbxObject * GetConstrainedObject() const
Retrieve the constrained object.
Definition: fbxconstraint.h:81