Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions python/PyQt6/core/auto_additions/qgsrastercontourlabeling.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# The following has been generated automatically from src/core/raster/qgsrastercontourlabeling.h
try:
QgsRasterLayerContourLabeling.create = staticmethod(QgsRasterLayerContourLabeling.create)
QgsRasterLayerContourLabeling.__overridden_methods__ = ['type', 'clone', 'save', 'accept', 'requiresAdvancedEffects', 'hasNonDefaultCompositionMode', 'multiplyOpacity', 'isInScaleRange']
QgsRasterLayerContourLabeling.__group__ = ['raster']
except (NameError, AttributeError):
pass
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/raster/qgsrastercontourlabeling.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/





class QgsRasterLayerContourLabeling : QgsAbstractRasterLayerLabeling
{
%Docstring(signature="appended")
Labeling configuration for raster contour lines.

Produces labels placed along contour lines generated on-the-fly from
raster data.

.. versionadded:: 3.44
%End

%TypeHeaderCode
#include "qgsrastercontourlabeling.h"
%End
public:

QgsRasterLayerContourLabeling();
~QgsRasterLayerContourLabeling();

virtual QString type() const;

virtual QgsRasterLayerContourLabeling *clone() const /Factory/;

virtual QDomElement save( QDomDocument &doc, const QgsReadWriteContext &context ) const;

virtual bool accept( QgsStyleEntityVisitorInterface *visitor ) const;

virtual bool requiresAdvancedEffects() const;

virtual bool hasNonDefaultCompositionMode() const;

virtual void multiplyOpacity( double opacityFactor );

virtual bool isInScaleRange( double scale ) const;


static QgsRasterLayerContourLabeling *create( const QDomElement &element, const QgsReadWriteContext &context ) /Factory/;
%Docstring
Creates a QgsRasterLayerContourLabeling from a DOM element with saved
configuration
%End

QgsTextFormat textFormat() const;
void setTextFormat( const QgsTextFormat &format );

const QgsNumericFormat *numericFormat() const;
void setNumericFormat( QgsNumericFormat *format /Transfer/ );

bool labelIndexOnly() const;
void setLabelIndexOnly( bool indexOnly );

double priority() const;
void setPriority( double priority );

QgsLabelPlacementSettings &placementSettings();
void setPlacementSettings( const QgsLabelPlacementSettings &settings );

QgsLabelThinningSettings &thinningSettings();
void setThinningSettings( const QgsLabelThinningSettings &settings );

double zIndex() const;
void setZIndex( double index );

double maximumScale() const;
void setMaximumScale( double scale );

double minimumScale() const;
void setMinimumScale( double scale );

void setScaleBasedVisibility( bool enabled );
bool hasScaleBasedVisibility() const;

};

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/raster/qgsrastercontourlabeling.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ Abstract base class for labeling settings for raster layers.
%ConvertToSubClassCode
if ( sipCpp->type() == "simple" )
sipType = sipType_QgsRasterLayerSimpleLabeling;
else if ( sipCpp->type() == "contour" )
sipType = sipType_QgsRasterLayerContourLabeling;
else
sipType = 0;
%End
Expand Down
1 change: 1 addition & 0 deletions python/PyQt6/core/core_auto.sip
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,7 @@
%Include auto_generated/raster/qgsrasteridentifyresult.sip
%Include auto_generated/raster/qgsrasterinterface.sip
%Include auto_generated/raster/qgsrasteriterator.sip
%Include auto_generated/raster/qgsrastercontourlabeling.sip
%Include auto_generated/raster/qgsrasterlabeling.sip
%Include auto_generated/raster/qgsrasterlayer.sip
%Include auto_generated/raster/qgsrasterlayerelevationproperties.sip
Expand Down
2 changes: 2 additions & 0 deletions src/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -802,6 +802,7 @@ set(QGIS_CORE_SRCS
raster/qgsraster.cpp
raster/qgsrasterblock.cpp
raster/qgsrasterchecker.cpp
raster/qgsrastercontourlabeling.cpp
raster/qgsrastercontourrenderer.cpp
raster/qgsrasterdataprovider.cpp
raster/qgsrasterdataproviderelevationproperties.cpp
Expand Down Expand Up @@ -1964,6 +1965,7 @@ set(QGIS_CORE_HDRS
raster/qgsrasterbandstats.h
raster/qgsrasterblock.h
raster/qgsrasterchecker.h
raster/qgsrastercontourlabeling.h
raster/qgsrastercontourrenderer.h
raster/qgsrasterdataprovider.h
raster/qgsrasterdataproviderelevationproperties.h
Expand Down
Loading
Loading