15 #ifndef QGSRENDERERV2WIDGET_H 16 #define QGSRENDERERV2WIDGET_H 20 #include <QStackedWidget> 85 void layerVariablesChanged();
101 void contextMenuViewCategories(
QPoint p );
103 void changeSymbolColor();
105 void changeSymbolTransparency();
107 void changeSymbolUnit();
109 void changeSymbolWidth();
111 void changeSymbolSize();
113 void changeSymbolAngle();
123 virtual void apply();
150 ~QgsRendererV2DataDefinedMenus();
158 void rotationFieldSelected(
QAction *a );
159 void sizeScaleFieldSelected(
QAction *a );
160 void scaleMethodSelected(
QAction *a );
164 void rotationFieldChanged(
const QString& fldName );
165 void sizeScaleFieldChanged(
const QString& fldName );
179 #include "ui_widget_set_dd_value.h" 218 void dataDefinedChanged();
222 void init(
const QString & description );
225 virtual double value(
const QgsSymbolV2 * )
const = 0;
243 init( tr(
"Symbol size" ) );
244 if ( !symbolList.
isEmpty() && symbolList.
at( 0 ) && mLayer )
245 mDDBtn->setAssistant( tr(
"Size Assistant..." ),
new QgsSizeScaleWidget( mLayer, static_cast<const QgsMarkerSymbolV2*>( symbolList.
at( 0 ) ) ) );
266 init( tr(
"Symbol rotation" ) );
287 init( tr(
"Symbol width" ) );
300 #endif // QGSRENDERERV2WIDGET_H double value(const QgsSymbolV2 *symbol) const override
A container class for data source field mapping or expression.
QgsDataDefinedWidthDialog(const QList< QgsSymbolV2 *> &symbolList, QgsVectorLayer *layer)
const T & at(int i) const
Container of fields for a vector layer.
Map canvas is a class for displaying all GIS data types on a canvas.
double value(const QgsSymbolV2 *symbol) const override
Utility classes for "en masse" size definition.
QgsDataDefinedSizeDialog(const QList< QgsSymbolV2 *> &symbolList, QgsVectorLayer *layer)
double value(const QgsSymbolV2 *symbol) const override
Encapsulate a field in an attribute table or data source.
double ANALYSIS_EXPORT angle(Point3D *p1, Point3D *p2, Point3D *p3, Point3D *p4)
Calculates the angle between two segments (in 2 dimension, z-values are ignored)
QgsDataDefinedRotationDialog(const QList< QgsSymbolV2 *> &symbolList, QgsVectorLayer *layer)
QList< QgsSymbolV2 * > mSymbolList
const QgsVectorLayer * vectorLayer() const
Returns the vector layer associated with the widget.
QgsMapCanvas * mMapCanvas
virtual ~QgsDataDefinedValueDialog()
Represents a vector layer which manages a vector based data sets.