qwt_plot_zoneitem.h
Go to the documentation of this file.
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 
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() const;
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;
63 };
64 
65 #endif
virtual void draw(QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect) const =0
Draw the item.
virtual int rtti() const
PrivateData * d_data
A class representing an interval.
Definition: qwt_interval.h:26
#define QWT_EXPORT
Definition: qwt_global.h:38
A scale map.
Definition: qwt_scale_map.h:30
A plot item, which displays a zone.
int min(int a, int b)
Base class for items on the plot canvas.
Definition: qwt_plot_item.h:64
virtual QRectF boundingRect() const


plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:17