- Main Page
- Classes
- Files
- Directories
- Examples

- File List
- File Members

# fbxconstraintposition.h

Go to the documentation of this file.

    00001 /****************************************************************************************
    00002
    00003    Copyright (C) 2012 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_POSITION_H_
    00014 #define _FBXSDK_SCENE_CONSTRAINT_POSITION_H_
    00015
    00016 #include <fbxsdk/fbxsdk_def.h>
    00017
    00018 #include <fbxsdk/scene/constraint/fbxconstraint.h>
    00019 #include <fbxsdk/scene/fbxgroupname.h>
    00020
    00021 #include <fbxsdk/core/base/fbxerror.h>
    00022
    00023 #include <fbxsdk/fbxsdk_nsbegin.h>
    00024
    00025 class FbxManager;
    00026 class FbxVector4;
    00027
    00032 class FBXSDK_DLL FbxConstraintPosition : public FbxConstraint
    00033 {
    00034     FBXSDK_OBJECT_DECLARE(FbxConstraintPosition,FbxConstraint);
    00035
    00036 public:
    00037
    00046             FbxPropertyT<FbxBool>        AffectX;
    00047
    00052             FbxPropertyT<FbxBool>        AffectY;
    00053
    00058             FbxPropertyT<FbxBool>        AffectZ;
    00059
    00064             FbxPropertyT<FbxDouble3>    Translation;
    00065
    00068             FbxPropertyT<FbxReference> ConstraintSources;
    00069
    00072             FbxPropertyT<FbxReference> ConstrainedObject;
    00074
    00079     void AddConstraintSource(FbxObject* pObject, double pWeight = 100);
    00080
    00084     bool RemoveConstraintSource(FbxObject* pObject);
    00085
    00089     int GetConstraintSourceCount() const;
    00090
    00095     FbxObject* GetConstraintSource(int pIndex) const;
    00096
    00100     void SetConstrainedObject(FbxObject* pObject);
    00101
    00105     FbxObject* GetConstrainedObject() const;
    00106
    00107 #ifndef DOXYGEN_SHOULD_SKIP_THIS
    00108 protected:
    00109     FbxConstraintPosition(FbxManager& pManager, char const* pName);
    00110
    00111     virtual bool ConstructProperties(bool pForceSet);
    00112
    00113     virtual EType GetConstraintType() const;
    00114 #endif // #ifndef DOXYGEN_SHOULD_SKIP_THIS
    00115 };
    00116
    00117 #include <fbxsdk/fbxsdk_nsend.h>
    00118
    00119 #endif /* _FBXSDK_SCENE_CONSTRAINT_POSITION_H_ */