/** * @file XTPChartRangeSplineAreaSeriesStyle.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(__XTPCHARTRANGESPLINEAREASERIESSTYLE_H__) # define __XTPCHARTRANGESPLINEAREASERIESSTYLE_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 * CXTPChartRangeSplineAreaSeriesStyle is a CXTPChartAreaSeriesStyle derived class which * represents the area series style. * * @details * Area series displays graphically the quantitative data in a chart. * It displays a series as a set of points connected by a line or spline * with all the area filled in below the line. */ class _XTP_EXT_CLASS CXTPChartRangeSplineAreaSeriesStyle : public CXTPChartAreaSeriesStyle { /** @cond */ DECLARE_SERIAL(CXTPChartRangeSplineAreaSeriesStyle) /** @endcond */ public: /** * @brief * Constructs a CXTPChartRangeSplineAreaSeriesStyle object. */ CXTPChartRangeSplineAreaSeriesStyle(); /** * @brief * Destroys a CXTPChartRangeSplineAreaSeriesStyle object, handles cleanup. */ virtual ~CXTPChartRangeSplineAreaSeriesStyle(); public: protected: /** * @brief * Use this function to create a chart series view object. * * @param pSeries Pointer to a chart series object. * @param pDiagramView Pointer to a chart diagram view object. * * @return A pointer to the newly created CXTPChartSeriesView object. * * @details * CXTPChartSeriesView abstracts the view of a series. */ virtual CXTPChartSeriesView* CreateView(CXTPChartSeries* pSeries, CXTPChartDiagramView* pDiagramView); # ifdef _XTP_ACTIVEX public: /** @cond */ DECLARE_DISPATCH_MAP() DECLARE_INTERFACE_MAP() DECLARE_OLETYPELIB_EX(CXTPChartRangeSplineAreaSeriesStyle); DECLARE_OLECREATE_EX(CXTPChartRangeSplineAreaSeriesStyle) /** @endcond */ # endif protected: }; /** * @brief * CXTPChartRangeSplineAreaSeriesView is a kind of CXTPChartAreaSeriesView. This class * represents the view of the area series of a chart. * * @details * Area series displays graphically the quantitative data in a chart. * It displays a series as a set of points connected by a line or spline * with all the area filled in below the line. */ class _XTP_EXT_CLASS CXTPChartRangeSplineAreaSeriesView : public CXTPChartAreaSeriesView { public: /** * @brief * Constructs a CXTPChartRangeSplineAreaSeriesView object. * * @param pSeries Pointer to a chart series object. * @param pDiagramView Pointer to a chart diagram view object. */ CXTPChartRangeSplineAreaSeriesView(CXTPChartSeries* pSeries, CXTPChartDiagramView* pDiagramView); protected: CXTPChartSeriesPointView* CreateSeriesPointView(CXTPChartDeviceContext* pDC, CXTPChartSeriesPoint* pPoint, CXTPChartElementView* pParentView); /** * @brief * This function creates a CXTPChartDeviceCommand object. This object * represents the rendering of an area series in the chart. * * @param pDC Pointer to a CXTPChartDeviceContext object. * * @return Returns a CXTPChartDeviceCommand object. This polymorphic object handles * the rendering of an element in the chart. Here it handles the drawing * of the area series of the chart. */ virtual CXTPChartDeviceCommand* CreateDeviceCommand(CXTPChartDeviceContext* pDC); }; /** * @brief * This class represents the view of a RangeBar series point, which is a kind of * CXTPChartPointSeriesPointView. */ class _XTP_EXT_CLASS CXTPChartRangeSplineAreaSeriesPointView : public CXTPChartPointSeriesPointView { public: /** * @brief * Constructs a CXTPChartRangeBarSeriesPointView object. * * @param pPoint A pointer to the chart series point object. * @param pParentView Parent view pointer. */ CXTPChartRangeSplineAreaSeriesPointView(CXTPChartSeriesPoint* pPoint, CXTPChartElementView* pParentView); public: virtual void UpdateMinMaxRange(double& nMinValue, double& nMaxValue) const; public: /** * @brief * This function creates a CXTPChartDeviceCommand object. This object * represents the rendering of an area series in the chart. * * @param pDC Pointer to a CXTPChartDeviceContext object. * * @return Returns a CXTPChartDeviceCommand object. This polymorphic object handles * the rendering of an element in the chart. Here it handles the drawing * of the area series of the chart. */ virtual CXTPChartDeviceCommand* CreateDeviceCommand(CXTPChartDeviceContext* pDC); }; /** @cond */ # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" #endif //#if !defined(__XTPCHARTRANGESPLINEAREASERIESSTYLE_H__) /** @endcond */