QGIS API Documentation 3.41.0-Master (cea29feecf2)
Loading...
Searching...
No Matches
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
19#include "qgis_sip.h"
20#include "ui_widget_vectorfield.h"
21#include "qgis_gui.h"
22
24
29class GUI_EXPORT QgsVectorFieldSymbolLayerWidget : public QgsSymbolLayerWidget, private Ui::WidgetVectorFieldBase
30{
31 Q_OBJECT
32 public:
38 QgsVectorFieldSymbolLayerWidget( QgsVectorLayer *vl, QWidget *parent SIP_TRANSFERTHIS = nullptr );
39
45
46 // from base class
47 void setSymbolLayer( QgsSymbolLayer *layer ) override;
48 QgsSymbolLayer *symbolLayer() override;
49
50 protected:
51 QgsVectorFieldSymbolLayer *mLayer = nullptr;
52
53 private slots:
54 void mScaleSpinBox_valueChanged( double d );
55 void mXAttributeComboBox_currentIndexChanged( int index );
56 void mYAttributeComboBox_currentIndexChanged( int index );
57 void mCartesianRadioButton_toggled( bool checked );
58 void mPolarRadioButton_toggled( bool checked );
59 void mHeightRadioButton_toggled( bool checked );
60 void mDegreesRadioButton_toggled( bool checked );
61 void mRadiansRadioButton_toggled( bool checked );
62 void mClockwiseFromNorthRadioButton_toggled( bool checked );
63 void mCounterclockwiseFromEastRadioButton_toggled( bool checked );
64 void mDistanceUnitWidget_changed();
65};
66
67#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