Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
3rdparty
qwt
src
qwt_plot_graphicitem.h
Go to the documentation of this file.
1
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
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
29
class
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
*
d_data
;
53
};
54
55
#endif
qwt_plot_item.h
QwtPlotItem::draw
virtual void draw(QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect) const =0
Draw the item.
QwtPlotItem::rtti
virtual int rtti() const
Definition:
qwt_plot_item.cpp:136
QWT_EXPORT
#define QWT_EXPORT
Definition:
qwt_global.h:38
QwtPlotGraphicItem::PrivateData
Definition:
qwt_plot_graphicitem.cpp:16
QwtPlotGraphicItem
A plot item, which displays a recorded sequence of QPainter commands.
Definition:
qwt_plot_graphicitem.h:29
qwt_global.h
QwtText
A class representing a text.
Definition:
qwt_text.h:51
QwtGraphic
A paint device for scalable graphics.
Definition:
qwt_graphic.h:75
QwtScaleMap
A scale map.
Definition:
qwt_scale_map.h:26
QwtPlotItem
Base class for items on the plot canvas.
Definition:
qwt_plot_item.h:65
QWT_OVERRIDE
#define QWT_OVERRIDE
Definition:
qwt_global.h:53
QwtPlotGraphicItem::d_data
PrivateData * d_data
Definition:
qwt_plot_graphicitem.h:51
QwtPlotItem::boundingRect
virtual QRectF boundingRect() const
Definition:
qwt_plot_item.cpp:568
plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 03:48:10