/** * @file XTPChartSeriesPointView.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(__XTPCHARTSERIESPOINTVIEW_H__) # define __XTPCHARTSERIESPOINTVIEW_H__ /** @endcond */ # if _MSC_VER >= 1000 # pragma once # endif // _MSC_VER >= 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" class CXTPChartSeriesView; class CXTPChartSeriesPoint; class CXTPChartSeriesStyle; class CXTPChartSeries; class CXTPChartDiagramView; class CXTPChartDiagram; class CXTPChartLegendView; /** * @brief * Represents chart series point view. */ class _XTP_EXT_CLASS CXTPChartSeriesPointView : public CXTPChartElementView , public CXTPChartLegendItemView { DECLARE_DYNAMIC(CXTPChartSeriesPointView); public: /** * @brief * Constructs the view object. * * @param pPoint Point model object pointer. * @param pParentView Parent view pointer. */ CXTPChartSeriesPointView(CXTPChartSeriesPoint* pPoint, CXTPChartElementView* pParentView); /** * @brief * Constructs the view object. * * @param pPoint Point model object pointer. * @param pParentView Parent view pointer. * @param bAddToParent If TRUE, the view will be added to parent's child elements. */ CXTPChartSeriesPointView(CXTPChartSeriesPoint* pPoint, CXTPChartElementView* pParentView, BOOL bAddToParent); public: /** * @brief * Obtains point model object. * * @return * Point model object pointer. */ CXTPChartSeriesPoint* GetPoint() const; /** * @brief * Obtains parent series view. * * @return * Parent series view pointer. */ CXTPChartSeriesView* GetSeriesView() const; /** * @brief * Obtain view color values. * * @return * View color value. */ CXTPChartColor GetColor() const; /** * @brief * Obtain view color values. * * @return * View color value. */ CXTPChartColor GetColor2() const; /** * @brief * Obtains point interval value. * * @return * Point interval value. */ double GetInternalValue() const; /** * @brief * This function returns the legend name. It is a pure virtual * function so it should be implemented in the derived classes. * * @return * Returns the legend name represented by the CXTPChartString class. */ virtual CXTPChartString GetLegendName() const; /** * @brief * This function creates a CXTPChartDeviceCommand object. This object * represents the rendering of a legend item in the chart. * @param rcBounds The bounding rectange. * @param pDC Pointer to a valid device context. * @return * Returns a CXTPChartDeviceCommand object. This object handles * the rendering of an element in the chart. Here it handles * the drawing of the legend item. */ virtual CXTPChartDeviceCommand* CreateLegendDeviceCommand(CXTPChartDeviceContext* pDC, CRect rcBounds); /** * @brief * Provides a default empty implementation for min/max range update request. * * @param nMinValue The updated minimal value. * @param nMaxValue The updated maximal value. */ virtual void UpdateMinMaxRange(double& nMinValue, double& nMaxValue) const; private: CXTPChartColor PrepareColor(CXTPChartColor color) const; public: double m_dInternalValue; /**< Point internal value.*/ protected: CXTPChartSeriesPoint* m_pPoint; /**< Point model object pointer.*/ friend class CXTPChartSeriesView; }; AFX_INLINE CXTPChartSeriesPoint* CXTPChartSeriesPointView::GetPoint() const { return m_pPoint; } AFX_INLINE double CXTPChartSeriesPointView::GetInternalValue() const { return m_dInternalValue; } AFX_INLINE void CXTPChartSeriesPointView::UpdateMinMaxRange(double& /*nMinValue*/, double& /*nMaxValue*/) const { } /** @cond */ # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" #endif //#if !defined(__XTPCHARTSERIESPOINTVIEW_H__) /** @endcond */