kchart

KDChartPlaneSeries.h
1/*
2 KDChart - a multi-platform charting engine
3 */
4
5/****************************************************************************
6 ** Copyright (C) 2001-2003 Klarälvdalens Datakonsult AB. All rights reserved.
7 **
8 ** This file is part of the KDChart library.
9 **
10 ** This file may be distributed and/or modified under the terms of the
11 ** GNU General Public License version 2 as published by the Free Software
12 ** Foundation and appearing in the file LICENSE.GPL included in the
13 ** packaging of this file.
14 **
15 ** Licensees holding valid commercial KDChart licenses may use this file in
16 ** accordance with the KDChart Commercial License Agreement provided with
17 ** the Software.
18 **
19 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
20 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
21 **
22 ** See http://www.klaralvdalens-datakonsult.se/?page=products for
23 ** information about KDChart Commercial License Agreements.
24 **
25 ** Contact info@klaralvdalens-datakonsult.se if any conditions of this
26 ** licensing are not clear to you.
27 **
28 **********************************************************************/
29#ifndef __KDCHARTPLANESERIES_H__
30#define __KDCHARTPLANESERIES_H__
31
32
33#include "KDChartBaseSeries.h"
34
35
36class KDCHART_EXPORT KDChartPlaneSeries : public KDChartBaseSeries
37{
38 public:
39 KDChartPlaneSeries( bool isX = false, double location = 0 );
40 virtual ~KDChartPlaneSeries();
41
42 virtual uint rows() const;
43 virtual const KDChartData& cell( uint row ) const;
44 virtual void setCell( uint row, const KDChartData& element);
45 virtual void expand( uint rows );
46
47
48 // methods modelled on the TableBase methods, but these
49 // inherit from BaseSeries.
50 virtual double maxValue( int coordinate, bool &ok ) const;
51 virtual double minValue( int coordinate, bool &ok ) const;
52
53
54 // NOW for our special API.
55 virtual bool isXAxis() const;
56 virtual double location() const;
57
58 virtual void setXAxis( bool isX ); // if false, its a y axis plane
59 virtual void setLocation( double location );
60
61 protected:
62 bool _isX;
63 double _location;
64 KDChartData _start, _stop;
65 virtual void update();
66};
67
68
69#endif