/** * @file XTPMarkupTransformationMatrix.h * * @copyright * (c) 1998-2025 Codejock Software, All Rights Reserved. * * This source file is the property of Codejock Software and must not be * redistributed by any means without the explicit written permission of * Codejock Software. * * The use of this source code is governed by the terms and conditions specified * in the Toolkit Pro license agreement. Codejock Software grants you, as a * single software developer, the limited right to use this software on one * computer only. * * Contact Information: * support@codejock.com * http://www.codejock.com * */ /** @cond */ #if !defined(__XTPMARKUPTRANSFORMATIONMATRIX_H__) # define __XTPMARKUPTRANSFORMATIONMATRIX_H__ /** @endcond */ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" class CXTPMarkupTransformationMatrix; /** * @brief * An abstract class for device context transformation matrix. */ class _XTP_EXT_CLASS CXTPMarkupTransformationMatrix : public CObject { /** @cond */ DECLARE_DYNAMIC(CXTPMarkupTransformationMatrix); /** @endcond */ protected: /** * @brief * Constructs a CXTPMarkupTransformationMatrix object. */ CXTPMarkupTransformationMatrix(); public: /** * @brief * Destroys a CXTPMarkupTransformationMatrix object, handles cleanup and deallocation. */ virtual ~CXTPMarkupTransformationMatrix(); /** * @brief * Clones a matrix object. * @return * A pointer to the cloned matrix. It is the responsibility * of the caller to delete the returned object. */ virtual CXTPMarkupTransformationMatrix* Clone() const = 0; /** * @brief * Adds offset to the current matrix. * @param offset Offset to add. */ virtual void Offset(const POINT& offset); /** * @brief * Checks if a point is inside a rectangle with transformation applied. * @param rect Rectangle in relative coordinates to test in. * @param absoluteOffset Absolute offset of the rectangle. * @param point Absolute point to test. * @return * TRUE if the point hits the specified rectangle. */ virtual BOOL PtInRect(const RECT& rect, const POINT& absoluteOffset, const POINT& point) const; /** * @brief * Computes the bounding rectangle after transformation. * @param rect Rectangle in relative coordinates to transform. * @param absoluteOffset Absolute offset of the rectangle. * @return * A CRect object containing the bounding rectangle after transformation. */ virtual CRect GetBoundRect(const RECT& rect, const POINT& absoluteOffset) const; }; AFX_INLINE CXTPMarkupTransformationMatrix::CXTPMarkupTransformationMatrix() { } AFX_INLINE CXTPMarkupTransformationMatrix::~CXTPMarkupTransformationMatrix() { } # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" /** @cond */ #endif // !defined(__XTPMARKUPTRANSFORMATIONMATRIX_H__) /** @endcond */