Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_plot_svgitem.h
- Timestamp:
- Nov 3, 2026, 10:53:35 AM (3 weeks ago)
- File:
-
- 1 edited
-
trunk/BNC/qwt/qwt_plot_svgitem.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_plot_svgitem.h
r9383 r11158 1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*-*****************************1 /****************************************************************************** 2 2 * Qwt Widget Library 3 3 * Copyright (C) 1997 Josef Wilgen … … 8 8 *****************************************************************************/ 9 9 10 #ifndef QWT_PLOT_SVGITEM_H 11 #define QWT_PLOT_SVGITEM_H 10 #ifndef QWT_PLOT_SVG_ITEM_H 11 #define QWT_PLOT_SVG_ITEM_H 12 12 13 13 #include "qwt_global.h" 14 #include "qwt_plot_item.h" 15 #include <qstring.h> 14 #include "qwt_plot_graphicitem.h" 16 15 17 class QSvgRenderer;18 16 class QByteArray; 19 17 20 18 /*! 21 \brief A plot item, which displays 19 \brief A plot item, which displays 22 20 data in Scalable Vector Graphics (SVG) format. 23 21 24 SVG images are often used to display maps 25 */ 22 SVG images are often used to display maps 26 23 27 class QWT_EXPORT QwtPlotSvgItem: public QwtPlotItem 24 QwtPlotSvgItem is only a small convenience wrapper class for 25 QwtPlotGraphicItem, that creates a QwtGraphic from SVG data. 26 */ 27 28 class QWT_EXPORT QwtPlotSvgItem : public QwtPlotGraphicItem 28 29 { 29 public: 30 public: 30 31 explicit QwtPlotSvgItem( const QString& title = QString() ); 31 32 explicit QwtPlotSvgItem( const QwtText& title ); 32 33 virtual ~QwtPlotSvgItem(); 33 34 34 bool loadFile( const QRectF&, const QString &fileName ); 35 bool loadData( const QRectF&, const QByteArray & ); 36 37 virtual QRectF boundingRect() const; 38 39 virtual void draw( QPainter *, 40 const QwtScaleMap &xMap, const QwtScaleMap &yMap, 41 const QRectF &canvasRect ) const; 42 43 virtual int rtti() const; 44 45 protected: 46 const QSvgRenderer &renderer() const; 47 QSvgRenderer &renderer(); 48 49 void render( QPainter *, 50 const QRectF &viewBox, const QRectF &rect ) const; 51 52 QRectF viewBox( const QRectF &rect ) const; 53 54 private: 55 void init(); 56 57 class PrivateData; 58 PrivateData *d_data; 35 bool loadFile( const QRectF&, const QString& fileName ); 36 bool loadData( const QRectF&, const QByteArray& ); 59 37 }; 60 38
Note:
See TracChangeset
for help on using the changeset viewer.
