Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_plot_grid.h
- Timestamp:
- Nov 3, 2026, 10:53:35 AM (3 weeks ago)
- File:
-
- 1 edited
-
trunk/BNC/qwt/qwt_plot_grid.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_plot_grid.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_scale_div.h"16 15 17 16 class QPainter; … … 21 20 22 21 /*! 23 \brief A class which draws a coordinate grid 22 \brief A class which draws a coordinate grid 24 23 25 The QwtPlotGrid class can be used to draw a coordinate grid. 26 A coordinate grid consists of major and minor vertical 27 and horizontal grid lines. The locations of the grid lines 28 are determined by the X and Y scale divisions which can 29 be assigned with setXDiv() and setYDiv(). 30 The draw() member draws the grid within a bounding 31 rectangle. 32 */ 24 The QwtPlotGrid class can be used to draw a coordinate grid. 25 A coordinate grid consists of major and minor vertical 26 and horizontal grid lines. The locations of the grid lines 27 are determined by the X and Y scale divisions which can 28 be assigned with setXDiv() and setYDiv(). 29 The draw() member draws the grid within a bounding 30 rectangle. 31 */ 33 32 34 class QWT_EXPORT QwtPlotGrid: public QwtPlotItem 33 class QWT_EXPORT QwtPlotGrid : public QwtPlotItem 35 34 { 36 public: 35 public: 37 36 explicit QwtPlotGrid(); 38 37 virtual ~QwtPlotGrid(); 39 38 40 virtual int rtti() const; 39 virtual int rtti() const QWT_OVERRIDE; 41 40 42 41 void enableX( bool ); … … 52 51 bool yMinEnabled() const; 53 52 54 void setXDiv( const QwtScaleDiv & );55 const QwtScaleDiv &xScaleDiv() const;53 void setXDiv( const QwtScaleDiv& ); 54 const QwtScaleDiv& xScaleDiv() const; 56 55 57 void setYDiv( const QwtScaleDiv & );58 const QwtScaleDiv &yScaleDiv() const;56 void setYDiv( const QwtScaleDiv& ); 57 const QwtScaleDiv& yScaleDiv() const; 59 58 60 void setPen( const QColor &, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );61 void setPen( const QPen &);59 void setPen( const QColor&, 60 qreal width = 0.0, Qt::PenStyle = Qt::SolidLine ); 62 61 63 void setMajorPen( const QColor &, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine ); 64 void setMajorPen( const QPen & ); 62 void setPen( const QPen& ); 63 64 void setMajorPen( const QColor&, 65 qreal width = 0.0, Qt::PenStyle = Qt::SolidLine ); 66 67 void setMajorPen( const QPen& ); 65 68 const QPen& majorPen() const; 66 69 67 void setMinorPen( const QColor &, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );68 void setMinorPen( const QPen & );70 void setMinorPen( const QColor&, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine ); 71 void setMinorPen( const QPen& ); 69 72 const QPen& minorPen() const; 70 73 71 virtual void draw( QPainter *,72 const QwtScaleMap &xMap, const QwtScaleMap&yMap,73 const QRectF &canvasRect ) const;74 virtual void draw( QPainter*, 75 const QwtScaleMap& xMap, const QwtScaleMap& yMap, 76 const QRectF& canvasRect ) const QWT_OVERRIDE; 74 77 75 78 virtual void updateScaleDiv( 76 const QwtScaleDiv &xScaleDiv, const QwtScaleDiv&yScaleDiv );79 const QwtScaleDiv& xScaleDiv, const QwtScaleDiv& yScaleDiv ) QWT_OVERRIDE; 77 80 78 private: 79 void drawLines( QPainter *, const QRectF&,80 Qt::Orientation, const QwtScaleMap &,81 const QList< double>& ) const;81 private: 82 void drawLines( QPainter*, const QRectF&, 83 Qt::Orientation, const QwtScaleMap&, 84 const QList< double >& ) const; 82 85 83 86 class PrivateData; 84 PrivateData *d_data;87 PrivateData* m_data; 85 88 }; 86 89
Note:
See TracChangeset
for help on using the changeset viewer.
