QGIS API Documentation 3.41.0-Master (af5edcb665c)
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 "qgsrendererwidget.h"
22#include "ui_qgsinterpolatedlinesymbollayerwidgetbase.h"
23
29class GUI_EXPORT QgsInterpolatedLineSymbolLayerWidget : public QgsSymbolLayerWidget, private Ui::QgsInterpolatedLineSymbolLayerWidgetBase
30{
31 Q_OBJECT
32 public:
38 QgsInterpolatedLineSymbolLayerWidget( QgsVectorLayer *layer, QWidget *parent SIP_TRANSFERTHIS = nullptr );
39
45
46 void setSymbolLayer( QgsSymbolLayer *layer ) override;
47 QgsSymbolLayer *symbolLayer() override;
48
49 private slots:
50 void apply();
51 void updateVisibleWidget();
52 void onReloadMinMaxValueWidth();
53 void onReloadMinMaxValueColor();
54 void reloadMinMaxWidthFromLayer();
55 void reloadMinMaxColorFromLayer();
56 void onColorMinMaxLineTextChanged();
57 void onColorMinMaxLineTextEdited();
58
59 private:
60 QgsInterpolatedLineSymbolLayer *mLayer = nullptr;
61
62 double mMinimumForWidthFromLayer = std::numeric_limits<double>::quiet_NaN();
63 double mMaximumForWidthFromLayer = std::numeric_limits<double>::quiet_NaN();
64
65 double mMaximumForColorFromLayer = std::numeric_limits<double>::quiet_NaN();
66 double mMinimumForColorFromLayer = std::numeric_limits<double>::quiet_NaN();
67
68 QgsInterpolatedLineWidth interpolatedLineWidth();
69 QgsInterpolatedLineColor interpolatedLineColor();
70 double lineEditValue( QLineEdit *lineEdit );
71 void setLineEditValue( QLineEdit *lineEdit, double value );
72};
73
74#endif // QGSINTERPOLATEDLINESYMBOLLAYERWIDGET_H
Class defining color to render mesh datasets.
static QgsSymbolLayerWidget * create(QgsVectorLayer *layer)
Static creation method.
A symbol layer that represents vector layer line feature as interpolated line The interpolation is do...
Represents a width than can vary depending on values.
virtual void setSymbolLayer(QgsSymbolLayer *layer)=0
virtual QgsSymbolLayer * symbolLayer()=0
Represents a vector layer which manages a vector based data sets.
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53
#define SIP_FACTORY
Definition qgis_sip.h:76