/**************************************************************************************** Copyright (C) 2015 Autodesk, Inc. All rights reserved. Use of this software is subject to the terms of the Autodesk license agreement provided at the time of installation or download, or which otherwise accompanies this software in either electronic or hard copy form. ****************************************************************************************/ //! \file fbxconstraintscale.h #ifndef _FBXSDK_SCENE_CONSTRAINT_SCALE_H_ #define _FBXSDK_SCENE_CONSTRAINT_SCALE_H_ #include #include #include /**\brief This constraint class contains methods for accessing the properties of a scale constraint. * A scale constraint lets you constrain the scale of an object based on the scale of one or more sources. * \nosubgrouping */ class FBXSDK_DLL FbxConstraintScale : public FbxConstraint { FBXSDK_OBJECT_DECLARE(FbxConstraintScale,FbxConstraint); public: /** * \name Properties */ //@{ /** This property handles whether to affect x axis. * Default value is true. */ FbxPropertyT AffectX; /** This property handles whether to affect y axis. * Default value is true. */ FbxPropertyT AffectY; /** This property handles whether to affect z axis. * Default value is true. */ FbxPropertyT AffectZ; /** This property handles scaling offset. * Default value is (0, 0, 0). */ FbxPropertyT Scaling; /** This property handles constraint source objects. */ FbxPropertyT ConstraintSources; /** This property handles constraint target objects. */ FbxPropertyT ConstrainedObject; //@} /** Add a source to the constraint. * \param pObject New source object. * \param pWeight Weight of the source object. */ void AddConstraintSource(FbxObject* pObject, double pWeight = 100); /** Retrieve the constraint source count. * \return Current constraint source count. */ int GetConstraintSourceCount() const override; /** Retrieve a constraint source object. * \param pIndex Index of the source * \return Current source at the specified index. */ FbxObject* GetConstraintSource(int pIndex) const override; /** Set the constrained object. * \param pObject The constrained object. */ void SetConstrainedObject(FbxObject* pObject); /** Retrieve the constrained object. * \return Current constrained object. */ FbxObject* GetConstrainedObject() const override; /***************************************************************************************************************************** ** WARNING! Anything beyond these lines is for internal use, may not be documented and is subject to change without notice! ** *****************************************************************************************************************************/ #ifndef DOXYGEN_SHOULD_SKIP_THIS protected: void ConstructProperties(bool pForceSet) override; EType GetConstraintType() const override; #endif /* !DOXYGEN_SHOULD_SKIP_THIS *****************************************************************************************/ }; #include #endif /* _FBXSDK_SCENE_CONSTRAINT_SCALE_H_ */