3rdparty
qwt
src
qwt_plot_zoneitem.h
Go to the documentation of this file.
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_ZONE_ITEM_H
11
#define QWT_PLOT_ZONE_ITEM_H
12
13
#include "
qwt_global.h
"
14
#include "
qwt_plot_item.h
"
15
16
#include <qnamespace.h>
17
18
class
QwtInterval
;
19
class
QPen;
20
class
QBrush;
21
33
class
QWT_EXPORT
QwtPlotZoneItem
:
34
public
QwtPlotItem
35
{
36
public
:
37
explicit
QwtPlotZoneItem
();
38
virtual
~
QwtPlotZoneItem
();
39
40
virtual
int
rtti
()
const
QWT_OVERRIDE
;
41
42
void
setOrientation( Qt::Orientation );
43
Qt::Orientation orientation()
const
;
44
45
void
setInterval(
double
min,
double
max );
46
void
setInterval(
const
QwtInterval
& );
47
QwtInterval
interval()
const
;
48
49
void
setPen(
const
QColor&, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
50
void
setPen(
const
QPen& );
51
const
QPen& pen()
const
;
52
53
void
setBrush(
const
QBrush& );
54
const
QBrush& brush()
const
;
55
56
virtual
void
draw
( QPainter*,
57
const
QwtScaleMap
&,
const
QwtScaleMap
&,
58
const
QRectF& canvasRect )
const
QWT_OVERRIDE
;
59
60
virtual
QRectF
boundingRect
()
const
QWT_OVERRIDE
;
61
62
private
:
63
class
PrivateData
;
64
PrivateData
*
m_data
;
65
};
66
67
#endif
QwtPlotItem::draw
virtual void draw(QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect) const =0
Draw the item.
qwt_global.h
QwtPlotItem::boundingRect
virtual QRectF boundingRect() const
Definition:
qwt_plot_item.cpp:568
QwtInterval
A class representing an interval.
Definition:
qwt_interval.h:22
QwtPlotItem
Base class for items on the plot canvas.
Definition:
qwt_plot_item.h:66
QwtScaleMap
A scale map.
Definition:
qwt_scale_map.h:26
QwtPlotZoneItem
A plot item, which displays a zone.
Definition:
qwt_plot_zoneitem.h:33
QwtPlotZoneItem::PrivateData
Definition:
qwt_plot_zoneitem.cpp:18
QWT_OVERRIDE
#define QWT_OVERRIDE
Definition:
qwt_global.h:53
QWT_EXPORT
#define QWT_EXPORT
Definition:
qwt_global.h:38
qwt_plot_item.h
QwtPlotZoneItem::m_data
PrivateData * m_data
Definition:
qwt_plot_zoneitem.h:63
QwtPlotItem::rtti
virtual int rtti() const
Definition:
qwt_plot_item.cpp:136
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:46