- Main Page
- Classes
- Files
- Directories

- File List
- File Members

# fbxconstraintparent.h

Go to the documentation of this file.

    00001 /****************************************************************************************
    00002
    00003    Copyright (C) 2013 Autodesk, Inc.
    00004    All rights reserved.
    00005
    00006    Use of this software is subject to the terms of the Autodesk license agreement
    00007    provided at the time of installation or download, or which otherwise accompanies
    00008    this software in either electronic or hard copy form.
    00009
    00010 ****************************************************************************************/
    00011
    00013 #ifndef _FBXSDK_SCENE_CONSTRAINT_PARENT_H_
    00014 #define _FBXSDK_SCENE_CONSTRAINT_PARENT_H_
    00015
    00016 #include <fbxsdk/fbxsdk_def.h>
    00017
    00018 #include <fbxsdk/scene/constraint/fbxconstraint.h>
    00019
    00020 #include <fbxsdk/fbxsdk_nsbegin.h>
    00021
    00027 class FBXSDK_DLL FbxConstraintParent : public FbxConstraint
    00028 {
    00029     FBXSDK_OBJECT_DECLARE(FbxConstraintParent, FbxConstraint);
    00030
    00031 public:
    00040         FbxPropertyT<FbxBool> AffectTranslationX;
    00041
    00046         FbxPropertyT<FbxBool> AffectTranslationY;
    00047
    00052         FbxPropertyT<FbxBool> AffectTranslationZ;
    00053
    00058         FbxPropertyT<FbxBool> AffectRotationX;
    00059
    00064         FbxPropertyT<FbxBool> AffectRotationY;
    00065
    00070         FbxPropertyT<FbxBool> AffectRotationZ;
    00071
    00076         FbxPropertyT<FbxBool> AffectScalingX;
    00077
    00082         FbxPropertyT<FbxBool> AffectScalingY;
    00083
    00088         FbxPropertyT<FbxBool> AffectScalingZ;
    00089
    00093         FbxPropertyT<FbxReference> ConstraintSources;
    00094
    00098         FbxPropertyT<FbxReference> ConstrainedObject;
    00100
    00105     void SetTranslationOffset(FbxObject* pObject, FbxVector4 pTranslation);
    00106
    00111     FbxVector4 GetTranslationOffset(const FbxObject* pObject) const;
    00112
    00117     virtual void SetRotationOffset(const FbxObject* pObject, FbxVector4 pRotation);
    00118
    00123     FbxVector4 GetRotationOffset(const FbxObject* pObject) const;
    00124
    00129     void AddConstraintSource(FbxObject* pObject, double pWeight = 100);
    00130
    00134     int GetConstraintSourceCount() const;
    00135
    00140     FbxObject* GetConstraintSource(int pIndex) const;
    00141
    00145     void SetConstrainedObject(FbxObject* pObject);
    00146
    00150     FbxObject* GetConstrainedObject() const;
    00151
    00152 /*****************************************************************************************************************************
    00153 ** WARNING! Anything beyond these lines is for internal use, may not be documented and is subject to change without notice! **
    00154 *****************************************************************************************************************************/
    00155 #ifndef DOXYGEN_SHOULD_SKIP_THIS
    00156 protected:
    00157     virtual void ConstructProperties(bool pForceSet);
    00158     virtual EType GetConstraintType() const;
    00159 #endif /* !DOXYGEN_SHOULD_SKIP_THIS *****************************************************************************************/
    00160 };
    00161
    00162 #include <fbxsdk/fbxsdk_nsend.h>
    00163
    00164 #endif /* _FBXSDK_SCENE_CONSTRAINT_PARENT_H_ */