QwtPlotHistogram(3) | Qwt User's Guide | QwtPlotHistogram(3) |
QwtPlotHistogram - QwtPlotHistogram represents a series of samples, where an interval is associated with a value ( $y = f([x1,x2])$ ).
#include <qwt_plot_histogram.h>
Inherits QwtPlotSeriesItem, and QwtSeriesStore< QwtIntervalSample >.
enum HistogramStyle { Outline, Columns,
Lines, UserStyle = 100 }
QwtPlotHistogram (const QString
&title=QString())
QwtPlotHistogram (const QwtText &title)
virtual ~QwtPlotHistogram ()
Destructor. virtual int rtti () const
void setPen (const QColor &, qreal width=0.0,
Qt::PenStyle=Qt::SolidLine)
void setPen (const QPen &)
const QPen & pen () const
void setBrush (const QBrush &)
const QBrush & brush () const
void setSamples (const QVector< QwtIntervalSample > &)
void setSamples (QwtSeriesData< QwtIntervalSample >
*)
void setBaseline (double)
Set the value of the baseline. double baseline () const
void setStyle (HistogramStyle style)
HistogramStyle style () const
void setSymbol (const QwtColumnSymbol *)
Assign a symbol. const QwtColumnSymbol * symbol () const
virtual void drawSeries (QPainter *, const QwtScaleMap
&xMap, const QwtScaleMap &yMap, const QRectF &canvasRect,
int from, int to) const
virtual QRectF boundingRect () const
virtual QwtGraphic legendIcon (int index, const QSizeF &)
const
virtual QwtColumnRect columnRect (const
QwtIntervalSample &, const QwtScaleMap &, const
QwtScaleMap &) const
virtual void drawColumn (QPainter *, const QwtColumnRect &,
const QwtIntervalSample &) const
void drawColumns (QPainter *, const QwtScaleMap &xMap, const
QwtScaleMap &yMap, int from, int to) const
void drawOutline (QPainter *, const QwtScaleMap &xMap, const
QwtScaleMap &yMap, int from, int to) const
void drawLines (QPainter *, const QwtScaleMap &xMap, const
QwtScaleMap &yMap, int from, int to) const
QwtPlotHistogram represents a series of samples, where an interval is associated with a value ( $y = f([x1,x2])$ ).
The representation depends on the style() and an optional symbol() that is displayed for each interval.
Note:
See also:
Histogram styles. The default style is QwtPlotHistogram::Columns.
See also:
Enumerator
Constructor
Parameters:
Constructor
Parameters:
Returns:
See also:
Returns:
Reimplemented from QwtPlotSeriesItem.
Returns:
See also:
Calculate the area that is covered by a sample
Parameters:
Returns:
Draw a column for a sample in Columns style().
When a symbol() has been set the symbol is used otherwise the column is displayed as plain rectangle using pen() and brush().
Parameters:
Note:
Draw a histogram in Columns style()
Parameters:
See also:
Draw a histogram in Lines style()
Parameters:
See also:
Draw a histogram in Outline style()
Parameters:
See also:
Warning:
Draw a subset of the histogram samples
Parameters:
See also:
Implements QwtPlotSeriesItem.
A plain rectangle without pen using the brush()
Parameters:
Returns:
See also:
Reimplemented from QwtPlotItem.
Returns:
See also:
Returns:
Reimplemented from QwtPlotItem.
Set the value of the baseline. Each column representing an QwtIntervalSample is defined by its interval and the interval between baseline and the value of the sample.
The default value of the baseline is 0.0.
Parameters:
See also:
Assign a brush, that is used in a style() depending way.
Parameters:
See also:
Build and assign a pen
In Qt5 the default pen width is 1.0 ( 0.0 in Qt4 ) what makes it non cosmetic ( see QPen::isCosmetic() ). This method has been introduced to hide this incompatibility.
Parameters:
See also:
Assign a pen, that is used in a style() depending way.
Parameters:
See also:
Initialize data with an array of samples.
Parameters:
Assign a series of samples
setSamples() is just a wrapper for setData() without any additional value - beside that it is easier to find for the developer.
Parameters:
Warning:
Set the histogram's drawing style
Parameters:
See also:
Assign a symbol. In Column style an optional symbol can be assigned, that is responsible for displaying the rectangle that is defined by the interval and the distance between baseline() and value. When no symbol has been defined the area is displayed as plain rectangle using pen() and brush().
See also:
Note:
Returns:
See also:
Returns:
See also:
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Wed Jan 2 2019 | Version 6.1.4 |