QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
qgsheatmaprendererwidget.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsheatmaprendererwidget.h
3  --------------------------
4  begin : November 2014
5  copyright : (C) 2014 Nyall Dawson
6  email : nyall dot dawson at gmail dot com
7  ***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 #ifndef QGSHEATMAPRENDERERWIDGET_H
16 #define QGSHEATMAPRENDERERWIDGET_H
17 
18 #include "ui_qgsheatmaprendererwidgetbase.h"
19 #include "qgsheatmaprenderer.h"
20 #include "qgsrendererv2widget.h"
21 
22 class QMenu;
23 
27 class GUI_EXPORT QgsHeatmapRendererWidget : public QgsRendererV2Widget, private Ui::QgsHeatmapRendererWidgetBase
28 {
29  Q_OBJECT
30 
31  public:
37  static QgsRendererV2Widget* create( QgsVectorLayer* layer, QgsStyleV2* style, QgsFeatureRendererV2* renderer );
38 
45 
47  virtual QgsFeatureRendererV2* renderer() override;
48 
49  void setMapCanvas( QgsMapCanvas* canvas ) override;
50 
51  protected:
53 
54  private slots:
55 
56  void applyColorRamp();
57  void on_mRadiusUnitWidget_changed();
58  void on_mRadiusSpinBox_valueChanged( double d );
59  void on_mMaxSpinBox_valueChanged( double d );
60  void on_mQualitySlider_valueChanged( int v );
61  void on_mInvertCheckBox_toggled( bool v );
62  void weightExpressionChanged( const QString& expression );
63 
64 };
65 
66 
67 #endif // QGSHEATMAPRENDERERWIDGET_H
void create(WId window, bool initializeWindow, bool destroyOldWindow)
Map canvas is a class for displaying all GIS data types on a canvas.
Definition: qgsmapcanvas.h:109
A renderer which draws points as a live heatmap.
Base class for renderer settings widgets.
Represents a vector layer which manages a vector based data sets.
virtual QgsFeatureRendererV2 * renderer()=0
return pointer to the renderer (no transfer of ownership)
virtual void setMapCanvas(QgsMapCanvas *canvas)
Sets the map canvas associated with the widget.