Changeset 8127 in ntrip for trunk/BNC/qwt/qwt_plot_renderer.h
- Timestamp:
- May 10, 2017, 3:20:54 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_plot_renderer.h
r4271 r8127 13 13 #include "qwt_global.h" 14 14 #include <qobject.h> 15 #include <qsize.h> 15 16 16 17 class QwtPlot; 17 18 class QwtScaleMap; 18 class QSizeF;19 19 class QRectF; 20 20 class QPainter; … … 56 56 57 57 //! Don't render the background of the canvas 58 DiscardCanvasBackground = 0x08 58 DiscardCanvasBackground = 0x08, 59 60 //! Don't render the footer of the plot 61 DiscardFooter = 0x10, 62 63 /*! 64 Don't render the frame of the canvas 65 66 \note This flag has no effect when using 67 style sheets, where the frame is part 68 of the background 69 */ 70 DiscardCanvasFrame = 0x20 71 59 72 }; 60 73 … … 68 81 enum LayoutFlag 69 82 { 70 //! Use the default layout without margins and frames83 //! Use the default layout as on screen 71 84 DefaultLayout = 0x00, 72 73 //! Render all frames of the plot74 KeepFrames = 0x01,75 85 76 86 /*! … … 78 88 where the scale ticks are aligned to. 79 89 */ 80 FrameWithScales = 0x0 290 FrameWithScales = 0x01 81 91 }; 82 92 … … 99 109 LayoutFlags layoutFlags() const; 100 110 101 void renderDocument( QwtPlot *, const QString &f ormat,111 void renderDocument( QwtPlot *, const QString &fileName, 102 112 const QSizeF &sizeMM, int resolution = 85 ); 103 113 104 114 void renderDocument( QwtPlot *, 105 const QString & title, const QString &format,115 const QString &fileName, const QString &format, 106 116 const QSizeF &sizeMM, int resolution = 85 ); 107 117 … … 123 133 QPainter *, const QRectF &rect ) const; 124 134 125 virtual void render LegendItem( const QwtPlot *,126 QPainter *, const Q Widget *, const QRectF & ) const;135 virtual void renderTitle( const QwtPlot *, 136 QPainter *, const QRectF & ) const; 127 137 128 virtual void render Title( const QwtPlot *,138 virtual void renderFooter( const QwtPlot *, 129 139 QPainter *, const QRectF & ) const; 130 140 … … 140 150 const QwtPlot *, QPainter *, const QRectF & ) const; 141 151 142 protected: 152 bool exportTo( QwtPlot *, const QString &documentName, 153 const QSizeF &sizeMM = QSizeF( 300, 200 ), int resolution = 85 ); 154 155 private: 143 156 void buildCanvasMaps( const QwtPlot *, 144 157 const QRectF &, QwtScaleMap maps[] ) const; 158 159 bool updateCanvasMargins( QwtPlot *, 160 const QRectF &, const QwtScaleMap maps[] ) const; 145 161 146 162 private:
Note:
See TracChangeset
for help on using the changeset viewer.