QGIS API Documentation
3.41.0-Master (fda2aa46e9a)
Loading...
Searching...
No Matches
src
gui
symbology
qgsembeddedsymbolrendererwidget.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsembeddedsymbolrendererwidget.h
3
---------------------
4
begin : March 2021
5
copyright : (C) 2021 by 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 QGSEMBEDDEDSYMBOLRENDERERWIDGET_H
16
#define QGSEMBEDDEDSYMBOLRENDERERWIDGET_H
17
18
#include "ui_qgsembeddedsymbolrendererwidgetbase.h"
19
#include "
qgis_sip.h
"
20
#include "
qgsrendererwidget.h
"
21
#include "qgis_gui.h"
22
23
class
QMenu;
24
class
QgsEmbeddedSymbolRenderer
;
25
32
class
GUI_EXPORT
QgsEmbeddedSymbolRendererWidget
:
public
QgsRendererWidget
,
private
Ui::QgsEmbeddedSymbolRendererWidgetBase
33
{
34
Q_OBJECT
35
36
public
:
37
44
static
QgsRendererWidget
*create(
QgsVectorLayer
*layer,
QgsStyle
*style,
QgsFeatureRenderer
*renderer )
SIP_FACTORY
;
45
52
QgsEmbeddedSymbolRendererWidget
(
QgsVectorLayer
*layer,
QgsStyle
*style,
QgsFeatureRenderer
*renderer );
53
~QgsEmbeddedSymbolRendererWidget
()
override
;
54
55
QgsFeatureRenderer
*
renderer
()
override
;
56
void
setContext
(
const
QgsSymbolWidgetContext
&context )
override
;
57
QgsExpressionContext
createExpressionContext
()
const override
;
58
59
private
:
61
std::unique_ptr<QgsEmbeddedSymbolRenderer> mRenderer;
62
63
};
64
65
66
#endif
// QGSEMBEDDEDSYMBOLRENDERERWIDGET_H
QgsEmbeddedSymbolRendererWidget
A widget used represent options of a QgsEmbeddedSymbolRenderer.
Definition
qgsembeddedsymbolrendererwidget.h:33
QgsEmbeddedSymbolRendererWidget::~QgsEmbeddedSymbolRendererWidget
~QgsEmbeddedSymbolRendererWidget() override
QgsEmbeddedSymbolRenderer
A vector feature renderer which uses embedded feature symbology to render per-feature symbols.
Definition
qgsembeddedsymbolrenderer.h:36
QgsExpressionContext
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
Definition
qgsexpressioncontext.h:471
QgsFeatureRenderer
Abstract base class for all 2D vector feature renderers.
Definition
qgsrenderer.h:106
QgsRendererWidget
Base class for renderer settings widgets.
Definition
qgsrendererwidget.h:48
QgsRendererWidget::setContext
virtual void setContext(const QgsSymbolWidgetContext &context)
Sets the context in which the renderer widget is shown, e.g., the associated map canvas and expressio...
Definition
qgsrendererwidget.cpp:349
QgsRendererWidget::renderer
virtual QgsFeatureRenderer * renderer()=0
Returns pointer to the renderer (no transfer of ownership)
QgsRendererWidget::createExpressionContext
QgsExpressionContext createExpressionContext() const override
This method needs to be reimplemented in all classes which implement this interface and return an exp...
Definition
qgsrendererwidget.cpp:410
QgsStyle
Definition
qgsstyle.h:87
QgsSymbolWidgetContext
Contains settings which reflect the context in which a symbol (or renderer) widget is shown,...
Definition
qgssymbolwidgetcontext.h:35
QgsVectorLayer
Represents a vector layer which manages a vector based data sets.
Definition
qgsvectorlayer.h:401
qgis_sip.h
SIP_FACTORY
#define SIP_FACTORY
Definition
qgis_sip.h:76
qgsrendererwidget.h
Generated on Sun Nov 10 2024 14:15:43 for QGIS API Documentation by
1.9.8