Graphical histogram for displaying distributions of field values.
More...
#include <qgshistogramwidget.h>
Graphical histogram for displaying distributions of field values.
- Since
- QGIS 2.9
Definition at line 49 of file qgshistogramwidget.h.
◆ QgsHistogramWidget()
QgsHistogramWidget::QgsHistogramWidget |
( |
QWidget * |
parent = nullptr , |
|
|
QgsVectorLayer * |
layer = nullptr , |
|
|
const QString & |
fieldOrExp = QString() |
|
) |
| |
QgsHistogramWidget constructor.
If layer and fieldOrExp are specified then the histogram will be initially populated with the corresponding values.
- Parameters
-
parent | parent widget |
layer | source vector layer |
fieldOrExp | field name or expression string |
Definition at line 42 of file qgshistogramwidget.cpp.
◆ ~QgsHistogramWidget()
QgsHistogramWidget::~QgsHistogramWidget |
( |
| ) |
|
|
override |
◆ brush()
QBrush QgsHistogramWidget::brush |
( |
| ) |
const |
|
inline |
◆ drawHistogram()
void QgsHistogramWidget::drawHistogram |
( |
| ) |
|
|
protectedvirtual |
◆ graduatedRanges()
Returns the graduated ranges associated with the histogram.
If set, the ranges will be used to color the histogram bars and for showing vertical dividers at the histogram breaks.
- Returns
- graduated range list
- See also
- setGraduatedRanges
Definition at line 128 of file qgshistogramwidget.h.
◆ layer()
◆ pen()
QPen QgsHistogramWidget::pen |
( |
| ) |
const |
|
inline |
◆ refresh
void QgsHistogramWidget::refresh |
( |
| ) |
|
|
slot |
◆ refreshValues
void QgsHistogramWidget::refreshValues |
( |
| ) |
|
|
slot |
Refreshes the values for the histogram by fetching them from the layer.
Definition at line 97 of file qgshistogramwidget.cpp.
◆ setBrush()
void QgsHistogramWidget::setBrush |
( |
const QBrush & |
brush | ) |
|
|
inline |
◆ setGraduatedRanges()
void QgsHistogramWidget::setGraduatedRanges |
( |
const QgsRangeList & |
ranges | ) |
|
Sets the graduated ranges associated with the histogram.
If set, the ranges will be used to color the histogram bars and for showing vertical dividers at the histogram breaks.
- Parameters
-
ranges | graduated range list |
- See also
- graduatedRanges
Definition at line 91 of file qgshistogramwidget.cpp.
◆ setLayer
◆ setPen()
void QgsHistogramWidget::setPen |
( |
const QPen & |
pen | ) |
|
|
inline |
Sets the pen to use when drawing histogram bars.
If set to Qt::NoPen then the pen will be automatically calculated. If ranges have been set using setGraduatedRanges() then the pen and brush will have no effect.
- Parameters
-
- See also
- pen
-
setBrush
Definition at line 89 of file qgshistogramwidget.h.
◆ setSourceFieldExp
void QgsHistogramWidget::setSourceFieldExp |
( |
const QString & |
fieldOrExp | ) |
|
|
slot |
Sets the source field or expression to use for values in the histogram.
- Parameters
-
fieldOrExp | field name or expression string |
- See also
- setLayer
Definition at line 162 of file qgshistogramwidget.cpp.
◆ setXAxisTitle()
void QgsHistogramWidget::setXAxisTitle |
( |
const QString & |
title | ) |
|
|
inline |
◆ setYAxisTitle()
void QgsHistogramWidget::setYAxisTitle |
( |
const QString & |
title | ) |
|
|
inline |
◆ sourceFieldExp()
QString QgsHistogramWidget::sourceFieldExp |
( |
| ) |
const |
|
inline |
◆ xAxisTitle()
QString QgsHistogramWidget::xAxisTitle |
( |
| ) |
const |
|
inline |
◆ yAxisTitle()
QString QgsHistogramWidget::yAxisTitle |
( |
| ) |
const |
|
inline |
◆ mPlot
QwtPlot* QgsHistogramWidget::mPlot = nullptr |
|
protected |
◆ mRangeMarkers
QList< QwtPlotMarker * > QgsHistogramWidget::mRangeMarkers |
|
protected |
◆ mRanges
The documentation for this class was generated from the following files: