source: ntrip/trunk/BNC/qwt/qwt_plot_zoneitem.h@ 10488

Last change on this file since 10488 was 9383, checked in by stoecker, 4 years ago

update to qwt verion 6.1.1 to fix build with newer Qt5

File size: 1.7 KB
Line 
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
17class QPen;
18class QBrush;
19
20/*!
21 \brief A plot item, which displays a zone
22
23 A horizontal zone highlights an interval of the y axis - a vertical
24 zone an interval of the x axis - and is unbounded in the opposite direction.
25 It is filled with a brush and its border lines are optionally displayed with a pen.
26
27 \note For displaying an area that is bounded for x and y coordinates
28 use QwtPlotShapeItem
29*/
30
31class QWT_EXPORT QwtPlotZoneItem:
32 public QwtPlotItem
33{
34public:
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
60private:
61 class PrivateData;
62 PrivateData *d_data;
63};
64
65#endif
Note: See TracBrowser for help on using the repository browser.