/** * @file XTPChartGdiCircleDeviceCommand.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(__XTPCHARTGDICIRCLEDEVICECOMMAND_H__) # define __XTPCHARTGDICIRCLEDEVICECOMMAND_H__ # if _MSC_VER >= 1000 # pragma once # endif // _MSC_VER >= 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" /** * @brief * This class represents a gradient circle device command, which is a kind of * CXTPChartDeviceCommand. It specifically handles the rendering of * gradient circular shapes in a chart. */ class _XTP_EXT_CLASS CXTPChartGdiSolidCircleDeviceCommand : public CXTPChartCircleDeviceCommand { public: /** * @brief * Constructs a CXTPChartGdiSolidCircleDeviceCommand object. * * @param center The center point of the circle. * @param radius The radius of the circle. * @param color The color of the circle. */ CXTPChartGdiSolidCircleDeviceCommand(const CXTPChartPointF& center, double radius, const CXTPChartColor& color); /** * @brief * This is a virtual function override of base class CXTPChartDeviceContext. This * function acts polymorphically to do the actual drawing of the chart element * to which this device command is associated with. * * @param pDC The device context of the chart. */ void ExecuteOverride(CXTPChartDeviceContext* pDC); protected: CXTPChartColor m_color; /**< The start color.*/ }; /** * @brief * This class represents a gradient circle device command, which is a kind of * CXTPChartDeviceCommand. It specifically handles the rendering of * gradient circular shapes in a chart. */ class _XTP_EXT_CLASS CXTPChartGdiGradientCircleDeviceCommand : public CXTPChartCircleDeviceCommand { public: /** * @brief * Constructs a CXTPChartGdiGradientCircleDeviceCommand object. * * @param center The center point of the circle. * @param radius The radius of the circle. * @param color The start color of the gradient. * @param color2 The end color of the gradient. * @param nMode The linear gradient mode, it can be horizontal, vertical, * forward diagonal or backward diagonal. */ CXTPChartGdiGradientCircleDeviceCommand(const CXTPChartPointF& center, double radius, const CXTPChartColor& color, const CXTPChartColor& color2, XTPChartLinearGradientMode nMode); /** * @brief * This is a virtual function override of base class CXTPChartDeviceContext. This * function acts polymorphically to do the actual drawing of the chart element * to which this device command is associated with. * * @param pDC The device context of the chart. */ void ExecuteOverride(CXTPChartDeviceContext* pDC); protected: CXTPChartColor m_color; /**< The start color.*/ CXTPChartColor m_color2; /**< The end color.*/ XTPChartLinearGradientMode m_nMode; /**< The gradient mode used.*/ }; /** * @brief * This class represents a gradient hatch device command, which is a kind of * CXTPChartCircleDeviceCommand. It specifically handles the rendering of * hatch circular shapes in a chart. */ class _XTP_EXT_CLASS CXTPChartGdiHatchCircleDeviceCommand : public CXTPChartCircleDeviceCommand { public: /** * @brief * Constructs a CXTPChartGdiHatchCircleDeviceCommand object. * * @param center The center point of the circle. * @param radius The radius of the circle. * @param color The start color of the gradient. * @param color2 The end color of the gradient. * @param nStyle Chart hatch style. */ CXTPChartGdiHatchCircleDeviceCommand(const CXTPChartPointF& center, double radius, const CXTPChartColor& color, const CXTPChartColor& color2, XTPChartHatchStyle nStyle); /** * @brief * This is a virtual function override of base class CXTPChartDeviceContext. This * function acts polymorphically to do the actual drawing of the chart element * to which this device command is associated with. * * @param pDC The device context of the chart. */ void ExecuteOverride(CXTPChartDeviceContext* pDC); protected: CXTPChartColor m_color; /**< The start color.*/ CXTPChartColor m_color2; /**< The end color.*/ XTPChartHatchStyle m_nStyle; /**< The hatch mode used.*/ }; class _XTP_EXT_CLASS CXTPChartGdiBoundedCircleDeviceCommand : public CXTPChartBoundedCircleDeviceCommand { public: /** * @brief * Constructs a CXTPChartGdiBoundedCircleDeviceCommand object. * * @param center The center point of the circle. * @param radius The radius of the circle. * @param color The color of boundary. * @param thickness The thickness of the boundary. */ CXTPChartGdiBoundedCircleDeviceCommand(const CXTPChartPointF& center, double radius, const CXTPChartColor& color, int thickness); /** * @brief * This is a virtual function override of base class CXTPChartDeviceContext. This * function acts polymorphically to do the actual drawing of the chart element * to which this device command is associated with. * * @param pDC The device context of the chart. */ void ExecuteOverride(CXTPChartDeviceContext* pDC); }; # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" #endif //#if !defined(__XTPCHARTGDICIRCLEDEVICECOMMAND_H__) /** @endcond */