17#ifndef QGSHISTOGRAMWIDGET_H
18#define QGSHISTOGRAMWIDGET_H
20#include "ui_qgshistogramwidgetbase.h"
36class QwtPlotHistogram;
88 void setPen(
const QPen &pen ) { mPen = pen; }
95 QPen
pen()
const {
return mPen; }
104 void setBrush(
const QBrush &brush ) { mBrush = brush; }
111 QBrush
brush()
const {
return mBrush; }
164 void refreshValues();
184 void setSourceFieldExp(
const QString &fieldOrExp );
191 virtual void drawHistogram();
193 QwtPlot *mPlot =
nullptr;
200 QString mSourceFieldExp;
201 QList<double> mValues;
204 QVector<QColor> mHistoColors;
213 void clearHistogram();
215 QwtPlotHistogram *createPlotHistogram(
const QString &title,
const QBrush &brush,
const QPen &pen = Qt::NoPen )
const;
A vector feature renderer which uses numeric attributes to classify features into different ranges.
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.
QList< QgsRendererRange > QgsRangeList