QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
17 #ifndef QGSHISTOGRAMWIDGET_H
18 #define QGSHISTOGRAMWIDGET_H
20 #include "ui_qgshistogramwidgetbase.h"
36 class QwtPlotHistogram;
89 void setPen(
const QPen &pen ) { mPen = pen; }
96 QPen
pen()
const {
return mPen; }
105 void setBrush(
const QBrush &brush ) { mBrush = brush; }
112 QBrush
brush()
const {
return mBrush; }
165 void refreshValues();
185 void setSourceFieldExp(
const QString &fieldOrExp );
192 virtual void drawHistogram();
194 QwtPlot *mPlot =
nullptr;
201 QString mSourceFieldExp;
202 QList<double> mValues;
205 QVector<QColor> mHistoColors;
214 void clearHistogram();
216 QwtPlotHistogram *createPlotHistogram(
const QString &title,
const QBrush &brush,
const QPen &pen = Qt::NoPen )
const;
220 #endif //QGSHISTOGRAMWIDGET_H
Calculator for summary statistics for a list of doubles.
QList< QgsRendererRange > QgsRangeList
Calculator for a numeric histogram from a list of values.
Represents a vector layer which manages a vector based data sets.