QGIS API Documentation  2.14.0-Essen
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 
24 class GUI_EXPORT QgsHeatmapRendererWidget : public QgsRendererV2Widget, private Ui::QgsHeatmapRendererWidgetBase
25 {
26  Q_OBJECT
27 
28  public:
34  static QgsRendererV2Widget* create( QgsVectorLayer* layer, QgsStyleV2* style, QgsFeatureRendererV2* renderer );
35 
42 
44  virtual QgsFeatureRendererV2* renderer() override;
45 
46  void setMapCanvas( QgsMapCanvas* canvas ) override;
47 
48  protected:
50 
51  private slots:
52 
53  void applyColorRamp();
54  void on_mRadiusUnitWidget_changed();
55  void on_mRadiusSpinBox_valueChanged( double d );
56  void on_mMaxSpinBox_valueChanged( double d );
57  void on_mQualitySlider_valueChanged( int v );
58  void on_mInvertCheckBox_toggled( bool v );
59  void weightExpressionChanged( const QString& expression );
60 
61 };
62 
63 
64 #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:105
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.