File indexing completed on 2024-12-15 04:02:27
0001 /* -*- Mode: C++ -*- 0002 KChart - a multi-platform charting engine 0003 */ 0004 0005 /**************************************************************************** 0006 ** SPDX-FileCopyrightText: 2005-2007 Klarälvdalens Datakonsult AB. All rights reserved. 0007 ** 0008 ** This file is part of the KD Chart library. 0009 ** 0010 ** This file may be used under the terms of the GNU General Public 0011 ** License versions 2.0 or 3.0 as published by the Free Software 0012 ** Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 0013 ** included in the packaging of this file. Alternatively you may (at 0014 ** your option) use any later version of the GNU General Public 0015 ** License if such license has been publicly approved by 0016 ** Klarälvdalens Datakonsult AB (or its successors, if any). 0017 ** 0018 ** This file is provided "AS IS" with NO WARRANTY OF ANY KIND, 0019 ** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR 0020 ** A PARTICULAR PURPOSE. Klarälvdalens Datakonsult AB reserves all rights 0021 ** not expressly granted herein. 0022 ** 0023 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 0024 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 0025 ** 0026 **********************************************************************/ 0027 0028 #ifndef KCHARTSTACKEDPLOTTER_P_H 0029 #define KCHARTSTACKEDPLOTTER_P_H 0030 0031 #include "KChartPlotter_p.h" 0032 0033 namespace KChart { 0034 0035 class StackedPlotter : public Plotter::PlotterType 0036 { 0037 public: 0038 explicit StackedPlotter( Plotter* ); 0039 ~StackedPlotter() override {} 0040 Plotter::PlotType type() const override; 0041 const QPair< QPointF, QPointF > calculateDataBoundaries() const override; 0042 void paint( PaintContext* ctx ) override; 0043 double interpolateMissingValue( const CartesianDiagramDataCompressor::CachePosition& pos ) const; 0044 }; 0045 } 0046 0047 #endif