1
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
3
* Copyright (C) 1997 Josef Wilgen
4
* Copyright (C) 2002 Uwe Rathmann
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the Qwt License, Version 1.0
8
*****************************************************************************/
10
#ifndef QWT_RADIAL_PLOT_ITEM_H
11
#define QWT_RADIAL_PLOT_ITEM_H
13
#include "qwt_global.h"
15
#include "qwt_double_rect.h"
25
\brief Base class for items on the plot canvas
28
class QWT_EXPORT QwtRadialPlotItem
33
Rtti_RadialPlotItem = 0,
37
Rtti_RadialPlotMarker,
40
Rtti_RadialPlotUserItem = 1000
48
#if QT_VERSION >= 0x040000
55
explicit QwtRadialPlotItem(const QwtText &title = QwtText());
56
virtual ~QwtRadialPlotItem();
58
void attach(QwtRadialPlot *plot);
61
\brief This method detaches a QwtRadialPlotItem from any QwtRadialPlot is has been
64
detach() is equivalent to calling attach( NULL )
65
\sa attach( QwtRadialPlot* plot )
67
void detach() { attach(NULL); }
69
QwtRadialPlot *plot() const;
71
void setTitle(const QString &title);
72
void setTitle(const QwtText &title);
73
const QwtText &title() const;
75
virtual int rtti() const;
77
void setItemAttribute(ItemAttribute, bool on = true);
78
bool testItemAttribute(ItemAttribute) const;
80
#if QT_VERSION >= 0x040000
81
void setRenderHint(RenderHint, bool on = true);
82
bool testRenderHint(RenderHint) const;
90
virtual void setVisible(bool);
91
bool isVisible () const;
93
virtual void itemChanged();
98
\param painter Painter
99
\param distanceMap Maps distance values into pixel coordinates.
100
\param angleMap Maps angle values into pixel coordinates.
101
\param canvasRect Contents rect of the canvas in painter coordinates
103
virtual void draw(QPainter *painter,
104
const QwtScaleMap &distanceMap, const QwtScaleMap &angleMap,
105
const QRect &canvasRect) const = 0;
107
virtual QwtDoubleRect boundingRect() const;
109
virtual void updateScaleDiv(const QwtScaleDiv&,
113
// Disabled copy constructor and operator=
114
QwtRadialPlotItem( const QwtRadialPlotItem & );
115
QwtRadialPlotItem &operator=( const QwtRadialPlotItem & );