2017-06-06 11:03:05 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
2017-08-06 13:39:03 +02:00
|
|
|
* src/core/symbology/qgsvectorfieldsymbollayer.h *
|
2017-06-06 11:03:05 +02:00
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsVectorFieldSymbolLayer: QgsMarkerSymbolLayer
|
2011-11-15 16:22:46 +01:00
|
|
|
{
|
2017-06-06 11:03:05 +02:00
|
|
|
%Docstring
|
|
|
|
A symbol layer class for displaying displacement arrows based on point layer attributes*
|
|
|
|
%End
|
|
|
|
|
2011-11-16 17:52:20 +02:00
|
|
|
%TypeHeaderCode
|
2017-06-06 11:03:05 +02:00
|
|
|
#include "qgsvectorfieldsymbollayer.h"
|
2011-11-16 17:52:20 +02:00
|
|
|
%End
|
2011-11-15 16:22:46 +01:00
|
|
|
public:
|
|
|
|
enum VectorFieldType
|
|
|
|
{
|
2014-06-02 21:00:51 +02:00
|
|
|
Cartesian,
|
2011-11-15 16:22:46 +01:00
|
|
|
Polar,
|
|
|
|
Height
|
|
|
|
};
|
|
|
|
|
|
|
|
enum AngleOrientation
|
|
|
|
{
|
2014-06-02 21:00:51 +02:00
|
|
|
ClockwiseFromNorth,
|
2011-11-15 16:22:46 +01:00
|
|
|
CounterclockwiseFromEast
|
|
|
|
};
|
|
|
|
|
|
|
|
enum AngleUnits
|
|
|
|
{
|
2014-06-02 21:00:51 +02:00
|
|
|
Degrees,
|
2011-11-15 16:22:46 +01:00
|
|
|
Radians
|
|
|
|
};
|
|
|
|
|
|
|
|
QgsVectorFieldSymbolLayer();
|
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
static QgsSymbolLayer *create( const QgsStringMap &properties = QgsStringMap() );
|
2017-06-06 11:03:05 +02:00
|
|
|
%Docstring
|
|
|
|
:rtype: QgsSymbolLayer
|
|
|
|
%End
|
2017-05-01 18:13:15 +02:00
|
|
|
static QgsSymbolLayer *createFromSld( QDomElement &element );
|
2017-06-06 11:03:05 +02:00
|
|
|
%Docstring
|
|
|
|
:rtype: QgsSymbolLayer
|
|
|
|
%End
|
|
|
|
|
|
|
|
virtual QString layerType() const;
|
2011-11-15 16:22:46 +01:00
|
|
|
|
2017-06-06 11:03:05 +02:00
|
|
|
virtual bool setSubSymbol( QgsSymbol *symbol /Transfer/ );
|
2011-11-15 16:22:46 +01:00
|
|
|
|
2017-06-06 11:03:05 +02:00
|
|
|
virtual QgsSymbol *subSymbol();
|
|
|
|
|
|
|
|
virtual void setColor( const QColor &color );
|
2011-11-15 16:22:46 +01:00
|
|
|
|
2016-06-26 17:24:16 +10:00
|
|
|
virtual QColor color() const;
|
|
|
|
|
2017-06-06 11:03:05 +02:00
|
|
|
virtual void renderPoint( QPointF point, QgsSymbolRenderContext &context );
|
|
|
|
|
|
|
|
virtual void startRender( QgsSymbolRenderContext &context );
|
|
|
|
|
|
|
|
virtual void stopRender( QgsSymbolRenderContext &context );
|
|
|
|
|
2011-11-15 16:22:46 +01:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
virtual QgsVectorFieldSymbolLayer *clone() const /Factory/;
|
2011-11-15 16:22:46 +01:00
|
|
|
|
2017-06-06 11:03:05 +02:00
|
|
|
virtual QgsStringMap properties() const;
|
|
|
|
|
|
|
|
|
|
|
|
virtual void toSld( QDomDocument &doc, QDomElement &element, const QgsStringMap &props ) const;
|
|
|
|
|
|
|
|
|
|
|
|
virtual void drawPreviewIcon( QgsSymbolRenderContext &context, QSize size );
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-06-06 11:03:05 +02:00
|
|
|
virtual QSet<QString> usedAttributes( const QgsRenderContext &context ) const;
|
2011-11-15 16:22:46 +01:00
|
|
|
|
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
void setXAttribute( const QString &attribute );
|
2011-11-15 16:22:46 +01:00
|
|
|
QString xAttribute() const;
|
2017-06-06 11:03:05 +02:00
|
|
|
%Docstring
|
|
|
|
:rtype: str
|
|
|
|
%End
|
2017-05-01 18:13:15 +02:00
|
|
|
void setYAttribute( const QString &attribute );
|
2011-11-15 16:22:46 +01:00
|
|
|
QString yAttribute() const;
|
2017-06-06 11:03:05 +02:00
|
|
|
%Docstring
|
|
|
|
:rtype: str
|
|
|
|
%End
|
2011-11-15 16:22:46 +01:00
|
|
|
void setScale( double s );
|
|
|
|
double scale() const;
|
2017-06-06 11:03:05 +02:00
|
|
|
%Docstring
|
|
|
|
:rtype: float
|
|
|
|
%End
|
2011-11-15 16:22:46 +01:00
|
|
|
void setVectorFieldType( VectorFieldType type );
|
|
|
|
VectorFieldType vectorFieldType() const;
|
2017-06-06 11:03:05 +02:00
|
|
|
%Docstring
|
|
|
|
:rtype: VectorFieldType
|
|
|
|
%End
|
2011-11-15 16:22:46 +01:00
|
|
|
void setAngleOrientation( AngleOrientation orientation );
|
|
|
|
AngleOrientation angleOrientation() const;
|
2017-06-06 11:03:05 +02:00
|
|
|
%Docstring
|
|
|
|
:rtype: AngleOrientation
|
|
|
|
%End
|
2011-11-15 16:22:46 +01:00
|
|
|
void setAngleUnits( AngleUnits units );
|
|
|
|
AngleUnits angleUnits() const;
|
2017-06-06 11:03:05 +02:00
|
|
|
%Docstring
|
|
|
|
:rtype: AngleUnits
|
|
|
|
%End
|
|
|
|
|
|
|
|
virtual void setOutputUnit( QgsUnitTypes::RenderUnit unit );
|
|
|
|
|
|
|
|
virtual QgsUnitTypes::RenderUnit outputUnit() const;
|
|
|
|
|
2013-06-23 16:00:16 +02:00
|
|
|
|
2017-06-06 11:03:05 +02:00
|
|
|
virtual void setMapUnitScale( const QgsMapUnitScale &scale );
|
|
|
|
|
|
|
|
virtual QgsMapUnitScale mapUnitScale() const;
|
2014-05-07 19:02:11 +02:00
|
|
|
|
2013-06-23 16:00:16 +02:00
|
|
|
|
2016-07-17 22:11:17 +10:00
|
|
|
void setDistanceUnit( QgsUnitTypes::RenderUnit unit );
|
2017-06-06 11:03:05 +02:00
|
|
|
%Docstring
|
|
|
|
Sets the units for the distance.
|
|
|
|
\param unit distance units
|
|
|
|
.. seealso:: distanceUnit()
|
|
|
|
%End
|
2016-07-18 09:42:45 +10:00
|
|
|
|
2016-07-17 22:11:17 +10:00
|
|
|
QgsUnitTypes::RenderUnit distanceUnit() const;
|
2017-06-06 11:03:05 +02:00
|
|
|
%Docstring
|
|
|
|
Returns the units for the distance.
|
|
|
|
.. seealso:: setDistanceUnit()
|
|
|
|
:rtype: QgsUnitTypes.RenderUnit
|
|
|
|
%End
|
2014-05-07 19:02:11 +02:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
void setDistanceMapUnitScale( const QgsMapUnitScale &scale );
|
|
|
|
const QgsMapUnitScale &distanceMapUnitScale() const;
|
2017-06-06 11:03:05 +02:00
|
|
|
%Docstring
|
|
|
|
:rtype: QgsMapUnitScale
|
|
|
|
%End
|
2016-09-14 08:51:17 +10:00
|
|
|
|
2017-06-06 11:03:05 +02:00
|
|
|
virtual QRectF bounds( QPointF, QgsSymbolRenderContext & );
|
2017-02-20 10:37:06 +10:00
|
|
|
|
|
|
|
private:
|
2017-05-01 18:13:15 +02:00
|
|
|
QgsVectorFieldSymbolLayer( const QgsVectorFieldSymbolLayer &other );
|
2011-11-16 17:52:20 +02:00
|
|
|
};
|
2017-06-06 11:03:05 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
2017-08-06 13:39:03 +02:00
|
|
|
* src/core/symbology/qgsvectorfieldsymbollayer.h *
|
2017-06-06 11:03:05 +02:00
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|