/** * @file XTPChart2dFunnelSeriesStyle.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(__XTPCHART2DFUNNELSERIESSTYLE_H__) # define __XTPCHART2DFUNNELSERIESSTYLE_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 funnel series. This class is a kind of * CXTPChartSeriesStyle. * * @details * A funnel chart (or a circle graph) is a circular chart divided into sectors, * illustrating percents. In a funnel 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 CXTPChartFunnelSeriesStyle : public CXTPChartFunnelSeriesStyleBase { /** @cond */ DECLARE_SERIAL(CXTPChartFunnelSeriesStyle) /** @endcond */ public: /** * @brief * Constructs a CXTPChartFunnelSeriesStyleBase object. */ CXTPChartFunnelSeriesStyle(); protected: /** * @brief * Call this function to create the diagram for this series. * * @return * A pointer to a CXTPChartDiagram object which points to the newly created * CXTPChartDiagram2D object. */ CXTPChartDiagram* CreateDiagram(); /** * @brief * Call this function to create the view of the funnel series. * * @param pSeries A pointer to a chart series object. * @param pDiagramView A pointer to the diagram view object. * * @return * A pointer to the newly created 2D series view object. */ CXTPChartSeriesView* CreateView(CXTPChartSeries* pSeries, CXTPChartDiagramView* pDiagramView); /** * @brief * Call this function to check whether the chart diagram object passed * is a kind of CXTPChart3dFunnelDiagramBase/CXTPChart3dFunnelDiagramBase. * * @param pDiagram A pointer to a chart diagram, whose type is to be identified. * * @return * TRUE if the chart diagram is a funnel diagram, FALSE otherwise. */ virtual BOOL IsStyleDiagram(CXTPChartDiagram* pDiagram) const; /** @cond */ # ifdef _XTP_ACTIVEX public: DECLARE_DISPATCH_MAP() DECLARE_INTERFACE_MAP() DECLARE_OLETYPELIB_EX(CXTPChartFunnelSeriesStyle); DECLARE_OLECREATE_EX(CXTPChartFunnelSeriesStyle) # endif /** @endcond */ }; /** @cond */ # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" #endif //#if !defined(__XTPCHART2DFUNNELSERIESSTYLE_H__) /** @endcond */