kchart

KDChartLinesPainter.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 __KDCHARTLINESPAINTER_H__
30#define __KDCHARTLINESPAINTER_H__
31
32#include "KDChartAxesPainter.h"
33#include <KDChartTable.h>
34#include <KDChartParams.h>
35
36class TQSize;
37
39{
40 friend class KDChartPainter;
41
42 protected:
44 virtual ~KDChartLinesPainter();
45
46 virtual void paintData( TQPainter* painter,
48 bool paint2nd,
49 KDChartDataRegionList* regions = 0 );
50 virtual bool isNormalMode() const;
51 virtual int clipShiftUp( bool, double ) const;
52 virtual void specificPaintData( TQPainter* painter,
53 const TQRect& ourClipRect,
55 KDChartDataRegionList* regions,
56 const KDChartAxisParams* axisPara,
57 bool bNormalMode,
58 uint chart,
59 double logWidth,
60 double areaWidthP1000,
61 double logHeight,
62 double axisYOffset,
63 double minColumnValue,
64 double maxColumnValue,
65 double columnValueDistance,
66 uint chartDatasetStart,
67 uint chartDatasetEnd,
68 uint datasetStart,
69 uint datasetEnd );
70
71 void paintDataInternal( TQPainter* painter,
73 bool centerThePoints,
74 bool drawMarkers,
75 bool isArea,
76 bool paint2nd,
77 KDChartDataRegionList* regions = 0 );
78 TQPoint project( int x, int y, int z );
79 private:
80 KDChartParams::ChartType mChartType;
81 bool mCenterThePoints;
82 bool mDrawMarkers;
83 bool mIsArea;
84};
85
86#endif
Header for all common chart parameters.
A common base class for classes that implement chart painters for chart types ith axes.
access the chart axis parameters.
The collection class used by KD Chart to store data region information.
A chart painter implementation that can paint line charts.
virtual ~KDChartLinesPainter()
Destructor.
TQPoint project(int x, int y, int z)
virtual void paintData(TQPainter *painter, KDChartTableDataBase *data, bool paint2nd, KDChartDataRegionList *regions=0)
Paints the actual data area.
virtual void specificPaintData(TQPainter *painter, const TQRect &ourClipRect, KDChartTableDataBase *data, KDChartDataRegionList *regions, const KDChartAxisParams *axisPara, bool bNormalMode, uint chart, double logWidth, double areaWidthP1000, double logHeight, double axisYOffset, double minColumnValue, double maxColumnValue, double columnValueDistance, uint chartDatasetStart, uint chartDatasetEnd, uint datasetStart, uint datasetEnd)
An abstract base class that defines an interface for classes that implement chart drawing.
Bundles the display parameters of a chart.
ChartType
The chart type.
KD Chart's build-in table data for an easy way of storing data values.