3
$Id: KDChartPolarPainter.h,v 1.1.2.1 2001/12/08 12:20:07 khz Exp $
5
KDChart - a multi-platform charting engine
7
Copyright (C) 2001 by Klar�lvdalens Datakonsult AB
2
KDChart - a multi-platform charting engine
5
/****************************************************************************
6
** Copyright (C) 2001-2003 Klar�lvdalens Datakonsult AB. All rights reserved.
8
** This file is part of the KDChart library.
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.
15
** Licensees holding valid commercial KDChart licenses may use this file in
16
** accordance with the KDChart Commercial License Agreement provided with
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.
22
** See http://www.klaralvdalens-datakonsult.se/?page=products for
23
** information about KDChart Commercial License Agreements.
25
** Contact info@klaralvdalens-datakonsult.se if any conditions of this
26
** licensing are not clear to you.
28
**********************************************************************/
10
29
#ifndef __KDCHARTPOLARPAINTER_H__
11
30
#define __KDCHARTPOLARPAINTER_H__
19
38
friend class KDChartPainter;
22
41
KDChartPolarPainter( KDChartParams* params );
23
42
virtual ~KDChartPolarPainter();
25
virtual void paintData( QPainter* painter, KDChartTableData* data,
27
KDChartDataRegionList* regions = 0 );
28
void drawMarker( QPainter* painter,
44
virtual void paintData( QPainter* painter,
45
KDChartTableDataBase* data,
47
KDChartDataRegionList* regions = 0 );
48
void drawMarker( QPainter* painter,
29
49
KDChartParams::PolarMarkerStyle style,
30
50
const QColor& color, const QPoint& p,
31
51
uint dataset, uint value, uint chart,
32
52
double minSizeP1000,
33
53
QRegion & region );
34
virtual QString fallbackLegendText( uint dataset ) const;
35
virtual uint numLegendFallbackTexts( KDChartTableData* data ) const;
54
virtual QString fallbackLegendText( uint dataset ) const;
55
virtual uint numLegendFallbackTexts( KDChartTableDataBase* data ) const;
38
QPoint polarToXY( int radius, int angle );
39
void paintCircularAxisLabel( QPainter* painter,
43
double currentRadiusPPU,
58
QPoint polarToXY( int radius, int angle );
59
void paintCircularAxisLabel( QPainter* painter,
63
double currentRadiusPPU,