/////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance"). // All rights reserved. // // This software and its documentation and related materials are owned by // the Alliance. The software may only be incorporated into application // programs owned by members of the Alliance, subject to a signed // Membership Agreement and Supplemental Software License Agreement with the // Alliance. The structure and organization of this software are the valuable // trade secrets of the Alliance and its suppliers. The software is also // protected by copyright law and international treaty provisions. Application // programs incorporating this software must include the following statement // with their copyright notices: // // This application incorporates Open Design Alliance software pursuant to a license // agreement with Open Design Alliance. // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance. // All rights reserved. // // By use of this software, its documentation or related materials, you // acknowledge and accept the above terms. /////////////////////////////////////////////////////////////////////////////// #ifndef _PRCTEXTURETRANSFORMATION_INCLUDED_ #define _PRCTEXTURETRANSFORMATION_INCLUDED_ #include "PrcTransformation2d.h" /** \details The class represents transformation data used in a texture definition. */ class PRC_TOOLKIT OdPrcTextureTransformation { private: OdPrcTransformation2d m_matrix_transformation; bool m_texture_flip_S; bool m_texture_flip_T; public: PRC_DECLARE_CIO(OdPrcTextureTransformation) /** \details Requests the current 2D transformation data. \returns An object that contains 2D transformation data. \remarks 2D transformation data is returned as a reference to an object; therefore, it can be used to set a new transformation. */ OdPrcTransformation2d &matrixTransformation(); /** \details Requests the current 2D transformation data. \returns An object that contains 2D transformation data. */ const OdPrcTransformation2d &matrixTransformation() const; /** \details Sets a new value for the flip flag for the S coordinate. The flip flag indicates whether the S coordinate parameter is flipped (true) or not flipped (false). \param texture_flip_S [in] A new flag value to be set. */ void setTextureFlipS(bool texture_flip_S); /** \details Requests the current value of the flip flag for the S coordinate. The flip flag indicates whether the S coordinate parameter is flipped (true) or not flipped (false). \returns The true value if the S coordinate parameter is flipped; otherwise, the method returns false. */ bool textureFlipS() const; /** \details Sets a new value for the flip flag for the T coordinate. The flip flag indicates whether the T coordinate parameter is flipped (true) or not flipped (false). \param texture_flip_T [in] A new flag value to be set. */ void setTextureFlipT(bool texture_flip_T); /** \details Requests the current value of the flip flag for the T coordinate. The flip flag indicates whether the T coordinate parameter is flipped (true) or not flipped (false). \returns The true value if the T coordinate parameter is flipped; otherwise, the method returns false. */ bool textureFlipT() const; /** \details Requests the current type of the PRC object. \returns An usigned 32-bit integer value that represents the type of the PRC object. */ OdUInt32 prcType() const; }; #endif // _PRCTEXTURETRANSFORMATION_INCLUDED_