QGIS API Documentation  3.24.2-Tisler (13c1a02865)
qgsvectorfieldsymbollayerwidget.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsvectorfieldsymbollayerwidget.h
3  ---------------------
4  begin : October 2011
5  copyright : (C) 2011 by Marco Hugentobler
6  email : marco dot hugentobler at sourcepole dot ch
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 QGSVECTORFIELDSYMBOLLAYERWIDGET_H
16 #define QGSVECTORFIELDSYMBOLLAYERWIDGET_H
17 
18 #include "qgssymbollayerwidget.h"
19 #include "qgis_sip.h"
20 #include "ui_widget_vectorfield.h"
21 #include "qgis_gui.h"
22 
24 
29 class GUI_EXPORT QgsVectorFieldSymbolLayerWidget: public QgsSymbolLayerWidget, private Ui::WidgetVectorFieldBase
30 {
31  Q_OBJECT
32  public:
33 
39  QgsVectorFieldSymbolLayerWidget( QgsVectorLayer *vl, QWidget *parent SIP_TRANSFERTHIS = nullptr );
40 
46 
47  // from base class
48  void setSymbolLayer( QgsSymbolLayer *layer ) override;
49  QgsSymbolLayer *symbolLayer() override;
50 
51  protected:
52  QgsVectorFieldSymbolLayer *mLayer = nullptr;
53 
54  private slots:
55  void mScaleSpinBox_valueChanged( double d );
56  void mXAttributeComboBox_currentIndexChanged( int index );
57  void mYAttributeComboBox_currentIndexChanged( int index );
58  void mCartesianRadioButton_toggled( bool checked );
59  void mPolarRadioButton_toggled( bool checked );
60  void mHeightRadioButton_toggled( bool checked );
61  void mDegreesRadioButton_toggled( bool checked );
62  void mRadiansRadioButton_toggled( bool checked );
63  void mClockwiseFromNorthRadioButton_toggled( bool checked );
64  void mCounterclockwiseFromEastRadioButton_toggled( bool checked );
65  void mDistanceUnitWidget_changed();
66 };
67 
68 #endif // QGSVECTORFIELDSYMBOLLAYERWIDGET_H
virtual void setSymbolLayer(QgsSymbolLayer *layer)=0
virtual QgsSymbolLayer * symbolLayer()=0
static QgsSymbolLayerWidget * create(QgsVectorLayer *vl)
Creates a new QgsVectorFieldSymbolLayerWidget.
A symbol layer class for displaying displacement arrows based on point layer attributes.
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