/** * @file XTPChart2dPyramidSeriesStyle.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(__XTPCHART2DPYRAMIDSERIESSTYLE_H__) # define __XTPCHART2DPYRAMIDSERIESSTYLE_H__ /** @endcond */ # if _MSC_VER >= 1000 # pragma once # endif // _MSC_VER >= 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" class CXTPChartSeriesView; class CXTPChartBorder; class CXTPChartFillStyle; /** * @brief * This class abstracts the basic style of a pyramid series. This class is a kind of * CXTPChartSeriesStyle. * * @details * A pyramid chart (or a circle graph) is a circular chart divided into sectors, * illustrating percents. In a pyramid chart, the arc length of each sector (and * consequently its central angle and area), is proportional to the quantity * it represents. Together, the sectors create a full disk. */ class _XTP_EXT_CLASS CXTPChartPyramidSeriesStyle : public CXTPChartPyramidSeriesStyleBase { DECLARE_SERIAL(CXTPChartPyramidSeriesStyle); public: /** * @brief * Constructs a CXTPChartPyramidSeriesStyle object. */ CXTPChartPyramidSeriesStyle(); protected: /** * @brief * Call this function to create the pyramid diagram object. * * @return * Returns a pointer to the associated diagram object. */ virtual CXTPChartDiagram* CreateDiagram(); /** * @brief * Call this function to create the view of the pyramid series. * * @param pSeries A pointer to the chart series object. * @param pDiagramView A pointer to the diagram view object. * * @return * Returns a pointer to the associated series view object. */ virtual CXTPChartSeriesView* CreateView(CXTPChartSeries* pSeries, CXTPChartDiagramView* pDiagramView); /** * @brief * Call this function to check whether a chart diagram object passed * is a kind of CXTPChart2dPyramidDiagramBase/CXTPChart3dPyramidDiagramBase. * * @param pDiagram A pointer to a chart diagram whose type is to be identified. * * @return * TRUE if the chart diagram is a pyramid diagram, FALSE otherwise. */ virtual BOOL IsStyleDiagram(CXTPChartDiagram* pDiagram) const; # ifdef _XTP_ACTIVEX public: /** @cond */ DECLARE_DISPATCH_MAP() DECLARE_INTERFACE_MAP() DECLARE_OLETYPELIB_EX(CXTPChartPyramidSeriesStyle); DECLARE_OLECREATE_EX(CXTPChartPyramidSeriesStyle) /** @endcond */ # endif }; /** @cond */ # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" #endif //#if !defined(__XTPCHART2DPYRAMIDSERIESSTYLE_H__) /** @endcond */