QGIS API Documentation
3.41.0-Master (af5edcb665c)
Loading...
Searching...
No Matches
src
gui
symbology
qgspointclusterrendererwidget.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgspointclusterrendererwidget.h
3
-------------------------------
4
begin : February 2016
5
copyright : (C) 2016 by Nyall Dawson
6
email : nyall dot dawson at gmail dot com
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef QGSPOINTCLUSTERRENDERERWIDGET_H
19
#define QGSPOINTCLUSTERRENDERERWIDGET_H
20
21
#include "ui_qgspointclusterrendererwidgetbase.h"
22
#include "
qgis_sip.h
"
23
#include "
qgsrendererwidget.h
"
24
#include "
qgsexpressioncontextgenerator.h
"
25
#include "qgis_gui.h"
26
27
class
QgsPointClusterRenderer
;
28
35
class
GUI_EXPORT
QgsPointClusterRendererWidget
:
public
QgsRendererWidget
,
private
Ui::QgsPointClusterRendererWidgetBase
36
{
37
Q_OBJECT
38
39
public
:
47
static
QgsRendererWidget
*create(
QgsVectorLayer
*layer,
QgsStyle
*style,
QgsFeatureRenderer
*renderer )
SIP_FACTORY
;
48
55
QgsPointClusterRendererWidget
(
QgsVectorLayer
*layer,
QgsStyle
*style,
QgsFeatureRenderer
*renderer );
56
57
~QgsPointClusterRendererWidget
()
override
;
58
59
QgsFeatureRenderer
*
renderer
()
override
;
60
void
setContext
(
const
QgsSymbolWidgetContext
&context )
override
;
61
62
QgsExpressionContext
createExpressionContext
()
const override
;
63
64
private
:
65
std::unique_ptr<QgsPointClusterRenderer> mRenderer;
66
67
void
blockAllSignals(
bool
block );
68
void
setupBlankUi(
const
QString &layerName );
69
70
private
slots:
71
72
void
mRendererComboBox_currentIndexChanged(
int
index );
73
void
mDistanceSpinBox_valueChanged(
double
d );
74
void
mDistanceUnitWidget_changed();
75
void
mRendererSettingsButton_clicked();
76
void
centerSymbolChanged();
77
void
updateRendererFromWidget();
78
};
79
80
#endif
// QGSPOINTCLUSTERRENDERERWIDGET_H
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
QgsPointClusterRendererWidget
A widget which allows configuration of the properties for a QgsPointClusterRenderer.
Definition
qgspointclusterrendererwidget.h:36
QgsPointClusterRendererWidget::~QgsPointClusterRendererWidget
~QgsPointClusterRendererWidget() override
QgsPointClusterRenderer
A renderer that automatically clusters points with the same geographic position.
Definition
qgspointclusterrenderer.h:31
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:345
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:405
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
qgsexpressioncontextgenerator.h
qgsrendererwidget.h
Generated on Thu Dec 26 2024 02:19:01 for QGIS API Documentation by
1.9.8