QGIS API Documentation 3.99.0-Master (26c88405ac0)
Loading...
Searching...
No Matches
qgsinterpolatedlinesymbollayerwidget.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsinterpolatedlinesymbollayerwidget.h - QgsInterpolatedLineSymbolLayerWidget
3
4 ---------------------
5 begin : 23.3.2021
6 copyright : (C) 2021 by Vincent Cloarec
7 email : vcloarec at gmail dot com
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 QGSINTERPOLATEDLINESYMBOLLAYERWIDGET_H
17#define QGSINTERPOLATEDLINESYMBOLLAYERWIDGET_H
18
19#include "ui_qgsinterpolatedlinesymbollayerwidgetbase.h"
20
22#include "qgsrendererwidget.h"
24
30class GUI_EXPORT QgsInterpolatedLineSymbolLayerWidget : public QgsSymbolLayerWidget, private Ui::QgsInterpolatedLineSymbolLayerWidgetBase
31{
32 Q_OBJECT
33 public:
34
40 QgsInterpolatedLineSymbolLayerWidget( QgsVectorLayer *layer, QWidget *parent SIP_TRANSFERTHIS = nullptr );
41
47
48 void setSymbolLayer( QgsSymbolLayer *layer ) override;
49 QgsSymbolLayer *symbolLayer() override;
50
51 private slots:
52 void apply();
53 void updateVisibleWidget();
54 void onReloadMinMaxValueWidth();
55 void onReloadMinMaxValueColor();
56 void reloadMinMaxWidthFromLayer();
57 void reloadMinMaxColorFromLayer();
58 void onColorMinMaxLineTextChanged();
59 void onColorMinMaxLineTextEdited();
60
61 private:
62 QgsInterpolatedLineSymbolLayer *mLayer = nullptr;
63
64 double mMinimumForWidthFromLayer = std::numeric_limits<double>::quiet_NaN();
65 double mMaximumForWidthFromLayer = std::numeric_limits<double>::quiet_NaN();
66
67 double mMaximumForColorFromLayer = std::numeric_limits<double>::quiet_NaN();
68 double mMinimumForColorFromLayer = std::numeric_limits<double>::quiet_NaN();
69
70 QgsInterpolatedLineWidth interpolatedLineWidth();
71 QgsInterpolatedLineColor interpolatedLineColor();
72 double lineEditValue( QLineEdit *lineEdit );
73 void setLineEditValue( QLineEdit *lineEdit, double value );
74};
75
76#endif // QGSINTERPOLATEDLINESYMBOLLAYERWIDGET_H
Defines color interpolation for rendering mesh datasets.
static QgsSymbolLayerWidget * create(QgsVectorLayer *layer)
Static creation method.
QgsInterpolatedLineSymbolLayerWidget(QgsVectorLayer *layer, QWidget *parent=nullptr)
Constructor.
A symbol layer that represents vector layer line features as interpolated lines.
Represents a width that can vary depending on values.
QgsSymbolLayerWidget(QWidget *parent, QgsVectorLayer *vl=nullptr)
Constructor for QgsSymbolLayerWidget.
virtual void setSymbolLayer(QgsSymbolLayer *layer)=0
virtual QgsSymbolLayer * symbolLayer()=0
Abstract base class for symbol layers.
Represents a vector layer which manages a vector based dataset.
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53
#define SIP_FACTORY
Definition qgis_sip.h:84