Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_plot_seriesitem.h
- Timestamp:
- Nov 3, 2026, 10:53:35 AM (3 weeks ago)
- File:
-
- 1 edited
-
trunk/BNC/qwt/qwt_plot_seriesitem.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_plot_seriesitem.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 #include "qwt_series_data.h"17 15 #include "qwt_series_store.h" 18 16 17 #include <qstring.h> 18 19 class QwtScaleDiv; 20 19 21 /*! 20 \brief Base class for plot items representing a series of samples 21 */ 22 class QWT_EXPORT QwtPlotSeriesItem: public QwtPlotItem, 22 \brief Base class for plot items representing a series of samples 23 */ 24 class QWT_EXPORT QwtPlotSeriesItem : public QwtPlotItem, 23 25 public virtual QwtAbstractSeriesStore 24 26 { 25 public: 26 explicit QwtPlotSeriesItem( const QString &title = QString() );27 explicit QwtPlotSeriesItem( const QwtText &title );27 public: 28 explicit QwtPlotSeriesItem( const QString& title = QString() ); 29 explicit QwtPlotSeriesItem( const QwtText& title ); 28 30 29 31 virtual ~QwtPlotSeriesItem(); … … 32 34 Qt::Orientation orientation() const; 33 35 34 virtual void draw( QPainter *,35 const QwtScaleMap &xMap, const QwtScaleMap&yMap,36 const QRectF &) const;36 virtual void draw( QPainter*, 37 const QwtScaleMap& xMap, const QwtScaleMap& yMap, 38 const QRectF& canvasRect ) const QWT_OVERRIDE; 37 39 38 40 /*! 39 Draw a subset of the samples 41 Draw a subset of the samples 40 42 41 \param painter Painter 42 \param xMap Maps x-values into pixel coordinates. 43 \param yMap Maps y-values into pixel coordinates. 44 \param canvasRect Contents rectangle of the canvas 45 \param from Index of the first point to be painted 46 \param to Index of the last point to be painted. If to < 0 the 43 \param painter Painter 44 \param xMap Maps x-values into pixel coordinates. 45 \param yMap Maps y-values into pixel coordinates. 46 \param canvasRect Contents rectangle of the canvas 47 \param from Index of the first point to be painted 48 \param to Index of the last point to be painted. If to < 0 the 47 49 curve will be painted to its last point. 48 */ 49 virtual void drawSeries( QPainter *painter,50 const QwtScaleMap &xMap, const QwtScaleMap&yMap,51 const QRectF &canvasRect, int from, int to ) const = 0;50 */ 51 virtual void drawSeries( QPainter* painter, 52 const QwtScaleMap& xMap, const QwtScaleMap& yMap, 53 const QRectF& canvasRect, int from, int to ) const = 0; 52 54 53 virtual QRectF boundingRect() const; 55 virtual QRectF boundingRect() const QWT_OVERRIDE; 54 56 55 57 virtual void updateScaleDiv( 56 const QwtScaleDiv &, const QwtScaleDiv& );58 const QwtScaleDiv&, const QwtScaleDiv& ) QWT_OVERRIDE; 57 59 58 protected: 59 virtual void dataChanged(); 60 protected: 61 virtual void dataChanged() QWT_OVERRIDE; 60 62 61 private: 63 private: 62 64 class PrivateData; 63 PrivateData *d_data;65 PrivateData* m_data; 64 66 }; 65 67
Note:
See TracChangeset
for help on using the changeset viewer.
