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/qgsfillsymbollayer.h *
2017-06-06 11:03:05 +02:00
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
2016-08-06 11:01:42 +02:00
class QgsSimpleFillSymbolLayer : QgsFillSymbolLayer
2012-09-24 02:28:15 +02:00
{
2017-06-06 11:03:05 +02:00
2012-09-24 02:28:15 +02:00
%TypeHeaderCode
2017-06-06 11:03:05 +02:00
#include "qgsfillsymbollayer.h"
2012-09-24 02:28:15 +02:00
%End
public:
2017-06-06 11:03:05 +02:00
QgsSimpleFillSymbolLayer( const QColor &color = DEFAULT_SIMPLEFILL_COLOR,
Qt::BrushStyle style = DEFAULT_SIMPLEFILL_STYLE,
const QColor &strokeColor = DEFAULT_SIMPLEFILL_BORDERCOLOR,
Qt::PenStyle strokeStyle = DEFAULT_SIMPLEFILL_BORDERSTYLE,
double strokeWidth = DEFAULT_SIMPLEFILL_BORDERWIDTH,
Qt::PenJoinStyle penJoinStyle = DEFAULT_SIMPLEFILL_JOINSTYLE
);
2014-05-07 19:02:11 +02:00
2012-09-24 02:28:15 +02:00
2017-05-01 18:13:15 +02:00
static QgsSymbolLayer *create( const QgsStringMap &properties = QgsStringMap() ) /Factory/;
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 ) /Factory/;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: QgsSymbolLayer
%End
2012-09-24 02:28:15 +02:00
2017-06-06 11:03:05 +02:00
virtual QString layerType() const;
2012-09-24 02:28:15 +02:00
2017-06-06 11:03:05 +02:00
virtual void startRender( QgsSymbolRenderContext &context );
2012-09-24 02:28:15 +02:00
2017-06-06 11:03:05 +02:00
virtual void stopRender( QgsSymbolRenderContext &context );
virtual void renderPolygon( const QPolygonF &points, QList<QPolygonF> *rings, QgsSymbolRenderContext &context );
virtual QgsStringMap properties() const;
2012-09-24 02:28:15 +02:00
2017-05-01 18:13:15 +02:00
virtual QgsSimpleFillSymbolLayer *clone() const /Factory/;
2012-09-24 02:28:15 +02:00
2017-06-06 11:03:05 +02:00
virtual void toSld( QDomDocument &doc, QDomElement &element, const QgsStringMap &props ) const;
virtual QString ogrFeatureStyle( double mmScaleFactor, double mapUnitScaleFactor ) const;
2013-06-23 16:00:16 +02:00
2012-09-24 02:28:15 +02:00
Qt::BrushStyle brushStyle() const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: Qt.BrushStyle
%End
2012-09-24 02:28:15 +02:00
void setBrushStyle( Qt::BrushStyle style );
2017-06-06 11:03:05 +02:00
virtual QColor strokeColor() const;
virtual void setStrokeColor( const QColor &strokeColor );
2014-01-26 18:35:21 +01:00
2017-06-06 11:03:05 +02:00
virtual QColor fillColor() const;
virtual void setFillColor( const QColor &color );
2014-01-12 18:17:20 +01:00
2017-02-22 17:13:57 +10:00
Qt::PenStyle strokeStyle() const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: Qt.PenStyle
%End
2017-02-22 17:13:57 +10:00
void setStrokeStyle( Qt::PenStyle strokeStyle );
2012-09-24 02:28:15 +02:00
2017-02-22 17:13:57 +10:00
double strokeWidth() const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: float
%End
2017-02-22 17:13:57 +10:00
void setStrokeWidth( double strokeWidth );
2014-05-07 19:02:11 +02:00
2014-03-17 18:42:41 +11:00
Qt::PenJoinStyle penJoinStyle() const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: Qt.PenJoinStyle
%End
2014-03-17 18:42:41 +11:00
void setPenJoinStyle( Qt::PenJoinStyle style );
2012-09-24 02:28:15 +02:00
void setOffset( QPointF offset );
QPointF offset();
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: QPointF
%End
2013-04-19 15:20:44 +02:00
2017-02-22 17:13:57 +10:00
void setStrokeWidthUnit( QgsUnitTypes::RenderUnit unit );
2017-06-06 11:03:05 +02:00
%Docstring
Sets the units for the width of the fill's stroke.
\param unit width units
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`strokeWidthUnit()`
2017-06-06 11:03:05 +02:00
%End
2016-07-18 09:42:45 +10:00
2017-02-22 17:13:57 +10:00
QgsUnitTypes::RenderUnit strokeWidthUnit() const;
2017-06-06 11:03:05 +02:00
%Docstring
Returns the units for the width of the fill's stroke.
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setStrokeWidthUnit()`
2017-06-06 11:03:05 +02:00
:rtype: QgsUnitTypes.RenderUnit
%End
2014-05-07 19:02:11 +02:00
2017-06-06 11:03:05 +02:00
void setStrokeWidthMapUnitScale( const QgsMapUnitScale &scale );
2017-05-01 18:13:15 +02:00
const QgsMapUnitScale &strokeWidthMapUnitScale() const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: QgsMapUnitScale
%End
2013-04-19 15:20:44 +02:00
2016-07-17 22:11:17 +10:00
void setOffsetUnit( QgsUnitTypes::RenderUnit unit );
2017-06-06 11:03:05 +02:00
%Docstring
Sets the units for the fill's offset.
\param unit offset units
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`offsetUnit()`
2017-06-06 11:03:05 +02:00
%End
2016-07-18 09:42:45 +10:00
2016-07-17 22:11:17 +10:00
QgsUnitTypes::RenderUnit offsetUnit() const;
2017-06-06 11:03:05 +02:00
%Docstring
Returns the units for the fill's offset.
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setOffsetUnit()`
2017-06-06 11:03:05 +02:00
:rtype: QgsUnitTypes.RenderUnit
%End
2014-05-07 19:02:11 +02:00
2017-06-06 11:03:05 +02:00
void setOffsetMapUnitScale( const QgsMapUnitScale &scale );
2017-05-01 18:13:15 +02:00
const QgsMapUnitScale &offsetMapUnitScale() const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: QgsMapUnitScale
%End
virtual void setOutputUnit( QgsUnitTypes::RenderUnit unit );
virtual QgsUnitTypes::RenderUnit outputUnit() const;
virtual void setMapUnitScale( const QgsMapUnitScale &scale );
virtual QgsMapUnitScale mapUnitScale() const;
virtual double estimateMaxBleed( const QgsRenderContext &context ) const;
virtual double dxfWidth( const QgsDxfExport &e, QgsSymbolRenderContext &context ) const;
virtual QColor dxfColor( QgsSymbolRenderContext &context ) const;
virtual double dxfAngle( QgsSymbolRenderContext &context ) const;
virtual Qt::PenStyle dxfPenStyle() const;
virtual QColor dxfBrushColor( QgsSymbolRenderContext &context ) const;
virtual Qt::BrushStyle dxfBrushStyle() const;
2013-04-19 15:20:44 +02:00
2014-05-07 19:02:11 +02:00
2017-06-06 11:03:05 +02:00
protected:
2014-01-26 18:35:21 +01:00
2012-09-24 02:28:15 +02:00
};
2017-06-06 11:03:05 +02:00
2016-08-06 11:01:42 +02:00
class QgsGradientFillSymbolLayer : QgsFillSymbolLayer
2013-09-08 22:03:04 +10:00
{
2017-06-06 11:03:05 +02:00
2013-09-08 22:03:04 +10:00
%TypeHeaderCode
2017-06-06 11:03:05 +02:00
#include "qgsfillsymbollayer.h"
2013-09-08 22:03:04 +10:00
%End
public:
2014-05-27 23:22:50 +02:00
2013-09-08 22:03:04 +10:00
enum GradientColorType
{
SimpleTwoColor,
ColorRamp
};
enum GradientType
{
Linear,
Radial,
Conical
};
enum GradientCoordinateMode
{
Feature,
Viewport
};
enum GradientSpread
{
Pad,
Reflect,
Repeat
};
2014-01-03 23:06:49 +01:00
2017-06-06 11:03:05 +02:00
QgsGradientFillSymbolLayer( const QColor &color = DEFAULT_SIMPLEFILL_COLOR,
const QColor &color2 = Qt::white,
GradientColorType gradientColorType = SimpleTwoColor,
GradientType gradientType = Linear,
GradientCoordinateMode coordinateMode = Feature,
GradientSpread gradientSpread = Pad
);
2014-01-27 09:22:24 +01:00
2016-08-06 11:01:42 +02:00
virtual ~QgsGradientFillSymbolLayer();
2014-01-27 09:22:24 +01:00
2013-09-08 22:03:04 +10:00
2017-05-01 18:13:15 +02:00
static QgsSymbolLayer *create( const QgsStringMap &properties = QgsStringMap() ) /Factory/;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: QgsSymbolLayer
%End
virtual QString layerType() const;
virtual void startRender( QgsSymbolRenderContext &context );
2013-09-08 22:03:04 +10:00
2017-06-06 11:03:05 +02:00
virtual void stopRender( QgsSymbolRenderContext &context );
2013-09-08 22:03:04 +10:00
2017-06-06 11:03:05 +02:00
virtual void renderPolygon( const QPolygonF &points, QList<QPolygonF> *rings, QgsSymbolRenderContext &context );
2013-09-08 22:03:04 +10:00
2017-06-06 11:03:05 +02:00
virtual QgsStringMap properties() const;
2013-09-08 22:03:04 +10:00
2017-05-01 18:13:15 +02:00
virtual QgsGradientFillSymbolLayer *clone() const /Factory/;
2013-09-08 22:03:04 +10:00
2014-01-27 09:22:24 +01:00
2017-06-06 11:03:05 +02:00
virtual double estimateMaxBleed( const QgsRenderContext &context ) const;
2013-09-08 22:03:04 +10:00
GradientType gradientType() const;
2017-06-06 11:03:05 +02:00
%Docstring
Type of gradient, e.g., linear or radial
:rtype: GradientType
%End
2013-09-08 22:03:04 +10:00
void setGradientType( GradientType gradientType );
GradientColorType gradientColorType() const;
2017-06-06 11:03:05 +02:00
%Docstring
Gradient color mode, controls how gradient color stops are created
:rtype: GradientColorType
%End
2013-09-08 22:03:04 +10:00
void setGradientColorType( GradientColorType gradientColorType );
2017-05-01 18:13:15 +02:00
QgsColorRamp *colorRamp();
2017-06-06 11:03:05 +02:00
%Docstring
Returns the color ramp used for the gradient fill. This is only
used if the gradient color type is set to ColorRamp.
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setColorRamp()`
.. seealso:: :py:func:`gradientColorType()`
2017-06-06 11:03:05 +02:00
:rtype: QgsColorRamp
%End
2017-05-01 18:13:15 +02:00
void setColorRamp( QgsColorRamp *ramp );
2017-06-06 11:03:05 +02:00
%Docstring
Sets the color ramp used for the gradient fill. This is only
used if the gradient color type is set to ColorRamp.
\param ramp color ramp. Ownership is transferred.
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`colorRamp()`
.. seealso:: :py:func:`setGradientColorType()`
2017-06-06 11:03:05 +02:00
%End
2013-09-08 22:03:04 +10:00
QColor color2() const;
2017-06-06 11:03:05 +02:00
%Docstring
Color for endpoint of gradient, only used if the gradient color type is set to SimpleTwoColor
:rtype: QColor
%End
2017-05-01 18:13:15 +02:00
void setColor2( const QColor &color2 );
2013-09-08 22:03:04 +10:00
GradientCoordinateMode coordinateMode() const;
2017-06-06 11:03:05 +02:00
%Docstring
Coordinate mode for gradient. Controls how the gradient stops are positioned.
:rtype: GradientCoordinateMode
%End
2013-09-08 22:03:04 +10:00
void setCoordinateMode( GradientCoordinateMode coordinateMode );
GradientSpread gradientSpread() const;
2017-06-06 11:03:05 +02:00
%Docstring
Gradient spread mode. Controls how the gradient behaves outside of the predefined stops
:rtype: GradientSpread
%End
2013-09-08 22:03:04 +10:00
void setGradientSpread( GradientSpread gradientSpread );
void setReferencePoint1( QPointF referencePoint );
2017-06-06 11:03:05 +02:00
%Docstring
Starting point of gradient fill, in the range [0,0] - [1,1]
%End
2013-09-08 22:03:04 +10:00
QPointF referencePoint1() const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: QPointF
%End
2014-01-03 23:06:49 +01:00
2013-11-03 20:31:52 +11:00
void setReferencePoint1IsCentroid( bool isCentroid );
2017-06-06 11:03:05 +02:00
%Docstring
Sets the starting point of the gradient to be the feature centroid
%End
2013-11-03 20:31:52 +11:00
bool referencePoint1IsCentroid() const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: bool
%End
2013-09-08 22:03:04 +10:00
void setReferencePoint2( QPointF referencePoint );
2017-06-06 11:03:05 +02:00
%Docstring
End point of gradient fill, in the range [0,0] - [1,1]
%End
2013-09-08 22:03:04 +10:00
QPointF referencePoint2() const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: QPointF
%End
2014-01-03 23:06:49 +01:00
2013-11-03 20:31:52 +11:00
void setReferencePoint2IsCentroid( bool isCentroid );
2017-06-06 11:03:05 +02:00
%Docstring
Sets the end point of the gradient to be the feature centroid
%End
2014-01-03 23:06:49 +01:00
bool referencePoint2IsCentroid() const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: bool
%End
2013-09-08 22:03:04 +10:00
void setOffset( QPointF offset );
2017-06-06 11:03:05 +02:00
%Docstring
Offset for gradient fill
%End
2013-09-08 22:03:04 +10:00
QPointF offset() const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: QPointF
%End
2013-09-08 22:03:04 +10:00
2016-07-17 22:11:17 +10:00
void setOffsetUnit( QgsUnitTypes::RenderUnit unit );
2017-06-06 11:03:05 +02:00
%Docstring
Units for gradient fill offset
%End
2016-07-17 22:11:17 +10:00
QgsUnitTypes::RenderUnit offsetUnit() const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: QgsUnitTypes.RenderUnit
%End
2014-05-07 19:02:11 +02:00
2017-06-06 11:03:05 +02:00
void setOffsetMapUnitScale( const QgsMapUnitScale &scale );
2017-05-01 18:13:15 +02:00
const QgsMapUnitScale &offsetMapUnitScale() const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: QgsMapUnitScale
%End
virtual void setOutputUnit( QgsUnitTypes::RenderUnit unit );
virtual QgsUnitTypes::RenderUnit outputUnit() const;
virtual void setMapUnitScale( const QgsMapUnitScale &scale );
virtual QgsMapUnitScale mapUnitScale() const;
protected:
2014-05-07 19:02:11 +02:00
2014-04-06 21:14:02 +02:00
2014-01-03 23:06:49 +01:00
2013-09-08 22:03:04 +10:00
};
2016-08-06 11:01:42 +02:00
class QgsShapeburstFillSymbolLayer : QgsFillSymbolLayer
2014-03-21 12:50:50 +11:00
{
2017-06-06 11:03:05 +02:00
2014-03-21 12:50:50 +11:00
%TypeHeaderCode
2017-06-06 11:03:05 +02:00
#include "qgsfillsymbollayer.h"
2014-03-21 12:50:50 +11:00
%End
public:
2014-05-27 23:22:50 +02:00
2014-03-21 12:50:50 +11:00
enum ShapeburstColorType
{
SimpleTwoColor,
ColorRamp
};
2017-06-06 11:03:05 +02:00
QgsShapeburstFillSymbolLayer( const QColor &color = DEFAULT_SIMPLEFILL_COLOR, const QColor &color2 = Qt::white,
ShapeburstColorType colorType = SimpleTwoColor,
int blurRadius = 0, bool useWholeShape = true, double maxDistance = 5 );
2014-03-21 12:50:50 +11:00
2016-08-06 11:01:42 +02:00
virtual ~QgsShapeburstFillSymbolLayer();
2014-03-21 12:50:50 +11:00
2017-05-01 18:13:15 +02:00
static QgsSymbolLayer *create( const QgsStringMap &properties = QgsStringMap() ) /Factory/;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: QgsSymbolLayer
%End
virtual QString layerType() const;
virtual void startRender( QgsSymbolRenderContext &context );
2014-03-21 12:50:50 +11:00
2017-06-06 11:03:05 +02:00
virtual void stopRender( QgsSymbolRenderContext &context );
2014-03-21 12:50:50 +11:00
2017-06-06 11:03:05 +02:00
virtual void renderPolygon( const QPolygonF &points, QList<QPolygonF> *rings, QgsSymbolRenderContext &context );
2014-03-21 12:50:50 +11:00
2017-06-06 11:03:05 +02:00
virtual QgsStringMap properties() const;
2014-03-21 12:50:50 +11:00
2017-05-01 18:13:15 +02:00
virtual QgsShapeburstFillSymbolLayer *clone() const /Factory/;
2014-03-21 12:50:50 +11:00
2017-06-06 11:03:05 +02:00
virtual double estimateMaxBleed( const QgsRenderContext &context ) const;
2014-03-21 12:50:50 +11:00
void setBlurRadius( int blurRadius );
2017-06-06 11:03:05 +02:00
%Docstring
Sets the blur radius, which controls the amount of blurring applied to the fill.
\param blurRadius Radius for fill blur. Values between 0 - 17 are valid, where higher values results in a stronger blur. Set to 0 to disable blur.
.. versionadded:: 2.3
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`blurRadius`
2017-06-06 11:03:05 +02:00
%End
2014-03-21 12:50:50 +11:00
int blurRadius() const;
2017-06-06 11:03:05 +02:00
%Docstring
Returns the blur radius, which controls the amount of blurring applied to the fill.
:return: Integer representing the radius for fill blur. Higher values indicate a stronger blur. A 0 value indicates that blurring is disabled.
.. versionadded:: 2.3
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setBlurRadius`
2017-06-06 11:03:05 +02:00
:rtype: int
%End
2014-03-21 12:50:50 +11:00
2014-11-19 19:40:51 +11:00
void setUseWholeShape( bool useWholeShape );
2017-06-06 11:03:05 +02:00
%Docstring
Sets whether the shapeburst fill should be drawn using the entire shape.
\param useWholeShape Set to true if shapeburst should cover entire shape. If false, setMaxDistance is used to calculate how far from the boundary of the shape should
be shaded
.. versionadded:: 2.3
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`useWholeShape`
.. seealso:: :py:func:`setMaxDistance`
2017-06-06 11:03:05 +02:00
%End
2014-11-19 19:40:51 +11:00
bool useWholeShape() const;
2017-06-06 11:03:05 +02:00
%Docstring
Returns whether the shapeburst fill is set to cover the entire shape.
:return: True if shapeburst fill will cover the entire shape. If false, shapeburst is drawn to a distance of maxDistance from the polygon's boundary.
.. versionadded:: 2.3
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setUseWholeShape`
.. seealso:: :py:func:`maxDistance`
2017-06-06 11:03:05 +02:00
:rtype: bool
%End
2014-03-21 12:50:50 +11:00
void setMaxDistance( double maxDistance );
2017-06-06 11:03:05 +02:00
%Docstring
Sets the maximum distance to shape inside of the shape from the polygon's boundary.
\param maxDistance distance from boundary to shade. setUseWholeShape must be set to false for this parameter to take effect. Distance unit is controlled by setDistanceUnit.
.. versionadded:: 2.3
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`maxDistance`
.. seealso:: :py:func:`setUseWholeShape`
.. seealso:: :py:func:`setDistanceUnit`
2017-06-06 11:03:05 +02:00
%End
2014-03-21 12:50:50 +11:00
double maxDistance() const;
2017-06-06 11:03:05 +02:00
%Docstring
Returns the maximum distance from the shape's boundary which is shaded. This parameter is only effective if useWholeShape is false.
:return: the maximum distance from the polygon's boundary which is shaded. Distance units are indicated by distanceUnit.
.. versionadded:: 2.3
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`useWholeShape`
.. seealso:: :py:func:`setMaxDistance`
.. seealso:: :py:func:`distanceUnit`
2017-06-06 11:03:05 +02:00
:rtype: float
%End
2014-03-21 12:50:50 +11: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 unit for the maximum distance to shade inside of the shape from the polygon's boundary.
\param unit distance unit for the maximum distance
.. versionadded:: 2.3
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setMaxDistance`
.. seealso:: :py:func:`distanceUnit`
2017-06-06 11:03:05 +02:00
%End
2016-07-17 22:11:17 +10:00
QgsUnitTypes::RenderUnit distanceUnit() const;
2017-06-06 11:03:05 +02:00
%Docstring
Returns the unit for the maximum distance to shade inside of the shape from the polygon's boundary.
:return: distance unit for the maximum distance
.. versionadded:: 2.3
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`maxDistance`
.. seealso:: :py:func:`setDistanceUnit`
2017-06-06 11:03:05 +02:00
:rtype: QgsUnitTypes.RenderUnit
%End
2014-03-21 12:50:50 +11: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
2014-05-07 19:02:11 +02:00
2014-03-21 12:50:50 +11:00
void setColorType( ShapeburstColorType colorType );
2017-06-06 11:03:05 +02:00
%Docstring
Sets the color mode to use for the shapeburst fill. Shapeburst can either be drawn using a QgsColorRamp color ramp
or by simply specificing a start and end color. setColorType is used to specify which mode to use for the fill.
\param colorType color type to use for shapeburst fill
.. versionadded:: 2.3
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`colorType`
.. seealso:: :py:func:`setColor`
.. seealso:: :py:func:`setColor2`
.. seealso:: :py:func:`setColorRamp`
2017-06-06 11:03:05 +02:00
%End
2014-03-21 12:50:50 +11:00
ShapeburstColorType colorType() const;
2017-06-06 11:03:05 +02:00
%Docstring
Returns the color mode used for the shapeburst fill. Shapeburst can either be drawn using a QgsColorRamp color ramp
or by simply specificing a start and end color.
:return: current color mode used for the shapeburst fill
.. versionadded:: 2.3
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setColorType`
.. seealso:: :py:func:`color`
.. seealso:: :py:func:`color2`
.. seealso:: :py:func:`colorRamp`
2017-06-06 11:03:05 +02:00
:rtype: ShapeburstColorType
%End
2014-03-21 12:50:50 +11:00
2017-05-01 18:13:15 +02:00
void setColorRamp( QgsColorRamp *ramp );
2017-06-06 11:03:05 +02:00
%Docstring
Sets the color ramp used to draw the shapeburst fill. Color ramps are only used if setColorType is set ShapeburstColorType.ColorRamp.
\param ramp color ramp to use for shapeburst fill
.. versionadded:: 2.3
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setColorType`
.. seealso:: :py:func:`colorRamp`
2017-06-06 11:03:05 +02:00
%End
2017-05-01 18:13:15 +02:00
QgsColorRamp *colorRamp();
2017-06-06 11:03:05 +02:00
%Docstring
Returns the color ramp used for the shapeburst fill. The color ramp is only used if the colorType is set to ShapeburstColorType.ColorRamp
:return: a QgsColorRamp color ramp
.. versionadded:: 2.3
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setColorRamp`
.. seealso:: :py:func:`colorType`
2017-06-06 11:03:05 +02:00
:rtype: QgsColorRamp
%End
2014-03-21 12:50:50 +11:00
2017-05-01 18:13:15 +02:00
void setColor2( const QColor &color2 );
2017-06-06 11:03:05 +02:00
%Docstring
Sets the color for the endpoint of the shapeburst fill. This color is only used if setColorType is set ShapeburstColorType.SimpleTwoColor.
\param color2 QColor to use for endpoint of gradient
.. versionadded:: 2.3
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setColorType`
.. seealso:: :py:func:`color2`
2017-06-06 11:03:05 +02:00
%End
2014-03-21 12:50:50 +11:00
QColor color2() const;
2017-06-06 11:03:05 +02:00
%Docstring
Returns the color used for the endpoint of the shapeburst fill. This color is only used if the colorType is set to ShapeburstColorType.SimpleTwoColor
:return: a QColor indicating the color of the endpoint of the gradient
.. versionadded:: 2.3
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setColor2`
.. seealso:: :py:func:`colorType`
2017-06-06 11:03:05 +02:00
:rtype: QColor
%End
2014-05-07 19:02:11 +02:00
2014-11-19 19:40:51 +11:00
void setIgnoreRings( bool ignoreRings );
2017-06-06 11:03:05 +02:00
%Docstring
Sets whether the shapeburst fill should ignore polygon rings when calculating
the buffered shading.
\param ignoreRings Set to true if buffers should ignore interior rings for polygons.
.. versionadded:: 2.3
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`ignoreRings`
2017-06-06 11:03:05 +02:00
%End
2014-11-19 19:40:51 +11:00
bool ignoreRings() const;
2017-06-06 11:03:05 +02:00
%Docstring
Returns whether the shapeburst fill is set to ignore polygon interior rings.
:return: True if the shapeburst fill will ignore interior rings when calculating buffered shading.
.. versionadded:: 2.3
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setIgnoreRings`
2017-06-06 11:03:05 +02:00
:rtype: bool
%End
2014-03-21 12:50:50 +11:00
void setOffset( QPointF offset );
2017-06-06 11:03:05 +02:00
%Docstring
Sets the offset for the shapeburst fill.
\param offset QPointF indicating the horizontal/vertical offset amount
.. versionadded:: 2.3
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`offset`
.. seealso:: :py:func:`setOffsetUnit`
2017-06-06 11:03:05 +02:00
%End
2014-03-21 12:50:50 +11:00
QPointF offset() const;
2017-06-06 11:03:05 +02:00
%Docstring
Returns the offset for the shapeburst fill.
:return: a QPointF indicating the horizontal/vertical offset amount
.. versionadded:: 2.3
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setOffset`
.. seealso:: :py:func:`offsetUnit`
2017-06-06 11:03:05 +02:00
:rtype: QPointF
%End
2014-03-21 12:50:50 +11:00
2016-07-17 22:11:17 +10:00
void setOffsetUnit( QgsUnitTypes::RenderUnit unit );
2017-06-06 11:03:05 +02:00
%Docstring
Sets the units used for the offset for the shapeburst fill.
\param unit units for fill offset
.. versionadded:: 2.3
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setOffset`
.. seealso:: :py:func:`offsetUnit`
2017-06-06 11:03:05 +02:00
%End
2016-07-17 22:11:17 +10:00
QgsUnitTypes::RenderUnit offsetUnit() const;
2017-06-06 11:03:05 +02:00
%Docstring
Returns the units used for the offset of the shapeburst fill.
:return: units used for the fill offset
.. versionadded:: 2.3
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`offset`
.. seealso:: :py:func:`setOffsetUnit`
2017-06-06 11:03:05 +02:00
:rtype: QgsUnitTypes.RenderUnit
%End
2014-05-07 19:02:11 +02:00
2017-06-06 11:03:05 +02:00
void setOffsetMapUnitScale( const QgsMapUnitScale &scale );
2017-05-01 18:13:15 +02:00
const QgsMapUnitScale &offsetMapUnitScale() const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: QgsMapUnitScale
%End
virtual void setOutputUnit( QgsUnitTypes::RenderUnit unit );
virtual QgsUnitTypes::RenderUnit outputUnit() const;
virtual void setMapUnitScale( const QgsMapUnitScale &scale );
virtual QgsMapUnitScale mapUnitScale() const;
protected:
2014-03-21 12:50:50 +11:00
2014-05-07 19:02:11 +02:00
2014-03-21 12:50:50 +11:00
};
2016-08-06 11:01:42 +02:00
class QgsImageFillSymbolLayer: QgsFillSymbolLayer
2012-09-24 02:28:15 +02:00
{
2017-06-06 11:03:05 +02:00
%Docstring
Base class for polygon renderers generating texture images*
2012-09-24 02:28:15 +02:00
%End
2017-06-06 11:03:05 +02:00
%TypeHeaderCode
#include "qgsfillsymbollayer.h"
%End
2012-09-24 02:28:15 +02:00
public:
2017-06-06 11:03:05 +02:00
2012-09-24 02:28:15 +02:00
QgsImageFillSymbolLayer();
2017-06-06 11:03:05 +02:00
virtual void renderPolygon( const QPolygonF &points, QList<QPolygonF> *rings, QgsSymbolRenderContext &context );
2012-09-24 02:28:15 +02:00
2017-05-01 18:13:15 +02:00
virtual QgsSymbol *subSymbol();
virtual bool setSubSymbol( QgsSymbol *symbol /Transfer/ );
2013-04-19 15:20:44 +02:00
2017-02-22 17:13:57 +10:00
void setStrokeWidthUnit( QgsUnitTypes::RenderUnit unit );
2017-06-06 11:03:05 +02:00
%Docstring
Sets the units for the symbol's stroke width.
\param unit symbol units
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`strokeWidthUnit()`
2017-06-06 11:03:05 +02:00
%End
2016-07-18 09:42:45 +10:00
2017-02-22 17:13:57 +10:00
QgsUnitTypes::RenderUnit strokeWidthUnit() const;
2017-06-06 11:03:05 +02:00
%Docstring
Returns the units for the symbol's stroke width.
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setStrokeWidthUnit()`
2017-06-06 11:03:05 +02:00
:rtype: QgsUnitTypes.RenderUnit
%End
2014-05-07 19:02:11 +02:00
2017-06-06 11:03:05 +02:00
void setStrokeWidthMapUnitScale( const QgsMapUnitScale &scale );
2017-05-01 18:13:15 +02:00
const QgsMapUnitScale &strokeWidthMapUnitScale() const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: QgsMapUnitScale
%End
virtual void setOutputUnit( QgsUnitTypes::RenderUnit unit );
virtual QgsUnitTypes::RenderUnit outputUnit() const;
2014-05-07 19:02:11 +02:00
2014-04-06 21:14:02 +02:00
2017-06-06 11:03:05 +02:00
virtual void setMapUnitScale( const QgsMapUnitScale &scale );
virtual QgsMapUnitScale mapUnitScale() const;
2014-01-27 09:22:24 +01:00
2017-05-01 18:13:15 +02:00
virtual double estimateMaxBleed( const QgsRenderContext &context ) const;
2014-01-27 09:22:24 +01:00
2017-05-01 18:13:15 +02:00
virtual double dxfWidth( const QgsDxfExport &e, QgsSymbolRenderContext &context ) const;
2017-06-06 11:03:05 +02:00
2017-05-01 18:13:15 +02:00
virtual QColor dxfColor( QgsSymbolRenderContext &context ) const;
2017-06-06 11:03:05 +02:00
2014-01-27 09:22:24 +01:00
virtual Qt::PenStyle dxfPenStyle() const;
2015-11-04 16:03:46 +11:00
2017-06-06 11:03:05 +02:00
virtual QSet<QString> usedAttributes( const QgsRenderContext &context ) const;
2016-01-04 22:51:18 +11:00
protected:
2017-06-06 11:03:05 +02:00
2017-05-01 18:13:15 +02:00
virtual void applyDataDefinedSettings( QgsSymbolRenderContext &context );
2017-06-06 11:03:05 +02:00
%Docstring
Custom stroke
%End
2017-02-20 10:37:06 +10:00
private:
2017-05-01 18:13:15 +02:00
QgsImageFillSymbolLayer( const QgsImageFillSymbolLayer &other );
2012-09-24 02:28:15 +02:00
};
2014-11-17 23:30:00 +11:00
class QgsRasterFillSymbolLayer: QgsImageFillSymbolLayer
{
2017-06-06 11:03:05 +02:00
%Docstring
A class for filling symbols with a repeated raster image.
.. versionadded:: 2.7
%End
2014-11-17 23:30:00 +11:00
%TypeHeaderCode
2017-06-06 11:03:05 +02:00
#include "qgsfillsymbollayer.h"
2014-11-17 23:30:00 +11:00
%End
public:
enum FillCoordinateMode
{
Feature,
Viewport
};
2017-05-01 18:13:15 +02:00
QgsRasterFillSymbolLayer( const QString &imageFilePath = QString() );
2014-11-17 23:30:00 +11:00
2017-06-06 11:03:05 +02:00
static QgsSymbolLayer *create( const QgsStringMap &properties = QgsStringMap() ) /Factory/;
%Docstring
:rtype: QgsSymbolLayer
%End
virtual QString layerType() const;
virtual void renderPolygon( const QPolygonF &points, QList<QPolygonF> *rings, QgsSymbolRenderContext &context );
virtual void startRender( QgsSymbolRenderContext &context );
virtual void stopRender( QgsSymbolRenderContext &context );
virtual QgsStringMap properties() const;
virtual QgsRasterFillSymbolLayer *clone() const /Factory/;
2014-11-17 23:30:00 +11:00
2017-05-01 18:13:15 +02:00
virtual double estimateMaxBleed( const QgsRenderContext &context ) const;
2014-11-17 23:30:00 +11:00
2017-05-01 18:13:15 +02:00
virtual QgsSymbol *subSymbol();
virtual bool setSubSymbol( QgsSymbol *symbol /Transfer/ );
2014-11-17 23:30:00 +11:00
2017-05-01 18:13:15 +02:00
void setImageFilePath( const QString &imagePath );
2017-06-06 11:03:05 +02:00
%Docstring
Sets the path to the raster image used for the fill.
\param imagePath path to image file
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`imageFilePath`
2017-06-06 11:03:05 +02:00
%End
2014-11-17 23:30:00 +11:00
QString imageFilePath() const;
2017-06-06 11:03:05 +02:00
%Docstring
The path to the raster image used for the fill.
:return: path to image file
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setImageFilePath`
2017-06-06 11:03:05 +02:00
:rtype: str
%End
2014-11-17 23:30:00 +11:00
void setCoordinateMode( const FillCoordinateMode mode );
2017-06-06 11:03:05 +02:00
%Docstring
Set the coordinate mode for fill. Controls how the top left corner of the image
fill is positioned relative to the feature.
\param mode coordinate mode
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`coordinateMode`
2017-06-06 11:03:05 +02:00
%End
2014-11-17 23:30:00 +11:00
FillCoordinateMode coordinateMode() const;
2017-06-06 11:03:05 +02:00
%Docstring
Coordinate mode for fill. Controls how the top left corner of the image
fill is positioned relative to the feature.
:return: coordinate mode
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setCoordinateMode`
2017-06-06 11:03:05 +02:00
:rtype: FillCoordinateMode
%End
2014-11-17 23:30:00 +11:00
2017-05-30 11:07:22 +10:00
void setOpacity( const double opacity );
2017-06-06 11:03:05 +02:00
%Docstring
Sets the ``opacity`` for the raster image used in the fill.
\param opacity opacity value between 0 (fully transparent) and 1 (fully opaque)
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`opacity()`
2017-06-06 11:03:05 +02:00
%End
2017-05-30 11:07:22 +10:00
double opacity() const;
2017-06-06 11:03:05 +02:00
%Docstring
Returns the opacity for the raster image used in the fill.
:return: opacity value between 0 (fully transparent) and 1 (fully opaque)
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setOpacity()`
2017-06-06 11:03:05 +02:00
:rtype: float
%End
2014-11-17 23:30:00 +11:00
2016-02-02 19:46:18 +11:00
void setOffset( QPointF offset );
2017-06-06 11:03:05 +02:00
%Docstring
Sets the offset for the fill.
\param offset offset for fill
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`offset`
.. seealso:: :py:func:`setOffsetUnit`
.. seealso:: :py:func:`setOffsetMapUnitScale`
2017-06-06 11:03:05 +02:00
%End
2014-11-17 23:30:00 +11:00
QPointF offset() const;
2017-06-06 11:03:05 +02:00
%Docstring
Returns the offset for the fill.
:return: offset for fill
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setOffset`
.. seealso:: :py:func:`offsetUnit`
.. seealso:: :py:func:`offsetMapUnitScale`
2017-06-06 11:03:05 +02:00
:rtype: QPointF
%End
2014-11-17 23:30:00 +11:00
2016-07-17 22:11:17 +10:00
void setOffsetUnit( const QgsUnitTypes::RenderUnit unit );
2017-06-06 11:03:05 +02:00
%Docstring
Sets the units for the fill's offset.
\param unit units for offset
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`offsetUnit`
.. seealso:: :py:func:`setOffset`
.. seealso:: :py:func:`setOffsetMapUnitScale`
2017-06-06 11:03:05 +02:00
%End
2016-07-17 22:11:17 +10:00
QgsUnitTypes::RenderUnit offsetUnit() const;
2017-06-06 11:03:05 +02:00
%Docstring
Returns the units for the fill's offset.
:return: units for offset
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setOffsetUnit`
.. seealso:: :py:func:`offset`
.. seealso:: :py:func:`offsetMapUnitScale`
2017-06-06 11:03:05 +02:00
:rtype: QgsUnitTypes.RenderUnit
%End
2014-11-17 23:30:00 +11:00
2017-05-01 18:13:15 +02:00
void setOffsetMapUnitScale( const QgsMapUnitScale &scale );
2017-06-06 11:03:05 +02:00
%Docstring
Sets the map unit scale for the fill's offset.
\param scale map unit scale for offset
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`offsetMapUnitScale`
.. seealso:: :py:func:`setOffset`
.. seealso:: :py:func:`setOffsetUnit`
2017-06-06 11:03:05 +02:00
%End
2017-05-01 18:13:15 +02:00
const QgsMapUnitScale &offsetMapUnitScale() const;
2017-06-06 11:03:05 +02:00
%Docstring
Returns the map unit scale for the fill's offset.
:return: map unit scale for offset
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setOffsetMapUnitScale`
.. seealso:: :py:func:`offset`
.. seealso:: :py:func:`offsetUnit`
2017-06-06 11:03:05 +02:00
:rtype: QgsMapUnitScale
%End
2014-11-17 23:30:00 +11:00
void setWidth( const double width );
2017-06-06 11:03:05 +02:00
%Docstring
Sets the width for scaling the image used in the fill. The image's height will also be
scaled to maintain the image's aspect ratio.
\param width width for scaling the image
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`width`
.. seealso:: :py:func:`setWidthUnit`
.. seealso:: :py:func:`setWidthMapUnitScale`
2017-06-06 11:03:05 +02:00
%End
2014-11-17 23:30:00 +11:00
double width() const;
2017-06-06 11:03:05 +02:00
%Docstring
Returns the width used for scaling the image used in the fill. The image's height is
scaled to maintain the image's aspect ratio.
:return: width used for scaling the image
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setWidth`
.. seealso:: :py:func:`widthUnit`
.. seealso:: :py:func:`widthMapUnitScale`
2017-06-06 11:03:05 +02:00
:rtype: float
%End
2014-11-17 23:30:00 +11:00
2016-07-17 22:11:17 +10:00
void setWidthUnit( const QgsUnitTypes::RenderUnit unit );
2017-06-06 11:03:05 +02:00
%Docstring
Sets the units for the image's width.
\param unit units for width
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`widthUnit`
.. seealso:: :py:func:`setWidth`
.. seealso:: :py:func:`setWidthMapUnitScale`
2017-06-06 11:03:05 +02:00
%End
2016-07-17 22:11:17 +10:00
QgsUnitTypes::RenderUnit widthUnit() const;
2017-06-06 11:03:05 +02:00
%Docstring
Returns the units for the image's width.
:return: units for width
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setWidthUnit`
.. seealso:: :py:func:`width`
.. seealso:: :py:func:`widthMapUnitScale`
2017-06-06 11:03:05 +02:00
:rtype: QgsUnitTypes.RenderUnit
%End
2014-11-17 23:30:00 +11:00
2017-05-01 18:13:15 +02:00
void setWidthMapUnitScale( const QgsMapUnitScale &scale );
2017-06-06 11:03:05 +02:00
%Docstring
Sets the map unit scale for the image's width.
\param scale map unit scale for width
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`widthMapUnitScale`
.. seealso:: :py:func:`setWidth`
.. seealso:: :py:func:`setWidthUnit`
2017-06-06 11:03:05 +02:00
%End
2017-05-01 18:13:15 +02:00
const QgsMapUnitScale &widthMapUnitScale() const;
2017-06-06 11:03:05 +02:00
%Docstring
Returns the map unit scale for the image's width.
:return: map unit scale for width
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setWidthMapUnitScale`
.. seealso:: :py:func:`width`
.. seealso:: :py:func:`widthUnit`
2017-06-06 11:03:05 +02:00
:rtype: QgsMapUnitScale
%End
2014-11-17 23:30:00 +11:00
protected:
2017-06-06 11:03:05 +02:00
virtual void applyDataDefinedSettings( QgsSymbolRenderContext &context );
%Docstring
Path to the image file
%End
2014-11-17 23:30:00 +11:00
};
2012-09-24 02:28:15 +02:00
class QgsSVGFillSymbolLayer: QgsImageFillSymbolLayer
{
2017-06-06 11:03:05 +02:00
%Docstring
A class for svg fill patterns. The class automatically scales the pattern to
the appropriate pixel dimensions of the output device*
2012-09-24 02:28:15 +02:00
%End
2017-06-06 11:03:05 +02:00
%TypeHeaderCode
#include "qgsfillsymbollayer.h"
%End
2012-09-24 02:28:15 +02:00
public:
2017-06-06 11:03:05 +02:00
QgsSVGFillSymbolLayer( const QString &svgFilePath, double width = 20, double rotation = 0.0 );
%Docstring
Constructs SVG fill symbol layer with picture from given absolute path to a SVG file
%End
QgsSVGFillSymbolLayer( const QByteArray &svgData, double width = 20, double rotation = 0.0 );
2012-09-24 02:28:15 +02:00
~QgsSVGFillSymbolLayer();
2017-06-06 11:03:05 +02:00
static QgsSymbolLayer *create( const QgsStringMap &properties = QgsStringMap() ) /Factory/;
%Docstring
:rtype: QgsSymbolLayer
%End
static QgsSymbolLayer *createFromSld( QDomElement &element ) /Factory/;
%Docstring
:rtype: QgsSymbolLayer
%End
2012-09-24 02:28:15 +02:00
2017-06-06 11:03:05 +02:00
static void resolvePaths( QgsStringMap &properties, const QgsPathResolver &pathResolver, bool saving );
%Docstring
Turns relative paths in properties map to absolute when reading and vice versa when writing.
Used internally when reading/writing symbols.
.. versionadded:: 3.0
%End
2012-09-24 02:28:15 +02:00
2017-06-06 11:03:05 +02:00
virtual QString layerType() const;
virtual void startRender( QgsSymbolRenderContext &context );
virtual void stopRender( QgsSymbolRenderContext &context );
virtual QgsStringMap properties() const;
2012-09-24 02:28:15 +02:00
2017-05-01 18:13:15 +02:00
virtual QgsSVGFillSymbolLayer *clone() const /Factory/;
2012-09-24 02:28:15 +02:00
2017-06-06 11:03:05 +02:00
virtual void toSld( QDomDocument &doc, QDomElement &element, const QgsStringMap &props ) const;
2017-05-01 18:13:15 +02:00
void setSvgFilePath( const QString &svgPath );
2012-09-24 02:28:15 +02:00
QString svgFilePath() const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: str
%End
2012-09-24 02:28:15 +02:00
void setPatternWidth( double width );
double patternWidth() const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: float
%End
2012-09-24 02:28:15 +02:00
2017-05-01 18:13:15 +02:00
void setSvgFillColor( const QColor &c );
2012-09-24 02:28:15 +02:00
QColor svgFillColor() const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: QColor
%End
2017-05-01 18:13:15 +02:00
void setSvgStrokeColor( const QColor &c );
2017-02-22 17:13:57 +10:00
QColor svgStrokeColor() const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: QColor
%End
2017-02-22 17:13:57 +10:00
void setSvgStrokeWidth( double w );
double svgStrokeWidth() const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: float
%End
2013-04-19 15:20:44 +02:00
2016-07-17 22:11:17 +10:00
void setPatternWidthUnit( QgsUnitTypes::RenderUnit unit );
2017-06-06 11:03:05 +02:00
%Docstring
Sets the units for the width of the SVG images in the pattern.
\param unit width units
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`patternWidthUnit()`
2017-06-06 11:03:05 +02:00
%End
2016-07-18 09:42:45 +10:00
2016-07-17 22:11:17 +10:00
QgsUnitTypes::RenderUnit patternWidthUnit() const;
2017-06-06 11:03:05 +02:00
%Docstring
Returns the units for the width of the SVG images in the pattern.
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setPatternWidthUnit()`
2017-06-06 11:03:05 +02:00
:rtype: QgsUnitTypes.RenderUnit
%End
2014-05-07 19:02:11 +02:00
2017-06-06 11:03:05 +02:00
void setPatternWidthMapUnitScale( const QgsMapUnitScale &scale );
2017-05-01 18:13:15 +02:00
const QgsMapUnitScale &patternWidthMapUnitScale() const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: QgsMapUnitScale
%End
2013-04-19 15:20:44 +02:00
2017-02-22 17:13:57 +10:00
void setSvgStrokeWidthUnit( QgsUnitTypes::RenderUnit unit );
2017-06-06 11:03:05 +02:00
%Docstring
Sets the units for the stroke width.
\param unit width units
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`svgStrokeWidthUnit()`
2017-06-06 11:03:05 +02:00
%End
2016-07-18 09:42:45 +10:00
2017-02-22 17:13:57 +10:00
QgsUnitTypes::RenderUnit svgStrokeWidthUnit() const;
2017-06-06 11:03:05 +02:00
%Docstring
Returns the units for the stroke width.
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setSvgStrokeWidthUnit()`
2017-06-06 11:03:05 +02:00
:rtype: QgsUnitTypes.RenderUnit
%End
2014-05-07 19:02:11 +02:00
2017-06-06 11:03:05 +02:00
void setSvgStrokeWidthMapUnitScale( const QgsMapUnitScale &scale );
2017-05-01 18:13:15 +02:00
const QgsMapUnitScale &svgStrokeWidthMapUnitScale() const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: QgsMapUnitScale
%End
virtual void setOutputUnit( QgsUnitTypes::RenderUnit unit );
virtual QgsUnitTypes::RenderUnit outputUnit() const;
virtual void setMapUnitScale( const QgsMapUnitScale &scale );
2013-04-19 15:20:44 +02:00
2017-06-06 11:03:05 +02:00
virtual QgsMapUnitScale mapUnitScale() const;
2013-04-19 15:20:44 +02:00
2014-05-07 19:02:11 +02:00
2013-06-23 16:00:16 +02:00
protected:
2017-06-06 11:03:05 +02:00
virtual void applyDataDefinedSettings( QgsSymbolRenderContext &context );
2012-09-24 02:28:15 +02:00
};
class QgsLinePatternFillSymbolLayer: QgsImageFillSymbolLayer
{
2017-06-06 11:03:05 +02:00
2012-09-24 02:28:15 +02:00
%TypeHeaderCode
2017-06-06 11:03:05 +02:00
#include "qgsfillsymbollayer.h"
2012-09-24 02:28:15 +02:00
%End
public:
QgsLinePatternFillSymbolLayer();
~QgsLinePatternFillSymbolLayer();
2017-05-01 18:13:15 +02:00
static QgsSymbolLayer *create( const QgsStringMap &properties = QgsStringMap() ) /Factory/;
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 ) /Factory/;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: QgsSymbolLayer
%End
virtual QString layerType() const;
virtual void startRender( QgsSymbolRenderContext &context );
2012-09-24 02:28:15 +02:00
2017-06-06 11:03:05 +02:00
virtual void stopRender( QgsSymbolRenderContext &context );
2012-09-24 02:28:15 +02:00
2017-06-06 11:03:05 +02:00
virtual QgsStringMap properties() const;
2012-09-24 02:28:15 +02:00
2017-05-01 18:13:15 +02:00
virtual QgsLinePatternFillSymbolLayer *clone() const /Factory/;
2012-09-24 02:28:15 +02:00
2017-06-06 11:03:05 +02:00
virtual void toSld( QDomDocument &doc, QDomElement &element, const QgsStringMap &props ) const;
virtual double estimateMaxBleed( const QgsRenderContext &context ) const;
2014-01-27 09:22:24 +01:00
2013-06-23 16:00:16 +02:00
QString ogrFeatureStyleWidth( double widthScaleFactor ) const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: str
%End
2013-06-23 16:00:16 +02:00
2012-09-24 02:28:15 +02:00
void setLineAngle( double a );
double lineAngle() const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: float
%End
2016-07-18 09:42:45 +10:00
2012-09-24 02:28:15 +02:00
void setDistance( double d );
2017-06-06 11:03:05 +02:00
%Docstring
Sets the distance between lines in the fill pattern.
\param d distance. Units are specified by setDistanceUnit()
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`distance()`
.. seealso:: :py:func:`setDistanceUnit()`
2017-06-06 11:03:05 +02:00
%End
2016-07-18 09:42:45 +10:00
2012-09-24 02:28:15 +02:00
double distance() const;
2017-06-06 11:03:05 +02:00
%Docstring
Returns the distance between lines in the fill pattern. Units are retrieved by distanceUnit().
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setDistance()`
.. seealso:: :py:func:`distanceUnit()`
2017-06-06 11:03:05 +02:00
:rtype: float
%End
2012-09-24 02:28:15 +02:00
void setLineWidth( double w );
double lineWidth() const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: float
%End
virtual void setColor( const QColor &c );
virtual QColor color() const;
2012-09-24 02:28:15 +02:00
void setOffset( double offset );
double offset() const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: float
%End
2013-04-19 15:20:44 +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 between lines in the fill pattern.
\param unit distance units
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`distanceUnit()`
.. seealso:: :py:func:`setDistance()`
2017-06-06 11:03:05 +02:00
%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 between lines in the fill pattern.
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setDistanceUnit()`
.. seealso:: :py:func:`distance()`
2017-06-06 11:03:05 +02:00
:rtype: QgsUnitTypes.RenderUnit
%End
2014-05-07 19:02:11 +02:00
2017-06-06 11:03:05 +02:00
void setDistanceMapUnitScale( const QgsMapUnitScale &scale );
2017-05-01 18:13:15 +02:00
const QgsMapUnitScale &distanceMapUnitScale() const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: QgsMapUnitScale
%End
2013-04-19 15:20:44 +02:00
2016-07-17 22:11:17 +10:00
void setLineWidthUnit( QgsUnitTypes::RenderUnit unit );
2017-06-06 11:03:05 +02:00
%Docstring
Sets the units for the line's width.
\param unit width units
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`lineWidthUnit()`
2017-06-06 11:03:05 +02:00
%End
2016-07-18 09:42:45 +10:00
2016-07-17 22:11:17 +10:00
QgsUnitTypes::RenderUnit lineWidthUnit() const;
2017-06-06 11:03:05 +02:00
%Docstring
Returns the units for the line's width.
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setLineWidthUnit()`
2017-06-06 11:03:05 +02:00
:rtype: QgsUnitTypes.RenderUnit
%End
2014-05-07 19:02:11 +02:00
2017-06-06 11:03:05 +02:00
void setLineWidthMapUnitScale( const QgsMapUnitScale &scale );
2017-05-01 18:13:15 +02:00
const QgsMapUnitScale &lineWidthMapUnitScale() const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: QgsMapUnitScale
%End
2013-04-19 15:20:44 +02:00
2016-07-17 22:11:17 +10:00
void setOffsetUnit( QgsUnitTypes::RenderUnit unit );
2017-06-06 11:03:05 +02:00
%Docstring
Sets the units for the line pattern's offset.
\param unit offset units
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`offsetUnit()`
2017-06-06 11:03:05 +02:00
%End
2016-07-18 09:42:45 +10:00
2016-07-17 22:11:17 +10:00
QgsUnitTypes::RenderUnit offsetUnit() const;
2017-06-06 11:03:05 +02:00
%Docstring
Returns the units for the line pattern's offset.
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setOffsetUnit()`
2017-06-06 11:03:05 +02:00
:rtype: QgsUnitTypes.RenderUnit
%End
2014-05-07 19:02:11 +02:00
2017-06-06 11:03:05 +02:00
void setOffsetMapUnitScale( const QgsMapUnitScale &scale );
2017-05-01 18:13:15 +02:00
const QgsMapUnitScale &offsetMapUnitScale() const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: QgsMapUnitScale
%End
2013-04-19 15:20:44 +02:00
2017-06-06 11:03:05 +02:00
virtual void setOutputUnit( QgsUnitTypes::RenderUnit unit );
2014-05-07 19:02:11 +02:00
2017-06-06 11:03:05 +02:00
virtual QgsUnitTypes::RenderUnit outputUnit() const;
2014-01-27 09:22:24 +01:00
2017-06-06 11:03:05 +02:00
virtual void setMapUnitScale( const QgsMapUnitScale &scale );
2015-05-19 16:54:37 +10:00
2017-06-06 11:03:05 +02:00
virtual QgsMapUnitScale mapUnitScale() const;
2017-02-20 10:37:06 +10:00
2017-06-06 11:03:05 +02:00
virtual bool setSubSymbol( QgsSymbol *symbol /Transfer/ );
virtual QgsSymbol *subSymbol();
virtual QSet<QString> usedAttributes( const QgsRenderContext &context ) const;
protected:
virtual void applyDataDefinedSettings( QgsSymbolRenderContext &context );
%Docstring
Offset perpendicular to line direction
%End
private:
QgsLinePatternFillSymbolLayer( const QgsLinePatternFillSymbolLayer &other );
2012-09-24 02:28:15 +02:00
};
2017-06-06 11:03:05 +02:00
class QgsPointPatternFillSymbolLayer: QgsImageFillSymbolLayer
2012-09-24 02:28:15 +02:00
{
2017-06-06 11:03:05 +02:00
2012-09-24 02:28:15 +02:00
%TypeHeaderCode
2017-06-06 11:03:05 +02:00
#include "qgsfillsymbollayer.h"
2012-09-24 02:28:15 +02:00
%End
public:
QgsPointPatternFillSymbolLayer();
~QgsPointPatternFillSymbolLayer();
2017-05-01 18:13:15 +02:00
static QgsSymbolLayer *create( const QgsStringMap &properties = QgsStringMap() ) /Factory/;
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 ) /Factory/;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: QgsSymbolLayer
%End
2012-09-24 02:28:15 +02:00
2017-06-06 11:03:05 +02:00
virtual QString layerType() const;
2012-09-24 02:28:15 +02:00
2017-06-06 11:03:05 +02:00
virtual void startRender( QgsSymbolRenderContext &context );
virtual void stopRender( QgsSymbolRenderContext &context );
virtual QgsStringMap properties() const;
2012-09-24 02:28:15 +02:00
2017-05-01 18:13:15 +02:00
virtual QgsPointPatternFillSymbolLayer *clone() const /Factory/;
2012-09-24 02:28:15 +02:00
2017-06-06 11:03:05 +02:00
virtual void toSld( QDomDocument &doc, QDomElement &element, const QgsStringMap &props ) const;
virtual double estimateMaxBleed( const QgsRenderContext &context ) const;
2014-01-27 09:22:24 +01:00
2012-09-24 02:28:15 +02:00
double distanceX() const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: float
%End
2012-09-24 02:28:15 +02:00
void setDistanceX( double d );
double distanceY() const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: float
%End
2012-09-24 02:28:15 +02:00
void setDistanceY( double d );
double displacementX() const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: float
%End
2012-09-24 02:28:15 +02:00
void setDisplacementX( double d );
double displacementY() const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: float
%End
2012-09-24 02:28:15 +02:00
void setDisplacementY( double d );
2017-06-06 11:03:05 +02:00
virtual bool setSubSymbol( QgsSymbol *symbol /Transfer/ );
2017-05-01 18:13:15 +02:00
virtual QgsSymbol *subSymbol();
2013-04-19 15:20:44 +02:00
2016-07-17 22:11:17 +10:00
void setDistanceXUnit( QgsUnitTypes::RenderUnit unit );
2017-06-06 11:03:05 +02:00
%Docstring
Sets the units for the horizontal distance between points in the pattern.
\param unit distance units
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`distanceXUnit()`
.. seealso:: :py:func:`setDistanceYUnit()`
2017-06-06 11:03:05 +02:00
%End
2016-07-18 09:42:45 +10:00
2016-07-17 22:11:17 +10:00
QgsUnitTypes::RenderUnit distanceXUnit() const;
2017-06-06 11:03:05 +02:00
%Docstring
Returns the units for the horizontal distance between points in the pattern.
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setDistanceXUnit()`
.. seealso:: :py:func:`distanceYUnit()`
2017-06-06 11:03:05 +02:00
:rtype: QgsUnitTypes.RenderUnit
%End
2014-05-07 19:02:11 +02:00
2017-06-06 11:03:05 +02:00
void setDistanceXMapUnitScale( const QgsMapUnitScale &scale );
2017-05-01 18:13:15 +02:00
const QgsMapUnitScale &distanceXMapUnitScale() const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: QgsMapUnitScale
%End
2013-04-19 15:20:44 +02:00
2016-07-17 22:11:17 +10:00
void setDistanceYUnit( QgsUnitTypes::RenderUnit unit );
2017-06-06 11:03:05 +02:00
%Docstring
Sets the units for the vertical distance between points in the pattern.
\param unit distance units
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`distanceYUnit()`
.. seealso:: :py:func:`setDistanceXUnit()`
2017-06-06 11:03:05 +02:00
%End
2016-07-18 09:42:45 +10:00
2016-07-17 22:11:17 +10:00
QgsUnitTypes::RenderUnit distanceYUnit() const;
2017-06-06 11:03:05 +02:00
%Docstring
Returns the units for the vertical distance between points in the pattern.
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setDistanceYUnit()`
.. seealso:: :py:func:`distanceXUnit()`
2017-06-06 11:03:05 +02:00
:rtype: QgsUnitTypes.RenderUnit
%End
2014-05-07 19:02:11 +02:00
2017-06-06 11:03:05 +02:00
void setDistanceYMapUnitScale( const QgsMapUnitScale &scale );
2017-05-01 18:13:15 +02:00
const QgsMapUnitScale &distanceYMapUnitScale() const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: QgsMapUnitScale
%End
2013-04-19 15:20:44 +02:00
2016-07-17 22:11:17 +10:00
void setDisplacementXUnit( QgsUnitTypes::RenderUnit unit );
2017-06-06 11:03:05 +02:00
%Docstring
Sets the units for the horizontal displacement between rows in the pattern.
\param unit displacement units
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`displacementXUnit()`
.. seealso:: :py:func:`setDisplacementYUnit()`
2017-06-06 11:03:05 +02:00
%End
2016-07-17 22:11:17 +10:00
QgsUnitTypes::RenderUnit displacementXUnit() const;
2017-06-06 11:03:05 +02:00
%Docstring
Returns the units for the horizontal displacement between rows in the pattern.
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setDisplacementXUnit()`
.. seealso:: :py:func:`displacementYUnit()`
2017-06-06 11:03:05 +02:00
:rtype: QgsUnitTypes.RenderUnit
%End
2014-05-07 19:02:11 +02:00
2017-06-06 11:03:05 +02:00
void setDisplacementXMapUnitScale( const QgsMapUnitScale &scale );
2017-05-01 18:13:15 +02:00
const QgsMapUnitScale &displacementXMapUnitScale() const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: QgsMapUnitScale
%End
2013-04-19 15:20:44 +02:00
2016-07-17 22:11:17 +10:00
void setDisplacementYUnit( QgsUnitTypes::RenderUnit unit );
2017-06-06 11:03:05 +02:00
%Docstring
Sets the units for the vertical displacement between rows in the pattern.
\param unit displacement units
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`displacementYUnit()`
.. seealso:: :py:func:`setDisplacementXUnit()`
2017-06-06 11:03:05 +02:00
%End
2016-07-17 22:11:17 +10:00
QgsUnitTypes::RenderUnit displacementYUnit() const;
2017-06-06 11:03:05 +02:00
%Docstring
Returns the units for the vertical displacement between rows in the pattern.
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setDisplacementYUnit()`
.. seealso:: :py:func:`displacementXUnit()`
2017-06-06 11:03:05 +02:00
:rtype: QgsUnitTypes.RenderUnit
%End
2014-05-07 19:02:11 +02:00
2017-06-06 11:03:05 +02:00
void setDisplacementYMapUnitScale( const QgsMapUnitScale &scale );
2017-05-01 18:13:15 +02:00
const QgsMapUnitScale &displacementYMapUnitScale() const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: QgsMapUnitScale
%End
virtual void setOutputUnit( QgsUnitTypes::RenderUnit unit );
2013-04-19 15:20:44 +02:00
2017-06-06 11:03:05 +02:00
virtual QgsUnitTypes::RenderUnit outputUnit() const;
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
2017-05-01 18:13:15 +02:00
virtual QSet<QString> usedAttributes( const QgsRenderContext &context ) const;
2017-06-06 11:03:05 +02:00
virtual void setColor( const QColor &c );
2014-01-27 09:22:24 +01:00
2016-05-07 21:52:05 +10:00
virtual QColor color() const;
2013-06-23 16:00:16 +02:00
protected:
2017-02-20 10:37:06 +10:00
2017-06-06 11:03:05 +02:00
virtual void applyDataDefinedSettings( QgsSymbolRenderContext &context );
2017-02-20 10:37:06 +10:00
2017-06-06 11:03:05 +02:00
private:
2017-05-01 18:13:15 +02:00
QgsPointPatternFillSymbolLayer( const QgsPointPatternFillSymbolLayer &other );
2012-09-24 02:28:15 +02:00
};
2016-08-06 11:01:42 +02:00
class QgsCentroidFillSymbolLayer : QgsFillSymbolLayer
2012-09-24 02:28:15 +02:00
{
2017-06-06 11:03:05 +02:00
2012-09-24 02:28:15 +02:00
%TypeHeaderCode
2017-06-06 11:03:05 +02:00
#include "qgsfillsymbollayer.h"
2012-09-24 02:28:15 +02:00
%End
public:
2016-08-06 11:01:42 +02:00
QgsCentroidFillSymbolLayer();
2012-09-24 02:28:15 +02:00
2017-05-01 18:13:15 +02:00
static QgsSymbolLayer *create( const QgsStringMap &properties = QgsStringMap() ) /Factory/;
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 ) /Factory/;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: QgsSymbolLayer
%End
2012-09-24 02:28:15 +02:00
2017-06-06 11:03:05 +02:00
virtual QString layerType() const;
2012-09-24 02:28:15 +02:00
2017-06-06 11:03:05 +02:00
virtual void startRender( QgsSymbolRenderContext &context );
2012-09-24 02:28:15 +02:00
2017-06-06 11:03:05 +02:00
virtual void stopRender( QgsSymbolRenderContext &context );
virtual void renderPolygon( const QPolygonF &points, QList<QPolygonF> *rings, QgsSymbolRenderContext &context );
virtual QgsStringMap properties() const;
2012-09-24 02:28:15 +02:00
2017-05-01 18:13:15 +02:00
virtual QgsCentroidFillSymbolLayer *clone() const /Factory/;
2012-09-24 02:28:15 +02:00
2017-06-06 11:03:05 +02:00
virtual void toSld( QDomDocument &doc, QDomElement &element, const QgsStringMap &props ) const;
2012-09-24 02:28:15 +02:00
2017-06-06 11:03:05 +02:00
virtual void setColor( const QColor &color );
2013-06-23 16:00:16 +02:00
2017-06-06 11:03:05 +02:00
virtual QColor color() const;
virtual QgsSymbol *subSymbol();
virtual bool setSubSymbol( QgsSymbol *symbol /Transfer/ );
virtual void setOutputUnit( QgsUnitTypes::RenderUnit unit );
virtual QgsUnitTypes::RenderUnit outputUnit() const;
virtual void setMapUnitScale( const QgsMapUnitScale &scale );
virtual QgsMapUnitScale mapUnitScale() const;
2014-05-07 19:02:11 +02:00
2014-01-27 09:22:24 +01:00
2017-05-01 18:13:15 +02:00
virtual QSet<QString> usedAttributes( const QgsRenderContext &context ) const;
2015-11-10 17:08:27 +11:00
void setPointOnSurface( bool pointOnSurface );
bool pointOnSurface() const;
2017-06-06 11:03:05 +02:00
%Docstring
:rtype: bool
%End
2016-04-23 21:40:36 +07:00
void setPointOnAllParts( bool pointOnAllParts );
2017-06-06 11:03:05 +02:00
%Docstring
Sets whether a point is drawn for all parts or only on the biggest part of multi-part features.
.. versionadded:: 2.16
%End
2016-04-23 21:40:36 +07:00
bool pointOnAllParts() const;
2017-06-06 11:03:05 +02:00
%Docstring
Returns whether a point is drawn for all parts or only on the biggest part of multi-part features.
.. versionadded:: 2.16
:rtype: bool
%End
2017-02-20 10:37:06 +10:00
2017-06-06 11:03:05 +02:00
protected:
2017-02-20 10:37:06 +10:00
2017-06-06 11:03:05 +02:00
private:
2017-05-01 18:13:15 +02:00
QgsCentroidFillSymbolLayer( const QgsCentroidFillSymbolLayer &other );
2012-09-24 02:28:15 +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/qgsfillsymbollayer.h *
2017-06-06 11:03:05 +02:00
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/