Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
qwt
src
qwt_plot_barchart.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_BAR_CHART_H
11
#define QWT_PLOT_BAR_CHART_H
12
13
#include "
qwt_global.h
"
14
#include "
qwt_plot_abstract_barchart.h
"
15
#include "
qwt_series_data.h
"
16
17
class
QwtColumnRect
;
18
class
QwtColumnSymbol
;
19
41
class
QWT_EXPORT
QwtPlotBarChart
:
42
public
QwtPlotAbstractBarChart
,
public
QwtSeriesStore
<QPointF>
43
{
44
public
:
51
enum
LegendMode
52
{
59
LegendChartTitle
,
60
67
LegendBarTitles
68
};
69
70
explicit
QwtPlotBarChart
(
const
QString &title = QString() );
71
explicit
QwtPlotBarChart
(
const
QwtText
&title );
72
73
virtual
~
QwtPlotBarChart
();
74
75
virtual
int
rtti
()
const
;
76
77
void
setSamples(
const
QVector<QPointF> & );
78
void
setSamples(
const
QVector<double> & );
79
void
setSamples(
QwtSeriesData<QPointF>
*series );
80
81
void
setSymbol(
QwtColumnSymbol
* );
82
const
QwtColumnSymbol
*symbol()
const
;
83
84
void
setLegendMode(
LegendMode
);
85
LegendMode
legendMode()
const
;
86
87
virtual
void
drawSeries
( QPainter *painter,
88
const
QwtScaleMap
&xMap,
const
QwtScaleMap
&yMap,
89
const
QRectF &canvasRect,
int
from,
int
to )
const
;
90
91
virtual
QRectF
boundingRect
()
const
;
92
93
virtual
QwtColumnSymbol
*specialSymbol(
94
int
sampleIndex,
const
QPointF& )
const
;
95
96
virtual
QwtText
barTitle(
int
sampleIndex )
const
;
97
98
protected
:
99
virtual
void
drawSample( QPainter *painter,
100
const
QwtScaleMap
&xMap,
const
QwtScaleMap
&yMap,
101
const
QRectF &canvasRect,
const
QwtInterval
&boundingInterval,
102
int
index,
const
QPointF& sample )
const
;
103
104
virtual
void
drawBar( QPainter *,
105
int
sampleIndex,
const
QPointF& point,
106
const
QwtColumnRect
& )
const
;
107
108
QwtColumnRect
columnRect(
109
const
QwtScaleMap
&xMap,
const
QwtScaleMap
&yMap,
110
const
QRectF &canvasRect,
const
QwtInterval
&boundingInterval,
111
const
QPointF& sample )
const
;
112
113
QList<QwtLegendData>
legendData
()
const
;
114
QwtGraphic
legendIcon
(
int
index,
const
QSizeF & )
const
;
115
116
private
:
117
void
init();
118
119
class
PrivateData
;
120
PrivateData
*
d_data
;
121
};
122
123
#endif
QwtPlotItem::legendData
virtual QList< QwtLegendData > legendData() const
Return all information, that is needed to represent the item on the legend.
Definition:
qwt_plot_item.cpp:595
QwtPlotItem::rtti
virtual int rtti() const
Definition:
qwt_plot_item.cpp:120
qwt_series_data.h
QwtInterval
A class representing an interval.
Definition:
qwt_interval.h:26
QwtPlotBarChart::LegendChartTitle
Definition:
qwt_plot_barchart.h:59
QWT_EXPORT
#define QWT_EXPORT
Definition:
qwt_global.h:38
QwtSeriesData< QPointF >
QwtColumnSymbol
A drawing primitive for columns.
Definition:
qwt_column_symbol.h:93
QwtPlotAbstractBarChart
Abstract base class for bar chart items.
Definition:
qwt_plot_abstract_barchart.h:25
QwtPlotBarChart::PrivateData
Definition:
qwt_plot_barchart.cpp:16
QwtPlotBarChart
QwtPlotBarChart displays a series of a values as bars.
Definition:
qwt_plot_barchart.h:41
qwt_global.h
QwtSeriesStore
Class storing a QwtSeriesData object.
Definition:
qwt_series_store.h:65
QwtPlotBarChart::d_data
PrivateData * d_data
Definition:
qwt_plot_barchart.h:119
QwtPlotSeriesItem::drawSeries
virtual void drawSeries(QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const =0
QwtText
A class representing a text.
Definition:
qwt_text.h:51
QwtGraphic
A paint device for scalable graphics.
Definition:
qwt_graphic.h:74
QwtPlotItem::legendIcon
virtual QwtGraphic legendIcon(int index, const QSizeF &) const
Definition:
qwt_plot_item.cpp:371
QwtPlotSeriesItem::boundingRect
virtual QRectF boundingRect() const
Definition:
qwt_plot_seriesitem.cpp:94
QwtScaleMap
A scale map.
Definition:
qwt_scale_map.h:30
QwtColumnRect
Directed rectangle representing bounding rectangle and orientation of a column.
Definition:
qwt_column_symbol.h:28
qwt_plot_abstract_barchart.h
QwtPlotBarChart::LegendMode
LegendMode
Legend modes.
Definition:
qwt_plot_barchart.h:51
plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:17