Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_plot_zoneitem.h
- Timestamp:
- Nov 3, 2026, 10:53:35 AM (3 weeks ago)
- File:
-
- 1 edited
-
trunk/BNC/qwt/qwt_plot_zoneitem.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_plot_zoneitem.h
r9383 r11158 1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*-*****************************1 /****************************************************************************** 2 2 * Qwt Widget Library 3 3 * Copyright (C) 1997 Josef Wilgen … … 13 13 #include "qwt_global.h" 14 14 #include "qwt_plot_item.h" 15 #include "qwt_interval.h"16 15 16 #include <qnamespace.h> 17 18 class QwtInterval; 17 19 class QPen; 18 20 class QBrush; 19 21 20 22 /*! 21 \brief A plot item, which displays a zone 23 \brief A plot item, which displays a zone 22 24 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. 25 A horizontal zone highlights an interval of the y axis - a vertical 26 zone an interval of the x axis - and is unbounded in the opposite direction. 27 It is filled with a brush and its border lines are optionally displayed with a pen. 26 28 27 \note For displaying an area that is bounded for x and y coordinates 29 \note For displaying an area that is bounded for x and y coordinates 28 30 use QwtPlotShapeItem 29 */ 31 */ 30 32 31 class QWT_EXPORT QwtPlotZoneItem: 33 class QWT_EXPORT QwtPlotZoneItem : 32 34 public QwtPlotItem 33 35 { 34 public: 36 public: 35 37 explicit QwtPlotZoneItem(); 36 38 virtual ~QwtPlotZoneItem(); 37 39 38 virtual int rtti() const; 40 virtual int rtti() const QWT_OVERRIDE; 39 41 40 42 void setOrientation( Qt::Orientation ); 41 Qt::Orientation orientation(); 43 Qt::Orientation orientation() const; 42 44 43 45 void setInterval( double min, double max ); 44 void setInterval( const QwtInterval & );46 void setInterval( const QwtInterval& ); 45 47 QwtInterval interval() const; 46 48 47 void setPen( const QColor &, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );48 void setPen( const QPen & );49 const QPen &pen() const;49 void setPen( const QColor&, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine ); 50 void setPen( const QPen& ); 51 const QPen& pen() const; 50 52 51 void setBrush( const QBrush & );52 const QBrush &brush() const;53 void setBrush( const QBrush& ); 54 const QBrush& brush() const; 53 55 54 virtual void draw( QPainter *,55 const QwtScaleMap &, const QwtScaleMap&,56 const QRectF &) const;56 virtual void draw( QPainter*, 57 const QwtScaleMap&, const QwtScaleMap&, 58 const QRectF& canvasRect ) const QWT_OVERRIDE; 57 59 58 virtual QRectF boundingRect() const; 60 virtual QRectF boundingRect() const QWT_OVERRIDE; 59 61 60 private: 62 private: 61 63 class PrivateData; 62 PrivateData *d_data;64 PrivateData* m_data; 63 65 }; 64 66
Note:
See TracChangeset
for help on using the changeset viewer.
