/** * @file XTPChartPolygonDeviceCommand.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(__XTPCHARTPOLYGONDEVICECOMMAND_H__) # define __XTPCHARTPOLYGONDEVICECOMMAND_H__ /** @endcond */ # if _MSC_VER >= 1000 # pragma once # endif // _MSC_VER >= 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" /** * @brief * Base class implementation for 2D chart polygon device command. */ class _XTP_EXT_CLASS CXTPChartPolygonDeviceCommand : public CXTPChartDeviceCommand { protected: /** * @brief * Constructs a CXTPChartPolygonDeviceCommand object. * * @param points Point collection used for drawing polygon. */ CXTPChartPolygonDeviceCommand(const CXTPChartPoints& points); protected: CXTPChartPoints m_points; /**< The points which form the polygon.*/ CXTPChartRectF m_bounds; /**< The rectanglur broundary of the polygon.*/ }; /** * @brief * Base class implementation for 2D chart solid spline polygon device command. */ class _XTP_EXT_CLASS CXTPChartSolidSplinePolygonDeviceCommand : public CXTPChartDeviceCommand { public: /** * @brief * Constructs a CXTPChartSolidSplinePolygonDeviceCommand object. * * @param color The fill color of the solid spline. * @param bTwoSides Unused. Reserved. */ CXTPChartSolidSplinePolygonDeviceCommand(const CXTPChartColor& color, BOOL bTwoSides = FALSE); protected: CXTPChartColor m_color; /**< The fill color of the spline polygon.*/ BOOL m_bTwoSides; /**< Unused. Reserved.*/ }; /** * @brief * Base class implementation for 2D chart bounded polygon device command. */ class _XTP_EXT_CLASS CXTPChartBoundedPolygonDeviceCommand : public CXTPChartDeviceCommand { public: /** * @brief * Constructs a CXTPChartBoundedPolygonDeviceCommand object. * * @param points Point collection used for drawing polygon. * @param color The color of the rectangle border. * @param thickness The thickness of the rectangular border. */ CXTPChartBoundedPolygonDeviceCommand(const CXTPChartPoints& points, const CXTPChartColor& color, int thickness); protected: CXTPChartPoints m_points; /**< The points which form the spline polygon.*/ CXTPChartColor m_color; /**< The color of the rectangle border.*/ int m_thickness; /**< The thickness of the rectangle border.*/ }; /** * @brief * Base class implementation for 2D chart antialiased polygon device command. */ class _XTP_EXT_CLASS CXTPChartPolygonAntialiasingDeviceCommand : public CXTPChartDeviceCommand { public: /** * @brief * Constructs a CXTPChartPolygonAntialiasingDeviceCommand object. * * @param bAntiAlias A BOOL value. TRUE to enable antialiasing, FALSE to disable antialiasing. * The default value is TRUE. */ CXTPChartPolygonAntialiasingDeviceCommand(BOOL bAntiAlias = TRUE); /** * @brief * This method gets called before a command is executed which allows for * the customization of command behavior. * * @param pDC A pointer to the chart native device context. */ virtual void BeforeExecute(CXTPChartDeviceContext* pDC) = 0; /** * @brief * This method gets called after a command is executed which allows for * the customization of command behavior. * * @param pDC A pointer to the chart native device context. */ virtual void AfterExecute(CXTPChartDeviceContext* pDC) = 0; protected: BOOL m_bAntiAlias; /**< TRUE if antialiasing enabled, FALSE if not.*/ }; /** @cond */ # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" #endif //#if !defined(__XTPCHARTPOLYGONDEVICECOMMAND_H__) /** @endcond */