1
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
3
* Copyright (C) 1997 Josef Wilgen
4
* Copyright (C) 2002 Uwe Rathmann
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the Qwt License, Version 1.0
8
*****************************************************************************/
10
#ifndef QWT_PLOT_SVGITEM_H
11
#define QWT_PLOT_SVGITEM_H
16
#include "qwt_double_rect.h"
17
#include "qwt_plot_item.h"
19
#if QT_VERSION >= 0x040100
25
\brief A plot item, which displays
26
data in Scalable Vector Graphics (SVG) format.
28
SVG images are often used to display maps
31
class QWT_EXPORT QwtPlotSvgItem: public QwtPlotItem
34
explicit QwtPlotSvgItem(const QString& title = QString::null );
35
explicit QwtPlotSvgItem(const QwtText& title );
36
virtual ~QwtPlotSvgItem();
38
bool loadFile(const QwtDoubleRect&, const QString &fileName);
39
bool loadData(const QwtDoubleRect&, const QByteArray &);
41
virtual QwtDoubleRect boundingRect() const;
43
virtual void draw(QPainter *p,
44
const QwtScaleMap &xMap, const QwtScaleMap &yMap,
45
const QRect &rect) const;
47
virtual int rtti() const;
50
#if QT_VERSION >= 0x040100
51
const QSvgRenderer &renderer() const;
52
QSvgRenderer &renderer();
55
void render(QPainter *painter,
56
const QwtDoubleRect &viewBox, const QRect &rect) const;
57
QwtDoubleRect viewBox(const QwtDoubleRect &area) const;