@@ -522,23 +522,64 @@ Constructs SVG marker symbol layer with picture from given absolute path to a SV
522522
523523 QString path() const;
524524%Docstring
525+ Returns the marker SVG path.
526+ .. seealso:: setPath()
525527 :rtype: str
526528%End
529+
527530 void setPath( const QString &path );
531+ %Docstring
532+ Set the marker SVG path.
533+ \param path SVG path
534+ .. seealso:: path()
535+ %End
528536
529537 double defaultAspectRatio() const;
530538%Docstring
539+ Returns the default marker aspect ratio between width and height, 0 if not yet calculated.
540+ .. seealso:: updateDefaultAspectRatio()
531541 :rtype: float
532542%End
543+
533544 double updateDefaultAspectRatio();
534545%Docstring
546+ Calculates the default marker aspect ratio between width and height.
547+ :return: the default aspect ratio value
548+ .. seealso:: defaultAspectRatio()
535549 :rtype: float
536550%End
551+
552+ bool preservedAspectRatio() const;
553+ %Docstring
554+ Returns the preserved aspect ratio value, true if fixed aspect ratio has been lower or equal to 0.
555+ .. seealso:: setPreservedAspectRatio()
556+ :rtype: bool
557+ %End
558+
559+ bool setPreservedAspectRatio( bool par );
560+ %Docstring
561+ Set preserved the marker aspect ratio between width and height.
562+ \param par Preserved Aspect Ratio
563+ :return: the preserved aspect ratio value, true if fixed aspect ratio has been lower or equal to 0
564+ .. seealso:: preservedAspectRatio()
565+ :rtype: bool
566+ %End
567+
537568 double fixedAspectRatio() const;
538569%Docstring
570+ Returns the marker aspect ratio between width and height to be used in rendering,
571+ if the value set is lower or equal to 0 the aspect ratio will be preserved in rendering
572+ .. seealso:: setFixedAspectRatio() QgsSvgCache
539573 :rtype: float
540574%End
541- void setFixedAspectRatio( double far );
575+
576+ void setFixedAspectRatio( double ratio );
577+ %Docstring
578+ Set the marker aspect ratio between width and height to be used in rendering,
579+ if the value set is lower or equal to 0 the aspect ratio will be preserved in rendering
580+ \param ratio Fixed Aspect Ratio
581+ .. seealso:: fixedAspectRatio() QgsSvgCache
582+ %End
542583
543584 virtual QColor fillColor() const;
544585 virtual void setFillColor( const QColor &color );
0 commit comments