Skip to content

Commit a947bb3

Browse files
committedNov 9, 2018
Dox++
1 parent 73d0ced commit a947bb3

File tree

2 files changed

+38
-2
lines changed

2 files changed

+38
-2
lines changed
 

‎python/core/auto_generated/symbology/qgslinesymbollayer.sip.in

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,26 @@ Returns the units for lengths used in the custom dash pattern.
103103
void setCustomDashVector( const QVector<qreal> &vector );
104104

105105
bool drawInsidePolygon() const;
106+
%Docstring
107+
Returns true if the line should only be drawn inside polygons, and any portion
108+
of the line which falls outside the polygon should be clipped away.
109+
110+
This setting only has an effect when the line symbol is being
111+
used to render polygon rings.
112+
113+
.. seealso:: :py:func:`setDrawInsidePolygon`
114+
%End
115+
106116
void setDrawInsidePolygon( bool drawInsidePolygon );
117+
%Docstring
118+
Sets whether the line should only be drawn inside polygons, and any portion
119+
of the line which falls outside the polygon should be clipped away.
120+
121+
This setting only has an effect when the line symbol is being
122+
used to render polygon rings.
123+
124+
.. seealso:: :py:func:`drawInsidePolygon`
125+
%End
107126

108127
virtual QVector<qreal> dxfCustomDashPattern( QgsUnitTypes::RenderUnit &unit ) const;
109128

‎src/core/symbology/qgslinesymbollayer.h

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,26 @@ class CORE_EXPORT QgsSimpleLineSymbolLayer : public QgsLineSymbolLayer
109109
QVector<qreal> customDashVector() const { return mCustomDashVector; }
110110
void setCustomDashVector( const QVector<qreal> &vector ) { mCustomDashVector = vector; }
111111

112-
//Returns true if the line should only be drawn inside the polygon
112+
/**
113+
* Returns true if the line should only be drawn inside polygons, and any portion
114+
* of the line which falls outside the polygon should be clipped away.
115+
*
116+
* This setting only has an effect when the line symbol is being
117+
* used to render polygon rings.
118+
*
119+
* \see setDrawInsidePolygon()
120+
*/
113121
bool drawInsidePolygon() const { return mDrawInsidePolygon; }
114-
//Set to true if the line should only be drawn inside the polygon
122+
123+
/**
124+
* Sets whether the line should only be drawn inside polygons, and any portion
125+
* of the line which falls outside the polygon should be clipped away.
126+
*
127+
* This setting only has an effect when the line symbol is being
128+
* used to render polygon rings.
129+
*
130+
* \see drawInsidePolygon()
131+
*/
115132
void setDrawInsidePolygon( bool drawInsidePolygon ) { mDrawInsidePolygon = drawInsidePolygon; }
116133

117134
QVector<qreal> dxfCustomDashPattern( QgsUnitTypes::RenderUnit &unit ) const override;

0 commit comments

Comments
 (0)
Please sign in to comment.