QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
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 "qgssymbollayerv2widget.h"
19 #include "ui_widget_vectorfield.h"
20 
22 
26 class GUI_EXPORT QgsVectorFieldSymbolLayerWidget: public QgsSymbolLayerV2Widget, private Ui::WidgetVectorFieldBase
27 {
28  Q_OBJECT
29  public:
30  QgsVectorFieldSymbolLayerWidget( const QgsVectorLayer* vl, QWidget* parent = nullptr );
32 
34 
35  // from base class
36  virtual void setSymbolLayer( QgsSymbolLayerV2* layer ) override;
37  virtual QgsSymbolLayerV2* symbolLayer() override;
38 
39  protected:
41 
42  private slots:
43  void on_mScaleSpinBox_valueChanged( double d );
44  void on_mXAttributeComboBox_currentIndexChanged( int index );
45  void on_mYAttributeComboBox_currentIndexChanged( int index );
46  void on_mCartesianRadioButton_toggled( bool checked );
47  void on_mPolarRadioButton_toggled( bool checked );
48  void on_mHeightRadioButton_toggled( bool checked );
49  void on_mDegreesRadioButton_toggled( bool checked );
50  void on_mRadiansRadioButton_toggled( bool checked );
51  void on_mClockwiseFromNorthRadioButton_toggled( bool checked );
52  void on_mCounterclockwiseFromEastRadioButton_toggled( bool checked );
53  void on_mDistanceUnitWidget_changed();
54 };
55 
56 #endif // QGSVECTORFIELDSYMBOLLAYERWIDGET_H
virtual void setSymbolLayer(QgsSymbolLayerV2 *layer)=0
static QgsSymbolLayerV2Widget * create(const QgsVectorLayer *vl)
static unsigned index
A symbol layer class for displaying displacement arrows based on point layer attributes.
virtual QgsSymbolLayerV2 * symbolLayer()=0
Represents a vector layer which manages a vector based data sets.