/** * @file XTPChartSplineAreaSeriesStyle.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(__XTPCHARTSPLINEAREASERIESSTYLE_H__) # define __XTPCHARTSPLINEAREASERIESSTYLE_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 represents a spline area series style, which is a kind of * CXTPChartAreaSeriesStyle. * * @details * Spline area series displays graphically the quantitative data in a chart. * It displays a series as a set of points connected by a spline with all * the area filled in below the line. */ class _XTP_EXT_CLASS CXTPChartSplineAreaSeriesStyle : public CXTPChartAreaSeriesStyle { /** @cond */ DECLARE_SERIAL(CXTPChartSplineAreaSeriesStyle) /** @endcond */ public: /** * @brief * Constructs a CXTPChartSplineAreaSeriesStyle object. */ CXTPChartSplineAreaSeriesStyle(); /** * @brief * Destroys a CXTPChartSplineAreaSeriesStyle object, handles cleanup. */ virtual ~CXTPChartSplineAreaSeriesStyle(); protected: /** * @brief * Use this function to create a spline area series view object. * * @param pSeries Pointer to a chart series object. * @param pDiagramView Pointer to a chart diagram view object. * * @return A pointer to CXTPChartSeriesView which refers to the newly created * CXTPChartSplineAreaSeriesView object. * * @details * CXTPChartSplineAreaSeriesView class abstracts the view of a spine area * series. */ virtual CXTPChartSeriesView* CreateView(CXTPChartSeries* pSeries, CXTPChartDiagramView* pDiagramView); # ifdef _XTP_ACTIVEX public: /** @cond */ DECLARE_DISPATCH_MAP() DECLARE_INTERFACE_MAP() DECLARE_OLETYPELIB_EX(CXTPChartSplineAreaSeriesStyle); DECLARE_OLECREATE_EX(CXTPChartSplineAreaSeriesStyle) /** @endcond */ # endif protected: }; /** * @brief * CXTPChartSplineAreaSeriesView is a kind of CXTPChartSeriesView. This class * represents the view of the area series of a chart. * * @details * Spline area series displays graphically the quantitative data in a chart. * It displays a series as a set of points connected by a spline with all * the area filled in below the line. */ class _XTP_EXT_CLASS CXTPChartSplineAreaSeriesView : public CXTPChartAreaSeriesView { public: /** * @brief * Constructs a CXTPChartSplineAreaSeriesView object. * * @param pSeries Pointer to a chart series object. * @param pDiagramView Pointer to a chart diagram view object. */ CXTPChartSplineAreaSeriesView(CXTPChartSeries* pSeries, CXTPChartDiagramView* pDiagramView); protected: /** * @brief * Call this function to create a spline area series point view object. * * @param pDC Pointer to a chart device context object. * @param pPoint Pointer to a chart series object. * @param pParentView The parent view of the axis. * * @return A pointer to CXTPChartSeriesPointView which refers to the newly created * CXTPChartPointSeriesPointView object. * * @details * CXTPChartSeriesPointView object abstracts the view of a point in a series. */ CXTPChartSeriesPointView* CreateSeriesPointView(CXTPChartDeviceContext* pDC, CXTPChartSeriesPoint* pPoint, CXTPChartElementView* pParentView); /** * @brief * This function creates a CXTPChartDeviceCommand object. This object * represents the rendering of a spline area series in the chart. * * @param pDC Pointer to a CXTPChartDeviceContext object. * * @return A CXTPChartDeviceCommand object. This polymorphic object handles * the rendering of an element in the chart. Here it handles the drawing * of the spline area series of the chart. */ virtual CXTPChartDeviceCommand* CreateDeviceCommand(CXTPChartDeviceContext* pDC); }; /** @cond */ # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" #endif //#if !defined(__XTPCHARTSPLINEAREASERIESSTYLE_H__) /** @endcond */