Qwt User's Guide: qwt_plot_zoneitem.h Source File

Qwt User's Guide 6.2.0

qwt_plot_zoneitem.h
1 /******************************************************************************
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
16 #include <qnamespace.h>
17
18 class QwtInterval;
19 class QPen;
20 class QBrush;
21
33 class QWT_EXPORT QwtPlotZoneItem :
34 public QwtPlotItem
35 {
36 public:
37 explicit QwtPlotZoneItem();
38 virtual ~QwtPlotZoneItem();
39
40 virtual int rtti() const QWT_OVERRIDE;
41
42 void setOrientation( Qt::Orientation );
43 Qt::Orientation orientation() const;
44
45 void setInterval( double min, double max );
46 void setInterval( const QwtInterval& );
47 QwtInterval interval() const;
48
49 void setPen( const QColor&, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
50 void setPen( const QPen& );
51 const QPen& pen() const;
52
53 void setBrush( const QBrush& );
54 const QBrush& brush() const;
55
56 virtual void draw( QPainter*,
57 const QwtScaleMap&, const QwtScaleMap&,
58 const QRectF& canvasRect ) const QWT_OVERRIDE;
59
60 virtual QRectF boundingRect() const QWT_OVERRIDE;
61
62 private:
63 class PrivateData;
64 PrivateData* m_data;
65 };
66
67 #endif
QwtInterval
A class representing an interval.
Definition: qwt_interval.h:23
QwtPlotItem
Base class for items on the plot canvas.
Definition: qwt_plot_item.h:67
QwtPlotItem::draw
virtual void draw(QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect) const =0
Draw the item.
QwtPlotItem::rtti
virtual int rtti() const
Definition: qwt_plot_item.cpp:136
QwtPlotItem::boundingRect
virtual QRectF boundingRect() const
Definition: qwt_plot_item.cpp:568
QwtPlotZoneItem
A plot item, which displays a zone.
Definition: qwt_plot_zoneitem.h:35
QwtScaleMap
A scale map.
Definition: qwt_scale_map.h:27