/** * @file XTPChartSplineSeriesStyle.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(__XTPCHARTSPLINESERIESSTYLE_H__) # define __XTPCHARTSPLINESERIESSTYLE_H__ /** @endcond */ # if _MSC_VER >= 1000 # pragma once # endif // _MSC_VER >= 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" class CXTPChartSeriesView; class CXTPChartLineStyle; /** * @brief * This class represents the spline series style in the chart. Objects * of this class are a kind of point series style of a chart. */ class _XTP_EXT_CLASS CXTPChartSplineSeriesStyle : public CXTPChartLineSeriesStyle { /** @cond */ DECLARE_SERIAL(CXTPChartSplineSeriesStyle) /** @endcond */ public: /** * @brief * Constructs a CXTPChartSplineSeriesStyle object. */ CXTPChartSplineSeriesStyle(); /** * @brief * Destroys a CXTPChartSplineSeriesStyle object, handles cleanup. */ virtual ~CXTPChartSplineSeriesStyle(); public: protected: /** * @brief * Call this function to create a view of the spline series. * * @param pSeries A pointer to the chart series object. * @param pDiagramView A pointer to the diagram view object. * * @return * Returns a pointer to the associated series view object. */ virtual CXTPChartSeriesView* CreateView(CXTPChartSeries* pSeries, CXTPChartDiagramView* pDiagramView); protected: # ifdef _XTP_ACTIVEX public: /** @cond */ DECLARE_DISPATCH_MAP() DECLARE_INTERFACE_MAP() DECLARE_OLETYPELIB_EX(CXTPChartSplineSeriesStyle); DECLARE_OLECREATE_EX(CXTPChartSplineSeriesStyle) LPDISPATCH OleGetLineStyle(); /** @endcond */ # endif protected: }; /** * @brief * This class represents the view of a spline series, which is a kind of * CXTPChartSeriesView. */ class _XTP_EXT_CLASS CXTPChartSplineSeriesView : public CXTPChartLineSeriesView { public: /** * @brief * Constructs a CXTPChartSplineSeriesView object. * * @param pSeries A pointer to the chart series object. * @param pDiagramView A pointer to the diagram view object. */ CXTPChartSplineSeriesView(CXTPChartSeries* pSeries, CXTPChartDiagramView* pDiagramView); protected: /** * @brief * Call this function to create a view of the spline series point. * * @param pDC A pointer to the chart device context. * @param pPoint A pointer to the chart series point object. * @param pParentView The parent view of the axis. * * @return * Returns a pointer to the associated series point view object. */ CXTPChartSeriesPointView* CreateSeriesPointView(CXTPChartDeviceContext* pDC, CXTPChartSeriesPoint* pPoint, CXTPChartElementView* pParentView); /** * @brief * This function creates a CXTPChartDeviceCommand object. This object * represents the rendering of a spline series. * * @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 spline series. */ virtual CXTPChartDeviceCommand* CreateDeviceCommand(CXTPChartDeviceContext* pDC); }; /** @cond */ # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" #endif //#if !defined(__XTPCHARTSPLINESERIESSTYLE_H__) /** @endcond */