/** * @file XTPChart2dFunnelSeriesLabel.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(__XTPCHART2DFUNNELSERIESLABEL_H__) # define __XTPCHART2DFUNNELSERIESLABEL_H__ /** @endcond */ # if _MSC_VER >= 1000 # pragma once # endif // _MSC_VER >= 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" class CXTPChartSeriesView; class CXTPChartFunnelSeriesPointView; class CXTPChartFunnelSeriesStyle; /** * @brief * CXTPChartFunnelSeriesLabel is a kind of CXTPChartSeriesLabel. This class * abstracts the label of a funnel series. */ class _XTP_EXT_CLASS CXTPChartFunnelSeriesLabel : public CXTPChartFunnelSeriesLabelBase { /** @cond */ DECLARE_SERIAL(CXTPChartFunnelSeriesLabel) /** @endcond */ public: /** * @brief * Constructs a CXTPChartFunnelSeriesLabel object. */ CXTPChartFunnelSeriesLabel(); /** * @brief * Call this function to get the basic style of the funnel series. * * @return * A pointer to a CXTPChartFunnelSeriesStyle object. */ CXTPChartFunnelSeriesStyle* GetStyle() const; protected: /** * @brief * This function creates the view of the funnel series. * * @param pDC The chart device context object pointer. * @param pPointView The series point view. * @param pParentView Parent view pointer. * * @return * Returns a pointer to the associated label view object. */ virtual CXTPChartElementView* CreateView(CXTPChartDeviceContext* pDC, CXTPChartSeriesPointView* pPointView, CXTPChartElementView* pParentView); }; /** * @brief * Defines 2D series label view. */ class _XTP_EXT_CLASS CXTPChartFunnelSeriesLabelView : public CXTPChartFunnelSeriesLabelViewBase { DECLARE_DYNAMIC(CXTPChartFunnelSeriesLabelView); public: /** * @brief * Constructs a CXTPChartFunnelSeriesLabelView object. * * @param pLabel Associated label model pointer. * @param pPointView Point view object pointer associated with the label. * @param pParentView Parent view pointer. */ CXTPChartFunnelSeriesLabelView(CXTPChartSeriesLabel* pLabel, CXTPChartSeriesPointView* pPointView, CXTPChartElementView* pParentView); /** * @brief * Creates a view drawing device command for the device context specified. * * @param pDC Device context pointer for which the drawing command is to be created. * * @return * A new instance of view drawing device command or NULL if no command * is provided. */ virtual CXTPChartDeviceCommand* CreateDeviceCommand(CXTPChartDeviceContext* pDC); }; /** @cond */ # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" #endif //#if !defined(__XTPCHART2DFUNNELSERIESLABEL_H__) /** @endcond */