Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_plot_abstract_barchart.h
- Timestamp:
- Nov 3, 2026, 10:53:35 AM (3 weeks ago)
- File:
-
- 1 edited
-
trunk/BNC/qwt/qwt_plot_abstract_barchart.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_plot_abstract_barchart.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_seriesitem.h" 15 #include "qwt_series_data.h"16 15 17 16 /*! 18 \brief Abstract base class for bar chart items 17 \brief Abstract base class for bar chart items 19 18 20 In opposite to almost all other plot items bar charts can't be 21 displayed inside of their bounding rectangle and need a special 22 API how to calculate the width of the bars and how they affect 23 the layout of the attached plot. 19 In opposite to almost all other plot items bar charts can't be 20 displayed inside of their bounding rectangle and need a special 21 API how to calculate the width of the bars and how they affect 22 the layout of the attached plot. 24 23 */ 25 class QWT_EXPORT QwtPlotAbstractBarChart: public QwtPlotSeriesItem 24 class QWT_EXPORT QwtPlotAbstractBarChart : public QwtPlotSeriesItem 26 25 { 27 public: 26 public: 28 27 /*! 29 28 \brief Mode how to calculate the bar width … … 34 33 { 35 34 /*! 36 The sample width is calculated by dividing the bounding rectangle 37 by the number of samples. The layoutHint() is used as a minimum width 38 in paint device coordinates. 35 The sample width is calculated by dividing the bounding rectangle 36 by the number of samples. The layoutHint() is used as a minimum width 37 in paint device coordinates. 39 38 40 \sa boundingRectangle() 39 \sa boundingRectangle() 41 40 */ 42 41 AutoAdjustSamples, 43 42 44 43 /*! 45 layoutHint() defines an interval in axis coordinates 44 layoutHint() defines an interval in axis coordinates 46 45 */ 47 46 ScaleSamplesToAxes, 48 47 49 48 /*! 50 The bar width is calculated by multiplying layoutHint() 51 with the height or width of the canvas. 49 The bar width is calculated by multiplying layoutHint() 50 with the height or width of the canvas. 52 51 53 \sa boundingRectangle() 52 \sa boundingRectangle() 54 53 */ 55 54 ScaleSampleToCanvas, 56 55 57 56 /*! 58 layoutHint() defines a fixed width in paint device coordinates. 57 layoutHint() defines a fixed width in paint device coordinates. 59 58 */ 60 59 FixedSampleSize 61 60 }; 62 61 63 explicit QwtPlotAbstractBarChart( const QwtText &title );62 explicit QwtPlotAbstractBarChart( const QwtText& title ); 64 63 virtual ~QwtPlotAbstractBarChart(); 65 64 … … 80 79 81 80 virtual void getCanvasMarginHint( 82 const QwtScaleMap &xMap, const QwtScaleMap&yMap,83 const QRectF &canvasRect,84 double &left, double &top, double &right, double&bottom) const;81 const QwtScaleMap& xMap, const QwtScaleMap& yMap, 82 const QRectF& canvasRect, double& left, double& top, 83 double& right, double& bottom) const QWT_OVERRIDE; 85 84 86 85 87 protected: 88 double sampleWidth( const QwtScaleMap &map,86 protected: 87 double sampleWidth( const QwtScaleMap& map, 89 88 double canvasSize, double boundingSize, 90 89 double value ) const; 91 90 92 private: 91 private: 93 92 class PrivateData; 94 PrivateData *d_data;93 PrivateData* m_data; 95 94 }; 96 95
Note:
See TracChangeset
for help on using the changeset viewer.
