1 /* -*- Mode: C++ -*-
2    KChart - a multi-platform charting engine
3    */
4 
5 /****************************************************************************
6  ** Copyright (C) 2005-2007 Klarälvdalens Datakonsult AB.  All rights reserved.
7  **
8  ** This file is part of the KD Chart library.
9  **
10  ** This file may be used under the terms of the GNU General Public
11  ** License versions 2.0 or 3.0 as published by the Free Software
12  ** Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3
13  ** included in the packaging of this file.  Alternatively you may (at
14  ** your option) use any later version of the GNU General Public
15  ** License if such license has been publicly approved by
16  ** Klarälvdalens Datakonsult AB (or its successors, if any).
17  **
18  ** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
19  ** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
20  ** A PARTICULAR PURPOSE. Klarälvdalens Datakonsult AB reserves all rights
21  ** not expressly granted herein.
22  **
23  ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
24  ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
25  **
26  **********************************************************************/
27 
28 #ifndef KCHARTSTACKEDPLOTTER_P_H
29 #define KCHARTSTACKEDPLOTTER_P_H
30 
31 #include "KChartPlotter_p.h"
32 
33 namespace KChart {
34 
35     class StackedPlotter : public Plotter::PlotterType
36     {
37     public:
38         explicit StackedPlotter( Plotter* );
~StackedPlotter()39         virtual ~StackedPlotter() {}
40         Plotter::PlotType type() const override;
41         const QPair< QPointF,  QPointF > calculateDataBoundaries() const override;
42         void paint( PaintContext* ctx ) override;
43         double interpolateMissingValue( const CartesianDiagramDataCompressor::CachePosition& pos ) const;
44     };
45 }
46 
47 #endif
48