Qwt User's Guide 6.1.1

- Main Page
- Related Pages
- Classes

All Classes Functions Variables Typedefs Enumerations Enumerator Pages
qwt_plot_zoneitem.h
1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2 * Qwt Widget Library
3 * Copyright (C) 1997 Josef Wilgen
4 * Copyright (C) 2002 Uwe Rathmann
5 *
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 *****************************************************************************/
9
10 #ifndef QWT_PLOT_ZONE_ITEM_H
11 #define QWT_PLOT_ZONE_ITEM_H
12
13 #include "qwt_global.h"
14 #include "qwt_plot_item.h"
15 #include "qwt_interval.h"
16
17 class QPen;
18 class QBrush;
19
31 class QWT_EXPORT QwtPlotZoneItem:
32 public QwtPlotItem
33 {
34 public:
35 explicit QwtPlotZoneItem();
36 virtual ~QwtPlotZoneItem();
37
38 virtual int rtti() const;
39
40 void setOrientation( Qt::Orientation );
41 Qt::Orientation orientation();
42
43 void setInterval( double min, double max );
44 void setInterval( const QwtInterval & );
45 QwtInterval interval() const;
46
47 void setPen( const QColor &, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
48 void setPen( const QPen & );
49 const QPen &pen() const;
50
51 void setBrush( const QBrush & );
52 const QBrush &brush() const;
53
54 virtual void draw( QPainter *,
55 const QwtScaleMap &, const QwtScaleMap &,
56 const QRectF &) const;
57
58 virtual QRectF boundingRect() const;
59
60 private:
61 class PrivateData;
62 PrivateData *d_data;
63 };
64
65 #endif
QwtPlotItem::draw
virtual void draw(QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect) const =0
Draw the item.
QwtPlotItem
Base class for items on the plot canvas.
Definition: qwt_plot_item.h:64
QwtScaleMap
A scale map.
Definition: qwt_scale_map.h:30
QwtPlotItem::rtti
virtual int rtti() const
Definition: qwt_plot_item.cpp:120
QwtPlotItem::boundingRect
virtual QRectF boundingRect() const
Definition: qwt_plot_item.cpp:537
QwtPlotZoneItem
A plot item, which displays a zone.
Definition: qwt_plot_zoneitem.h:31
QwtInterval
A class representing an interval.
Definition: qwt_interval.h:26