mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-16 00:06:09 -05:00
Fix documentation
This commit is contained in:
parent
b392630dc4
commit
c33b8b276f
@ -261,13 +261,13 @@ Returns the maximum map scale (i.e. most "zoomed in" scale) at which the labels
|
||||
The scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map.
|
||||
A scale of 0 indicates no maximum scale visibility.
|
||||
|
||||
This setting is only considered if :py:func:`~QgsRasterLayerSimpleLabeling.scaleVisibility` is ``True``.
|
||||
This setting is only considered if :py:func:`~QgsRasterLayerSimpleLabeling.hasScaleBasedVisibility` is ``True``.
|
||||
|
||||
.. seealso:: :py:func:`setMaximumScale`
|
||||
|
||||
.. seealso:: :py:func:`minimumScale`
|
||||
|
||||
.. seealso:: :py:func:`scaleVisibility`
|
||||
.. seealso:: :py:func:`hasScaleBasedVisibility`
|
||||
%End
|
||||
|
||||
void setMaximumScale( double scale );
|
||||
@ -277,7 +277,7 @@ Sets the maximum map ``scale`` (i.e. most "zoomed in" scale) at which the labels
|
||||
The scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map.
|
||||
A scale of 0 indicates no maximum scale visibility.
|
||||
|
||||
This setting is only considered if :py:func:`~QgsRasterLayerSimpleLabeling.scaleVisibility` is ``True``.
|
||||
This setting is only considered if :py:func:`~QgsRasterLayerSimpleLabeling.hasScaleBasedVisibility` is ``True``.
|
||||
|
||||
.. seealso:: :py:func:`maximumScale`
|
||||
|
||||
@ -293,13 +293,13 @@ Returns the minimum map scale (i.e. most "zoomed out" scale) at which the labels
|
||||
The scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map.
|
||||
A scale of 0 indicates no minimum scale visibility.
|
||||
|
||||
This setting is only considered if :py:func:`~QgsRasterLayerSimpleLabeling.scaleVisibility` is ``True``.
|
||||
This setting is only considered if :py:func:`~QgsRasterLayerSimpleLabeling.hasScaleBasedVisibility` is ``True``.
|
||||
|
||||
.. seealso:: :py:func:`setMinimumScale`
|
||||
|
||||
.. seealso:: :py:func:`maximumScale`
|
||||
|
||||
.. seealso:: :py:func:`scaleVisibility`
|
||||
.. seealso:: :py:func:`hasScaleBasedVisibility`
|
||||
%End
|
||||
|
||||
void setMinimumScale( double scale );
|
||||
@ -309,13 +309,13 @@ Sets the minimum map ``scale`` (i.e. most "zoomed out" scale) at which the label
|
||||
The scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map.
|
||||
A scale of 0 indicates no minimum scale visibility.
|
||||
|
||||
This setting is only considered if :py:func:`~QgsRasterLayerSimpleLabeling.scaleVisibility` is ``True``.
|
||||
This setting is only considered if :py:func:`~QgsRasterLayerSimpleLabeling.hasScaleBasedVisibility` is ``True``.
|
||||
|
||||
.. seealso:: :py:func:`minimumScale`
|
||||
|
||||
.. seealso:: :py:func:`setMaximumScale`
|
||||
|
||||
.. seealso:: :py:func:`scaleVisibility`
|
||||
.. seealso:: :py:func:`hasScaleBasedVisibility`
|
||||
%End
|
||||
|
||||
void setScaleBasedVisibility( bool enabled );
|
||||
|
||||
@ -261,13 +261,13 @@ Returns the maximum map scale (i.e. most "zoomed in" scale) at which the labels
|
||||
The scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map.
|
||||
A scale of 0 indicates no maximum scale visibility.
|
||||
|
||||
This setting is only considered if :py:func:`~QgsRasterLayerSimpleLabeling.scaleVisibility` is ``True``.
|
||||
This setting is only considered if :py:func:`~QgsRasterLayerSimpleLabeling.hasScaleBasedVisibility` is ``True``.
|
||||
|
||||
.. seealso:: :py:func:`setMaximumScale`
|
||||
|
||||
.. seealso:: :py:func:`minimumScale`
|
||||
|
||||
.. seealso:: :py:func:`scaleVisibility`
|
||||
.. seealso:: :py:func:`hasScaleBasedVisibility`
|
||||
%End
|
||||
|
||||
void setMaximumScale( double scale );
|
||||
@ -277,7 +277,7 @@ Sets the maximum map ``scale`` (i.e. most "zoomed in" scale) at which the labels
|
||||
The scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map.
|
||||
A scale of 0 indicates no maximum scale visibility.
|
||||
|
||||
This setting is only considered if :py:func:`~QgsRasterLayerSimpleLabeling.scaleVisibility` is ``True``.
|
||||
This setting is only considered if :py:func:`~QgsRasterLayerSimpleLabeling.hasScaleBasedVisibility` is ``True``.
|
||||
|
||||
.. seealso:: :py:func:`maximumScale`
|
||||
|
||||
@ -293,13 +293,13 @@ Returns the minimum map scale (i.e. most "zoomed out" scale) at which the labels
|
||||
The scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map.
|
||||
A scale of 0 indicates no minimum scale visibility.
|
||||
|
||||
This setting is only considered if :py:func:`~QgsRasterLayerSimpleLabeling.scaleVisibility` is ``True``.
|
||||
This setting is only considered if :py:func:`~QgsRasterLayerSimpleLabeling.hasScaleBasedVisibility` is ``True``.
|
||||
|
||||
.. seealso:: :py:func:`setMinimumScale`
|
||||
|
||||
.. seealso:: :py:func:`maximumScale`
|
||||
|
||||
.. seealso:: :py:func:`scaleVisibility`
|
||||
.. seealso:: :py:func:`hasScaleBasedVisibility`
|
||||
%End
|
||||
|
||||
void setMinimumScale( double scale );
|
||||
@ -309,13 +309,13 @@ Sets the minimum map ``scale`` (i.e. most "zoomed out" scale) at which the label
|
||||
The scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map.
|
||||
A scale of 0 indicates no minimum scale visibility.
|
||||
|
||||
This setting is only considered if :py:func:`~QgsRasterLayerSimpleLabeling.scaleVisibility` is ``True``.
|
||||
This setting is only considered if :py:func:`~QgsRasterLayerSimpleLabeling.hasScaleBasedVisibility` is ``True``.
|
||||
|
||||
.. seealso:: :py:func:`minimumScale`
|
||||
|
||||
.. seealso:: :py:func:`setMaximumScale`
|
||||
|
||||
.. seealso:: :py:func:`scaleVisibility`
|
||||
.. seealso:: :py:func:`hasScaleBasedVisibility`
|
||||
%End
|
||||
|
||||
void setScaleBasedVisibility( bool enabled );
|
||||
|
||||
@ -45,6 +45,10 @@ class QgsRasterLayerRendererFeedback;
|
||||
class CORE_EXPORT QgsRasterLayerLabelProvider final : public QgsAbstractLabelProvider
|
||||
{
|
||||
public:
|
||||
|
||||
/**
|
||||
* Constructor for QgsRasterLayerLabelProvider.
|
||||
*/
|
||||
explicit QgsRasterLayerLabelProvider( QgsRasterLayer *layer );
|
||||
|
||||
~QgsRasterLayerLabelProvider() final;
|
||||
@ -52,8 +56,14 @@ class CORE_EXPORT QgsRasterLayerLabelProvider final : public QgsAbstractLabelPro
|
||||
void drawLabel( QgsRenderContext &context, pal::LabelPosition *label ) const final;
|
||||
void startRender( QgsRenderContext &context ) final;
|
||||
|
||||
/**
|
||||
* Generates the labels, given a render context and input pipe.
|
||||
*/
|
||||
void generateLabels( QgsRenderContext &context, QgsRasterPipe *pipe, QgsRasterViewPort *rasterViewPort, QgsRasterLayerRendererFeedback *feedback );
|
||||
|
||||
/**
|
||||
* Adds a label at the specified point in map coordinates.
|
||||
*/
|
||||
void addLabel( const QgsPoint &mapPoint, const QString &text, QgsRenderContext &context );
|
||||
|
||||
/**
|
||||
@ -385,11 +395,11 @@ class CORE_EXPORT QgsRasterLayerSimpleLabeling : public QgsAbstractRasterLayerLa
|
||||
* The scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map.
|
||||
* A scale of 0 indicates no maximum scale visibility.
|
||||
*
|
||||
* This setting is only considered if scaleVisibility() is TRUE.
|
||||
* This setting is only considered if hasScaleBasedVisibility() is TRUE.
|
||||
*
|
||||
* \see setMaximumScale()
|
||||
* \see minimumScale()
|
||||
* \see scaleVisibility()
|
||||
* \see hasScaleBasedVisibility()
|
||||
*/
|
||||
double maximumScale() const;
|
||||
|
||||
@ -399,7 +409,7 @@ class CORE_EXPORT QgsRasterLayerSimpleLabeling : public QgsAbstractRasterLayerLa
|
||||
* The scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map.
|
||||
* A scale of 0 indicates no maximum scale visibility.
|
||||
*
|
||||
* This setting is only considered if scaleVisibility() is TRUE.
|
||||
* This setting is only considered if hasScaleBasedVisibility() is TRUE.
|
||||
*
|
||||
* \see maximumScale()
|
||||
* \see setMinimumScale()
|
||||
@ -413,11 +423,11 @@ class CORE_EXPORT QgsRasterLayerSimpleLabeling : public QgsAbstractRasterLayerLa
|
||||
* The scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map.
|
||||
* A scale of 0 indicates no minimum scale visibility.
|
||||
*
|
||||
* This setting is only considered if scaleVisibility() is TRUE.
|
||||
* This setting is only considered if hasScaleBasedVisibility() is TRUE.
|
||||
*
|
||||
* \see setMinimumScale()
|
||||
* \see maximumScale()
|
||||
* \see scaleVisibility()
|
||||
* \see hasScaleBasedVisibility()
|
||||
*/
|
||||
double minimumScale() const;
|
||||
|
||||
@ -427,11 +437,11 @@ class CORE_EXPORT QgsRasterLayerSimpleLabeling : public QgsAbstractRasterLayerLa
|
||||
* The scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map.
|
||||
* A scale of 0 indicates no minimum scale visibility.
|
||||
*
|
||||
* This setting is only considered if scaleVisibility() is TRUE.
|
||||
* This setting is only considered if hasScaleBasedVisibility() is TRUE.
|
||||
*
|
||||
* \see minimumScale()
|
||||
* \see setMaximumScale()
|
||||
* \see scaleVisibility()
|
||||
* \see hasScaleBasedVisibility()
|
||||
*/
|
||||
void setMinimumScale( double scale );
|
||||
|
||||
|
||||
@ -43,6 +43,9 @@ class GUI_EXPORT QgsRasterLabelSettingsWidget : public QgsLabelingGui
|
||||
QgsRasterLabelSettingsWidget( QgsRasterLayer *layer, QgsMapCanvas *mapCanvas, QWidget *parent = nullptr );
|
||||
~QgsRasterLabelSettingsWidget() override;
|
||||
|
||||
/**
|
||||
* Sets the \a labeling settings to show in the widget.
|
||||
*/
|
||||
void setLabeling( QgsAbstractRasterLayerLabeling *labeling );
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user