/** * @file XTPChart2dPyramidSeriesPointView.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(__XTPCHART2DPYRAMIDSERIESPOINTVIEW_H__) # define __XTPCHART2DPYRAMIDSERIESPOINTVIEW_H__ /** @endcond */ # if _MSC_VER >= 1000 # pragma once # endif // _MSC_VER >= 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" class CXTPChartSeriesPoint; class CXTPChartElementView; class CXTPChartDeviceCommand; class CXTPChartDeviceContext; /** * @brief * This class abstracts the view of a pyramid series point. This class is a kind of * CXTPChartSeriesPointView. * * @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 CXTPChartPyramidSeriesPointView : public CXTPChartPyramidSeriesPointViewBase { DECLARE_DYNAMIC(CXTPChartPyramidSeriesPointView); public: /** * @brief * Constructs a CXTPChartPyramidSeriesPointView object. * * @param pPoint Pointer to chart series point. * @param pParentView Parent element view pointer. */ CXTPChartPyramidSeriesPointView(CXTPChartSeriesPoint* pPoint, CXTPChartElementView* pParentView); /** * @brief * Constructs a CXTPChartPyramidSeriesPointView object. * * @param pPoint Pointer to chart series point. * @param pParentView Parent element view pointer. * @param bAddToParent If TRUE the view will be be added to parent's child view list. */ CXTPChartPyramidSeriesPointView(CXTPChartSeriesPoint* pPoint, CXTPChartElementView* pParentView, BOOL bAddToParent); public: /** * @brief * Use this function to calculate the layout of the pyramid series point. * * @param nIndex Point index. * @param nCount Number of points. * @param dFrom Point start value. * @param dTo Value part point value end. */ void CalculateLayout(int nIndex, int nCount, double dFrom, double dTo); protected: /** * @brief * This function creates a CXTPChartDeviceCommand object. This object * represents the rendering of the pyramid series point. * * @param pDC Pointer to a CXTPChartDeviceContext object. * * @return * Returns a CXTPChartDeviceCommand object. This object handles * the rendering of an element in the chart. Here it handles * the drawing of the pyramid series point. */ virtual CXTPChartDeviceCommand* CreateDeviceCommand(CXTPChartDeviceContext* pDC); public: CXTPChartRectF m_rc; double m_dFrom; double m_dTo; }; /** @cond */ # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" #endif //#if !defined(__XTPCHART2DPYRAMIDSERIESPOINTVIEW_H__) /** @endcond */