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
QList< QgsRendererRange > QgsRangeList
Calculator for a numeric histogram from a list of values.
Calculator for summary statistics for a list of doubles.
Represents a vector layer which manages a vector based data sets.