Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_plot_svgitem.h


Ignore:
Timestamp:
Nov 3, 2026, 10:53:35 AM (3 weeks ago)
Author:
stuerze
Message:

deprecated functions exchanged libs updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/qwt/qwt_plot_svgitem.h

    r9383 r11158  
    1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
     1/******************************************************************************
    22 * Qwt Widget Library
    33 * Copyright (C) 1997   Josef Wilgen
    … …  
    88 *****************************************************************************/
    99
    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
    1212
    1313#include "qwt_global.h"
    14 #include "qwt_plot_item.h"
    15 #include <qstring.h>
     14#include "qwt_plot_graphicitem.h"
    1615
    17 class QSvgRenderer;
    1816class QByteArray;
    1917
    2018/*!
    21   \brief A plot item, which displays
     19   \brief A plot item, which displays
    2220         data in Scalable Vector Graphics (SVG) format.
    2321
    24   SVG images are often used to display maps
    25 */
     22   SVG images are often used to display maps
    2623
    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
     28class QWT_EXPORT QwtPlotSvgItem : public QwtPlotGraphicItem
    2829{
    29 public:
     30  public:
    3031    explicit QwtPlotSvgItem( const QString& title = QString() );
    3132    explicit QwtPlotSvgItem( const QwtText& title );
    3233    virtual ~QwtPlotSvgItem();
    3334
    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& );
    5937};
    6038
Note: See TracChangeset for help on using the changeset viewer.