Skip to content

Commit a1a35e9

Browse files
committed
Dox++
1 parent f07462b commit a1a35e9

File tree

2 files changed

+250
-40
lines changed

2 files changed

+250
-40
lines changed

python/core/auto_generated/symbology/qgsfillsymbollayer.sip.in

Lines changed: 129 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1308,6 +1308,9 @@ Returns the map unit scale for the pattern's stroke.
13081308

13091309
class QgsLinePatternFillSymbolLayer: QgsImageFillSymbolLayer
13101310
{
1311+
%Docstring
1312+
A symbol fill consisting of repeated parallel lines.
1313+
%End
13111314

13121315
%TypeHeaderCode
13131316
#include "qgsfillsymbollayer.h"
@@ -1317,33 +1320,51 @@ class QgsLinePatternFillSymbolLayer: QgsImageFillSymbolLayer
13171320
~QgsLinePatternFillSymbolLayer();
13181321

13191322
static QgsSymbolLayer *create( const QgsStringMap &properties = QgsStringMap() ) /Factory/;
1323+
%Docstring
1324+
Creates a new QgsLinePatternFillSymbolLayer from a ``properties`` map. The caller takes
1325+
ownership of the returned object.
1326+
%End
1327+
13201328
static QgsSymbolLayer *createFromSld( QDomElement &element ) /Factory/;
1329+
%Docstring
1330+
Creates a new QgsLinePatternFillSymbolLayer from a SLD ``element``. The caller takes
1331+
ownership of the returned object.
1332+
%End
13211333

13221334
virtual QString layerType() const;
13231335

1324-
13251336
virtual void startRender( QgsSymbolRenderContext &context );
13261337

1327-
13281338
virtual void stopRender( QgsSymbolRenderContext &context );
13291339

1330-
13311340
virtual QgsStringMap properties() const;
13321341

1333-
13341342
virtual QgsLinePatternFillSymbolLayer *clone() const /Factory/;
13351343

1336-
13371344
virtual void toSld( QDomDocument &doc, QDomElement &element, const QgsStringMap &props ) const;
13381345

1339-
13401346
virtual double estimateMaxBleed( const QgsRenderContext &context ) const;
13411347

13421348

13431349
QString ogrFeatureStyleWidth( double widthScaleFactor ) const;
13441350

13451351
void setLineAngle( double a );
1352+
%Docstring
1353+
Sets the angle for the parallel lines used to fill the symbol.
1354+
1355+
Angles are in degrees, clockwise from North.
1356+
1357+
.. seealso:: :py:func:`lineAngle`
1358+
%End
1359+
13461360
double lineAngle() const;
1361+
%Docstring
1362+
Returns the angle for the parallel lines used to fill the symbol.
1363+
1364+
Angles are in degrees, clockwise from North.
1365+
1366+
.. seealso:: :py:func:`setLineAngle`
1367+
%End
13471368

13481369
void setDistance( double d );
13491370
%Docstring
@@ -1366,19 +1387,59 @@ Returns the distance between lines in the fill pattern. Units are retrieved by d
13661387
%End
13671388

13681389
void setLineWidth( double w );
1390+
%Docstring
1391+
Sets the width of the line subsymbol used to render the parallel lines
1392+
in the fill.
1393+
1394+
.. seealso:: :py:func:`lineWidth`
1395+
%End
1396+
13691397
double lineWidth() const;
1398+
%Docstring
1399+
Returns the width of the line subsymbol used to render the parallel lines
1400+
in the fill.
1401+
1402+
.. seealso:: :py:func:`setLineWidth`
1403+
%End
1404+
13701405
virtual void setColor( const QColor &c );
13711406

13721407
virtual QColor color() const;
13731408

1409+
13741410
void setOffset( double offset );
1411+
%Docstring
1412+
Sets the ``offset`` distance for lines within the fill, which is
1413+
the distance to offset the parallel lines from their normal
1414+
position.
1415+
1416+
Units are specified via setOffsetUnit().
1417+
1418+
.. seealso:: :py:func:`offset`
1419+
1420+
.. seealso:: :py:func:`setOffsetUnit`
1421+
1422+
.. seealso:: :py:func:`setOffsetMapUnitScale`
1423+
%End
1424+
13751425
double offset() const;
1426+
%Docstring
1427+
Returns the offset distance for lines within the fill, which is
1428+
the distance to offset the parallel lines from their normal
1429+
position.
1430+
1431+
Units are retrieved via offsetUnit().
1432+
1433+
.. seealso:: :py:func:`setOffset`
1434+
1435+
.. seealso:: :py:func:`offsetUnit`
1436+
1437+
.. seealso:: :py:func:`offsetMapUnitScale`
1438+
%End
13761439

13771440
void setDistanceUnit( QgsUnitTypes::RenderUnit unit );
13781441
%Docstring
1379-
Sets the units for the distance between lines in the fill pattern.
1380-
1381-
:param unit: distance units
1442+
Sets the ``unit`` for the distance between lines in the fill pattern.
13821443

13831444
.. seealso:: :py:func:`distanceUnit`
13841445

@@ -1395,13 +1456,30 @@ Returns the units for the distance between lines in the fill pattern.
13951456
%End
13961457

13971458
void setDistanceMapUnitScale( const QgsMapUnitScale &scale );
1459+
%Docstring
1460+
Sets the map unit ``scale`` for the pattern's line distance.
1461+
1462+
.. seealso:: :py:func:`distanceMapUnitScale`
1463+
1464+
.. seealso:: :py:func:`setDistance`
1465+
1466+
.. seealso:: :py:func:`setDistanceUnit`
1467+
%End
1468+
13981469
const QgsMapUnitScale &distanceMapUnitScale() const;
1470+
%Docstring
1471+
Returns the map unit scale for the pattern's line distance.
1472+
1473+
.. seealso:: :py:func:`setDistanceMapUnitScale`
1474+
1475+
.. seealso:: :py:func:`distance`
1476+
1477+
.. seealso:: :py:func:`distanceUnit`
1478+
%End
13991479

14001480
void setLineWidthUnit( QgsUnitTypes::RenderUnit unit );
14011481
%Docstring
1402-
Sets the units for the line's width.
1403-
1404-
:param unit: width units
1482+
Sets the ``unit`` for the line's width.
14051483

14061484
.. seealso:: :py:func:`lineWidthUnit`
14071485
%End
@@ -1414,13 +1492,30 @@ Returns the units for the line's width.
14141492
%End
14151493

14161494
void setLineWidthMapUnitScale( const QgsMapUnitScale &scale );
1495+
%Docstring
1496+
Sets the map unit ``scale`` for the pattern's line width.
1497+
1498+
.. seealso:: :py:func:`lineWidthMapUnitScale`
1499+
1500+
.. seealso:: :py:func:`setLineWidth`
1501+
1502+
.. seealso:: :py:func:`setLineWidthUnit`
1503+
%End
1504+
14171505
const QgsMapUnitScale &lineWidthMapUnitScale() const;
1506+
%Docstring
1507+
Returns the map unit scale for the pattern's line width.
1508+
1509+
.. seealso:: :py:func:`setLineWidthMapUnitScale`
1510+
1511+
.. seealso:: :py:func:`lineWidth`
1512+
1513+
.. seealso:: :py:func:`lineWidthUnit`
1514+
%End
14181515

14191516
void setOffsetUnit( QgsUnitTypes::RenderUnit unit );
14201517
%Docstring
1421-
Sets the units for the line pattern's offset.
1422-
1423-
:param unit: offset units
1518+
Sets the ``unit`` for the line pattern's offset.
14241519

14251520
.. seealso:: :py:func:`offsetUnit`
14261521
%End
@@ -1433,33 +1528,46 @@ Returns the units for the line pattern's offset.
14331528
%End
14341529

14351530
void setOffsetMapUnitScale( const QgsMapUnitScale &scale );
1531+
%Docstring
1532+
Sets the map unit ``scale`` for the pattern's line offset.
1533+
1534+
.. seealso:: :py:func:`offsetMapUnitScale`
1535+
1536+
.. seealso:: :py:func:`setOffset`
1537+
1538+
.. seealso:: :py:func:`setOffsetUnit`
1539+
%End
1540+
14361541
const QgsMapUnitScale &offsetMapUnitScale() const;
1542+
%Docstring
1543+
Returns the map unit scale for the pattern's line offset.
1544+
1545+
.. seealso:: :py:func:`setOffsetMapUnitScale`
1546+
1547+
.. seealso:: :py:func:`offset`
1548+
1549+
.. seealso:: :py:func:`offsetUnit`
1550+
%End
14371551

14381552
virtual void setOutputUnit( QgsUnitTypes::RenderUnit unit );
14391553

14401554
virtual QgsUnitTypes::RenderUnit outputUnit() const;
14411555

1442-
14431556
virtual void setMapUnitScale( const QgsMapUnitScale &scale );
14441557

14451558
virtual QgsMapUnitScale mapUnitScale() const;
14461559

1447-
14481560
virtual bool setSubSymbol( QgsSymbol *symbol /Transfer/ );
14491561

14501562
virtual QgsSymbol *subSymbol();
14511563

1452-
14531564
virtual QSet<QString> usedAttributes( const QgsRenderContext &context ) const;
14541565

14551566

14561567
protected:
14571568

14581569
virtual void applyDataDefinedSettings( QgsSymbolRenderContext &context );
14591570

1460-
%Docstring
1461-
Offset perpendicular to line direction
1462-
%End
14631571

14641572
private:
14651573
QgsLinePatternFillSymbolLayer( const QgsLinePatternFillSymbolLayer &other );

0 commit comments

Comments
 (0)