15 #ifndef QGSHEATMAPRENDERER_H
16 #define QGSHEATMAPRENDERER_H
24 #include <QScopedPointer>
47 virtual QString
dump()
const override;
50 virtual QDomElement
save( QDomDocument& doc )
override;
89 double radius()
const {
return mRadius; }
96 void setRadius(
const double radius ) { mRadius = radius; }
172 QVector<double> mValues;
174 double mCalculatedMaxValue;
178 double mRadiusSquared;
182 QString mWeightExpressionString;
184 QScopedPointer<QgsExpression> mWeightExpression;
192 int mFeaturesRendered;
194 double uniformKernel(
const double distance,
const int bandwidth )
const;
195 double quarticKernel(
const double distance,
const int bandwidth )
const;
196 double triweightKernel(
const double distance,
const int bandwidth )
const;
197 double epanechnikovKernel(
const double distance,
const int bandwidth )
const;
198 double triangularKernel(
const double distance,
const int bandwidth )
const;
206 #endif // QGSHEATMAPRENDERER_H