17#ifndef QGSHISTOGRAMWIDGET_H
18#define QGSHISTOGRAMWIDGET_H
20#include "ui_qgshistogramwidgetbase.h"
36class QwtPlotHistogram;
87 void setPen(
const QPen &pen ) { mPen = pen; }
94 QPen
pen()
const {
return mPen; }
103 void setBrush(
const QBrush &brush ) { mBrush = brush; }
110 QBrush
brush()
const {
return mBrush; }
163 void refreshValues();
183 void setSourceFieldExp(
const QString &fieldOrExp );
189 virtual void drawHistogram();
191 QwtPlot *mPlot =
nullptr;
197 QString mSourceFieldExp;
198 QList<double> mValues;
201 QVector<QColor> mHistoColors;
210 void clearHistogram();
212 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