QGIS API Documentation  3.4.15-Madeira (e83d02e274)
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.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
#define SIP_TRANSFERTHIS
Definition: qgis_sip.h:46
A symbol layer class for displaying displacement arrows based on point layer attributes.
virtual void setSymbolLayer(QgsSymbolLayer *layer)=0
virtual QgsSymbolLayer * symbolLayer()=0
#define SIP_FACTORY
Definition: qgis_sip.h:69
static QgsSymbolLayerWidget * create(QgsVectorLayer *vl)
Creates a new QgsVectorFieldSymbolLayerWidget.
Represents a vector layer which manages a vector based data sets.