/** * @file XTPChartBarSeriesErrorBar.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(__XTPCHARTBARSERIESERRORBAR_H__) # define __XTPCHARTBARSERIESERRORBAR_H__ /** @endcond */ # if _MSC_VER >= 1000 # pragma once # endif // _MSC_VER >= 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" class CXTPChartSeriesView; class _XTP_EXT_CLASS CXTPChartBarSeriesErrorBar : public CXTPChartErrorBar { DECLARE_SERIAL(CXTPChartBarSeriesErrorBar); public: /** * @brief * Constructs a CXTPChartBarSeriesErrorBar object. */ CXTPChartBarSeriesErrorBar(); /** * @brief * Destroys a CXTPChartBarSeriesErrorBar object, handles cleanup. */ virtual ~CXTPChartBarSeriesErrorBar(); public: /** * @brief * This function creates the view of the bar series label. * * @param pDC The device context. * @param pPointView A pointer to the series point view object. * @param pParentView The pointer to the parent view object. * * @return * A pointer to a CXTPChartElementView object, which is polymorphic to * CXTPChartBarSeriesLabelView. */ virtual CXTPChartElementView* CreateView(CXTPChartDeviceContext* pDC, CXTPChartSeriesPointView* pPointView, CXTPChartElementView* pParentView); void DoPropExchange(CXTPPropExchange* pPX); public: # ifdef _XTP_ACTIVEX public: /** @cond */ DECLARE_DISPATCH_MAP() DECLARE_INTERFACE_MAP() DECLARE_OLETYPELIB_EX(CXTPChartBarSeriesErrorBar); /** @endcond */ # endif }; /** * @brief * This class abstracts the view of the label of a bar series. It is a kind of point * series label view. */ class _XTP_EXT_CLASS CXTPChartBarSeriesErrorBarView : public CXTPChartErrorBarView { public: /** * @brief * Constructs a CXTPChartBarSeriesErrorBarView object. * * @param pErrorBar Pointer to the error bar object. * @param pPointView Pointer to chart series point view. * @param pParentView The pointer to the parent view object. */ CXTPChartBarSeriesErrorBarView(CXTPChartErrorBar* pErrorBar, CXTPChartSeriesPointView* pPointView, CXTPChartElementView* pParentView); // virtual CXTPChartDeviceCommand* CreateDeviceCommand(CXTPChartDeviceContext *pDC); void CalculateLayout(CXTPChartDeviceContext* pDC); /** * @brief * Returns the anchor point of the error bar. */ // virtual CXTPChartPointF GetAnchorPoint(XTPChartErrorBarPosition position) const; }; /** @cond */ # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" #endif //#if !defined(__XTPCHARTBARSERIESERRORBAR_H__) /** @endcond */