QGIS API Documentation  3.26.3-Buenos Aires (65e4edfdad)
qgs25drendererwidget.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgs25drendererwidget.h - Qgs25DRendererWidget
3 
4  ---------------------
5  begin : 14.1.2016
6  copyright : (C) 2016 by Matthias Kuhn
7  email : [email protected]
8  ***************************************************************************
9  * *
10  * This program is free software; you can redistribute it and/or modify *
11  * it under the terms of the GNU General Public License as published by *
12  * the Free Software Foundation; either version 2 of the License, or *
13  * (at your option) any later version. *
14  * *
15  ***************************************************************************/
16 #ifndef QGS25DRENDERERWIDGET_H
17 #define QGS25DRENDERERWIDGET_H
18 
19 #include "ui_qgs25drendererwidgetbase.h"
20 #include "qgis_sip.h"
21 #include "qgsrendererwidget.h"
22 #include "qgis_gui.h"
23 
24 class Qgs25DRenderer;
25 
30 class GUI_EXPORT Qgs25DRendererWidget : public QgsRendererWidget, protected Ui::Qgs25DRendererWidgetBase
31 {
32  Q_OBJECT
33 
34  public:
35 
42  static QgsRendererWidget *create( QgsVectorLayer *layer, QgsStyle *style, QgsFeatureRenderer *renderer SIP_TRANSFER ) SIP_FACTORY;
43 
51  ~Qgs25DRendererWidget() override;
52 
53  QgsFeatureRenderer *renderer() override;
54 
55  private slots:
56  void updateRenderer();
57 
58  private:
59  void apply() override SIP_FORCE;
60 
61  std::unique_ptr< Qgs25DRenderer > mRenderer;
62 
63  friend class QgsAppScreenShots;
64 };
65 
66 #endif // QGS25DRENDERERWIDGET_H
QgsRendererWidget::renderer
virtual QgsFeatureRenderer * renderer()=0
Returns pointer to the renderer (no transfer of ownership)
Qgs25DRenderer
Definition: qgs25drenderer.h:29
SIP_FACTORY
#define SIP_FACTORY
Definition: qgis_sip.h:76
Qgs25DRendererWidget
Definition: qgs25drendererwidget.h:30
qgis_sip.h
SIP_TRANSFER
#define SIP_TRANSFER
Definition: qgis_sip.h:36
QgsRendererWidget
Base class for renderer settings widgets.
Definition: qgsrendererwidget.h:45
QgsFeatureRenderer
Definition: qgsrenderer.h:101
SIP_FORCE
#define SIP_FORCE
Definition: qgis_sip.h:131
QgsStyle
Definition: qgsstyle.h:159
QgsVectorLayer
Represents a vector layer which manages a vector based data sets.
Definition: qgsvectorlayer.h:391
qgsrendererwidget.h