QGIS/python/core/auto_generated/symbology/qgsarrowsymbollayer.sip.in

225 lines
5.5 KiB
Plaintext
Raw Normal View History

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/qgsarrowsymbollayer.h *
2017-06-06 11:03:05 +02:00
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
2017-06-06 11:03:05 +02:00
class QgsArrowSymbolLayer : QgsLineSymbolLayer
{
2017-06-06 11:03:05 +02:00
%Docstring
Line symbol layer used for representing lines as arrows.
2017-12-15 10:36:55 -04:00
2017-06-06 11:03:05 +02:00
.. versionadded:: 2.16
%End
%TypeHeaderCode
2017-06-06 11:03:05 +02:00
#include "qgsarrowsymbollayer.h"
%End
public:
QgsArrowSymbolLayer();
2017-06-06 11:03:05 +02:00
%Docstring
Simple constructor
%End
static QgsSymbolLayer *create( const QgsStringMap &properties = QgsStringMap() ) /Factory/;
2017-06-06 11:03:05 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Create a new QgsArrowSymbolLayer
:param properties: A property map to deserialize saved information from properties()
2017-12-15 10:36:55 -04:00
:return: A new QgsArrowSymbolLayer
2017-06-06 11:03:05 +02:00
%End
2017-06-06 11:03:05 +02:00
virtual QgsArrowSymbolLayer *clone() const /Factory/;
2017-06-06 11:03:05 +02:00
virtual QgsSymbol *subSymbol();
virtual bool setSubSymbol( QgsSymbol *symbol /Transfer/ );
virtual QSet<QString> usedAttributes( const QgsRenderContext &context ) const;
double arrowWidth() const;
2017-06-06 11:03:05 +02:00
%Docstring
Get current arrow width
%End
void setArrowWidth( double width );
2017-06-06 11:03:05 +02:00
%Docstring
Set the arrow width
%End
QgsUnitTypes::RenderUnit arrowWidthUnit() const;
2017-06-06 11:03:05 +02:00
%Docstring
Get the unit for the arrow width
%End
void setArrowWidthUnit( QgsUnitTypes::RenderUnit unit );
2017-06-06 11:03:05 +02:00
%Docstring
Set the unit for the arrow width
%End
QgsMapUnitScale arrowWidthUnitScale() const;
2017-06-06 11:03:05 +02:00
%Docstring
Get the scale for the arrow width
%End
void setArrowWidthUnitScale( const QgsMapUnitScale &scale );
2017-06-06 11:03:05 +02:00
%Docstring
Set the scale for the arrow width
%End
double arrowStartWidth() const;
2017-06-06 11:03:05 +02:00
%Docstring
2017-12-12 23:24:01 +01:00
Get current arrow start width. Only meaningful for single headed arrows
2017-06-06 11:03:05 +02:00
%End
void setArrowStartWidth( double width );
2017-06-06 11:03:05 +02:00
%Docstring
Set the arrow start width
%End
QgsUnitTypes::RenderUnit arrowStartWidthUnit() const;
2017-06-06 11:03:05 +02:00
%Docstring
Get the unit for the arrow start width
%End
void setArrowStartWidthUnit( QgsUnitTypes::RenderUnit unit );
2017-06-06 11:03:05 +02:00
%Docstring
Set the unit for the arrow start width
%End
QgsMapUnitScale arrowStartWidthUnitScale() const;
2017-06-06 11:03:05 +02:00
%Docstring
Get the scale for the arrow start width
%End
void setArrowStartWidthUnitScale( const QgsMapUnitScale &scale );
2017-06-06 11:03:05 +02:00
%Docstring
Set the scale for the arrow start width
%End
double headLength() const;
2017-06-06 11:03:05 +02:00
%Docstring
Get the current arrow head length
%End
void setHeadLength( double length );
2017-06-06 11:03:05 +02:00
%Docstring
Set the arrow head length
%End
QgsUnitTypes::RenderUnit headLengthUnit() const;
2017-06-06 11:03:05 +02:00
%Docstring
Get the unit for the head length
%End
void setHeadLengthUnit( QgsUnitTypes::RenderUnit unit );
2017-06-06 11:03:05 +02:00
%Docstring
Set the unit for the head length
%End
QgsMapUnitScale headLengthUnitScale() const;
2017-06-06 11:03:05 +02:00
%Docstring
Get the scale for the head length
%End
void setHeadLengthUnitScale( const QgsMapUnitScale &scale );
2017-06-06 11:03:05 +02:00
%Docstring
Set the scale for the head length
%End
double headThickness() const;
2017-06-06 11:03:05 +02:00
%Docstring
Get the current arrow head height
%End
void setHeadThickness( double thickness );
2017-06-06 11:03:05 +02:00
%Docstring
Set the arrow head height
%End
QgsUnitTypes::RenderUnit headThicknessUnit() const;
2017-06-06 11:03:05 +02:00
%Docstring
Get the unit for the head height
%End
void setHeadThicknessUnit( QgsUnitTypes::RenderUnit unit );
2017-06-06 11:03:05 +02:00
%Docstring
Set the unit for the head height
%End
QgsMapUnitScale headThicknessUnitScale() const;
2017-06-06 11:03:05 +02:00
%Docstring
Get the scale for the head height
%End
void setHeadThicknessUnitScale( const QgsMapUnitScale &scale );
2017-06-06 11:03:05 +02:00
%Docstring
Set the scale for the head height
%End
bool isCurved() const;
2017-06-06 11:03:05 +02:00
%Docstring
Return whether it is a curved arrow or a straight one
%End
void setIsCurved( bool isCurved );
2017-06-06 11:03:05 +02:00
%Docstring
Set whether it is a curved arrow or a straight one
%End
bool isRepeated() const;
2017-06-06 11:03:05 +02:00
%Docstring
Return whether the arrow is repeated along the line or not
%End
void setIsRepeated( bool isRepeated );
2017-06-06 11:03:05 +02:00
%Docstring
Set whether the arrow is repeated along the line
%End
enum HeadType
{
2017-06-06 11:03:05 +02:00
HeadSingle,
HeadReversed,
HeadDouble
};
HeadType headType() const;
2017-06-06 11:03:05 +02:00
%Docstring
Get the current head type
%End
void setHeadType( HeadType type );
2017-06-06 11:03:05 +02:00
%Docstring
Set the head type
%End
enum ArrowType
{
2017-06-06 11:03:05 +02:00
ArrowPlain,
ArrowLeftHalf,
ArrowRightHalf
};
ArrowType arrowType() const;
2017-06-06 11:03:05 +02:00
%Docstring
Get the current arrow type
%End
void setArrowType( ArrowType type );
2017-06-06 11:03:05 +02:00
%Docstring
Set the arrow type
%End
virtual QgsStringMap properties() const;
2017-06-06 11:03:05 +02:00
virtual QString layerType() const;
2017-06-06 11:03:05 +02:00
virtual void startRender( QgsSymbolRenderContext &context );
2017-06-06 11:03:05 +02:00
virtual void stopRender( QgsSymbolRenderContext &context );
2017-06-06 11:03:05 +02:00
virtual void renderPolyline( const QPolygonF &points, QgsSymbolRenderContext &context );
2017-06-06 11:03:05 +02:00
virtual void setColor( const QColor &c );
virtual QColor color() const;
private:
2017-06-06 11:03:05 +02:00
QgsArrowSymbolLayer( const QgsArrowSymbolLayer & );
};
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/qgsarrowsymbollayer.h *
2017-06-06 11:03:05 +02:00
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/