Eneboo - Documentación para desarrolladores
|
A plot item, which displays data in Scalable Vector Graphics (SVG) format. Más...
#include <qwt_plot_svgitem.h>
Clases | |
class | PrivateData |
Métodos públicos | |
QwtPlotSvgItem (const QString &title=QString::null) | |
Constructor. | |
QwtPlotSvgItem (const QwtText &title) | |
Constructor. | |
virtual | ~QwtPlotSvgItem () |
Destructor. | |
bool | loadFile (const QwtDoubleRect &, const QString &fileName) |
bool | loadData (const QwtDoubleRect &, const QByteArray &) |
virtual QwtDoubleRect | boundingRect () const |
Bounding rect of the item. | |
virtual void | draw (QPainter *p, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRect &rect) const |
virtual int | rtti () const |
Métodos protegidos | |
void | render (QPainter *painter, const QwtDoubleRect &viewBox, const QRect &rect) const |
QwtDoubleRect | viewBox (const QwtDoubleRect &area) const |
A plot item, which displays data in Scalable Vector Graphics (SVG) format.
SVG images are often used to display maps
QwtPlotSvgItem::QwtPlotSvgItem | ( | const QString & | title = QString::null | ) | [explicit] |
Constructor.
Sets the following item attributes:
title | Title |
QwtPlotSvgItem::QwtPlotSvgItem | ( | const QwtText & | title | ) | [explicit] |
Constructor.
Sets the following item attributes:
title | Title |
QwtPlotSvgItem::~QwtPlotSvgItem | ( | ) | [virtual] |
Destructor.
QwtDoubleRect QwtPlotSvgItem::boundingRect | ( | ) | const [virtual] |
Bounding rect of the item.
Reimplementado de QwtPlotItem.
void QwtPlotSvgItem::draw | ( | QPainter * | painter, |
const QwtScaleMap & | xMap, | ||
const QwtScaleMap & | yMap, | ||
const QRect & | canvasRect | ||
) | const [virtual] |
Draw the SVG item
painter | Painter |
xMap | X-Scale Map |
yMap | Y-Scale Map |
canvasRect | Contents rect of the plot canvas |
Implementa QwtPlotItem.
bool QwtPlotSvgItem::loadData | ( | const QwtDoubleRect & | rect, |
const QByteArray & | data | ||
) |
Load SVG data
rect | Bounding rectangle |
data | in SVG format |
bool QwtPlotSvgItem::loadFile | ( | const QwtDoubleRect & | rect, |
const QString & | fileName | ||
) |
Load a SVG file
rect | Bounding rectangle |
fileName | SVG file name |
void QwtPlotSvgItem::render | ( | QPainter * | painter, |
const QwtDoubleRect & | viewBox, | ||
const QRect & | rect | ||
) | const [protected] |
Render the SVG data
painter | Painter |
viewBox | View Box, see QSvgRenderer::viewBox |
rect | Traget rectangle on the paint device |
int QwtPlotSvgItem::rtti | ( | ) | const [virtual] |
Reimplementado de QwtPlotItem.
QwtDoubleRect QwtPlotSvgItem::viewBox | ( | const QwtDoubleRect & | rect | ) | const [protected] |
Calculate the viewBox from an rect and boundingRect().
rect | Rectangle in scale coordinates |