source: ntrip/trunk/BNC/qwt/qwt_plot_graphicitem.h

Last change on this file was 11158, checked in by stuerze, 3 days ago

deprecated functions exchanged libs updated

File size: 1.5 KB
Line 
1/******************************************************************************
2 * Qwt Widget Library
3 * Copyright (C) 1997 Josef Wilgen
4 * Copyright (C) 2002 Uwe Rathmann
5 *
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 *****************************************************************************/
9
10#ifndef QWT_PLOT_GRAPHIC_ITEM_H
11#define QWT_PLOT_GRAPHIC_ITEM_H
12
13#include "qwt_global.h"
14#include "qwt_plot_item.h"
15
16#include <qstring.h>
17
18/*!
19 \brief A plot item, which displays
20 a recorded sequence of QPainter commands
21
22 QwtPlotGraphicItem renders a sequence of recorded painter commands
23 into a specific plot area. Recording of painter commands can be
24 done manually by QPainter or e.g. QSvgRenderer.
25
26 \sa QwtPlotShapeItem, QwtPlotSvgItem
27 */
28
29class QWT_EXPORT QwtPlotGraphicItem : public QwtPlotItem
30{
31 public:
32 explicit QwtPlotGraphicItem( const QString& title = QString() );
33 explicit QwtPlotGraphicItem( const QwtText& title );
34
35 virtual ~QwtPlotGraphicItem();
36
37 void setGraphic( const QRectF& rect, const QwtGraphic& );
38 QwtGraphic graphic() const;
39
40 virtual QRectF boundingRect() const QWT_OVERRIDE;
41
42 virtual void draw( QPainter*,
43 const QwtScaleMap& xMap, const QwtScaleMap& yMap,
44 const QRectF& canvasRect ) const QWT_OVERRIDE;
45
46 virtual int rtti() const QWT_OVERRIDE;
47
48 private:
49 void init();
50
51 class PrivateData;
52 PrivateData* m_data;
53};
54
55#endif
Note: See TracBrowser for help on using the repository browser.