Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_plot_renderer.h
- Timestamp:
- Nov 3, 2026, 10:53:35 AM (3 weeks ago)
- File:
-
- 1 edited
-
trunk/BNC/qwt/qwt_plot_renderer.h (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_plot_renderer.h
r9383 r11158 1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*-*****************************1 /****************************************************************************** 2 2 * Qwt Widget Library 3 3 * Copyright (C) 1997 Josef Wilgen … … 12 12 13 13 #include "qwt_global.h" 14 #include "qwt_axis_id.h" 15 14 16 #include <qobject.h> 15 17 #include <qsize.h> … … 34 36 \brief Renderer for exporting a plot to a document, a printer 35 37 or anything else, that is supported by QPainter/QPaintDevice 36 */ 37 class QWT_EXPORT QwtPlotRenderer: public QObject 38 */ 39 class QWT_EXPORT QwtPlotRenderer : public QObject 38 40 { 39 41 Q_OBJECT 40 42 41 public: 42 //! Disard flags 43 public: 44 //! Discard flags 43 45 enum DiscardFlag 44 46 { … … 72 74 }; 73 75 74 //! Disard flags 75 typedef QFlags<DiscardFlag> DiscardFlags; 76 Q_DECLARE_FLAGS( DiscardFlags, DiscardFlag ) 76 77 77 78 /*! … … 85 86 86 87 /*! 87 Instead of the scales a box is painted around the plot canvas, 88 where the scale ticks are aligned to. 88 Instead of the scales a box is painted around the plot canvas, 89 where the scale ticks are aligned to. 89 90 */ 90 91 FrameWithScales = 0x01 91 92 }; 92 93 93 //! Layout flags 94 typedef QFlags<LayoutFlag> LayoutFlags; 94 Q_DECLARE_FLAGS( LayoutFlags, LayoutFlag ) 95 95 96 explicit QwtPlotRenderer( QObject * = NULL );96 explicit QwtPlotRenderer( QObject* = NULL ); 97 97 virtual ~QwtPlotRenderer(); 98 98 … … 109 109 LayoutFlags layoutFlags() const; 110 110 111 void renderDocument( QwtPlot *, const QString&fileName,112 const QSizeF &sizeMM, int resolution = 85 );111 void renderDocument( QwtPlot*, const QString& fileName, 112 const QSizeF& sizeMM, int resolution = 85 ); 113 113 114 void renderDocument( QwtPlot *,115 const QString &fileName, const QString&format,116 const QSizeF &sizeMM, int resolution = 85 );114 void renderDocument( QwtPlot*, 115 const QString& fileName, const QString& format, 116 const QSizeF& sizeMM, int resolution = 85 ); 117 117 118 118 #ifndef QWT_NO_SVG 119 119 #ifdef QT_SVG_LIB 120 #if QT_VERSION >= 0x040500 121 void renderTo( QwtPlot *, QSvgGenerator & ) const; 122 #endif 120 void renderTo( QwtPlot*, QSvgGenerator& ) const; 123 121 #endif 124 122 #endif 125 123 126 124 #ifndef QT_NO_PRINTER 127 void renderTo( QwtPlot *, QPrinter& ) const;125 void renderTo( QwtPlot*, QPrinter& ) const; 128 126 #endif 129 127 130 void renderTo( QwtPlot *, QPaintDevice& ) const;128 void renderTo( QwtPlot*, QPaintDevice& ) const; 131 129 132 virtual void render( QwtPlot *,133 QPainter *, const QRectF&plotRect ) const;130 virtual void render( QwtPlot*, 131 QPainter*, const QRectF& plotRect ) const; 134 132 135 virtual void renderTitle( const QwtPlot *,136 QPainter *, const QRectF&titleRect ) const;133 virtual void renderTitle( const QwtPlot*, 134 QPainter*, const QRectF& titleRect ) const; 137 135 138 virtual void renderFooter( const QwtPlot *,139 QPainter *, const QRectF&footerRect ) const;136 virtual void renderFooter( const QwtPlot*, 137 QPainter*, const QRectF& footerRect ) const; 140 138 141 virtual void renderScale( const QwtPlot *, QPainter*,142 int axisId, int startDist, int endDist,143 int baseDist, const QRectF &scaleRect ) const;139 virtual void renderScale( const QwtPlot*, QPainter*, 140 QwtAxisId, int startDist, int endDist, 141 int baseDist, const QRectF& scaleRect ) const; 144 142 145 virtual void renderCanvas( const QwtPlot *,146 QPainter *, const QRectF&canvasRect,143 virtual void renderCanvas( const QwtPlot*, 144 QPainter*, const QRectF& canvasRect, 147 145 const QwtScaleMap* maps ) const; 148 146 149 147 virtual void renderLegend( 150 const QwtPlot *, QPainter*, const QRectF&legendRect ) const;148 const QwtPlot*, QPainter*, const QRectF& legendRect ) const; 151 149 152 bool exportTo( QwtPlot *, const QString&documentName,153 const QSizeF &sizeMM = QSizeF( 300, 200 ), int resolution = 85 );150 bool exportTo( QwtPlot*, const QString& documentName, 151 const QSizeF& sizeMM = QSizeF( 300, 200 ), int resolution = 85 ); 154 152 155 private: 156 void buildCanvasMaps( const QwtPlot *,157 const QRectF &, QwtScaleMap maps[] ) const;153 private: 154 void buildCanvasMaps( const QwtPlot*, 155 const QRectF&, QwtScaleMap maps[] ) const; 158 156 159 bool updateCanvasMargins( QwtPlot *,160 const QRectF &, const QwtScaleMap maps[] ) const;157 bool updateCanvasMargins( QwtPlot*, 158 const QRectF&, const QwtScaleMap maps[] ) const; 161 159 162 private: 160 private: 163 161 class PrivateData; 164 PrivateData *d_data;162 PrivateData* m_data; 165 163 }; 166 164
Note:
See TracChangeset
for help on using the changeset viewer.
