/** * @file XTPChart2dPieDiagram.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(__XTPCHART2DPIEDIAGRAM_H__) # define __XTPCHART2DPIEDIAGRAM_H__ /** @endcond */ # if _MSC_VER >= 1000 # pragma once # endif // _MSC_VER >= 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" class CXTPChartPieBase; class CXTPChartDiagramDomain; /** * @brief * This class abstracts the pie diagram. This class is a kind of * CXTPChartDiagram. * * @details * A pie chart (or a circle graph) is a circular chart divided into sectors, * illustrating percents. In a pie 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 CXTPChartPieDiagram : public CXTPChart2dPieDiagramBase { /** @cond */ DECLARE_SERIAL(CXTPChartPieDiagram) /** @endcond */ public: /** * @brief * Constructs a CXTPChartPieDiagram object. */ CXTPChartPieDiagram(); public: /** * @brief * Call this function to create the view of the pie diagram. * * @param pDC A pointer to the chart device context. * @param pParent A pointer to the parent view. * * @return * Returns a pointer to the associated diagram view object. */ virtual CXTPChartDiagramView* CreateView(CXTPChartDeviceContext* pDC, CXTPChartElementView* pParent); # ifdef _XTP_ACTIVEX public: /** @cond */ DECLARE_DISPATCH_MAP() DECLARE_INTERFACE_MAP() DECLARE_OLETYPELIB_EX(CXTPChartPieDiagram); DECLARE_OLECREATE_EX(CXTPChartPieDiagram) /** @endcond */ # endif }; /** @cond */ # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" #endif //#if !defined(__XTPCHART2DPIEDIAGRAM_H__) /** @endcond */