QGIS API Documentation 3.41.0-Master (af5edcb665c)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsMapBoxGlStyleRasterSource Class Reference

Encapsulates a MapBox GL style raster source. More...

#include <qgsmapboxglstyleconverter.h>

Inheritance diagram for QgsMapBoxGlStyleRasterSource:
Inheritance graph
[legend]

Public Member Functions

 QgsMapBoxGlStyleRasterSource (const QString &name)
 Constructor for QgsMapBoxGlStyleRasterSource.
 
QString attribution () const
 Returns the source's attribution text.
 
int maximumZoom () const
 Returns the maximum tile zoom for which tiles are available.
 
int minimumZoom () const
 Returns the minimum tile zoom for which tiles are available.
 
bool setFromJson (const QVariantMap &json, QgsMapBoxGlStyleConversionContext *context) override
 Sets the source's state from a json map.
 
QStringList tiles () const
 Returns the list of tile sources.
 
int tileSize () const
 Returns the associated tile size.
 
QgsRasterLayertoRasterLayer () const
 Returns a new raster layer representing the raster source, or nullptr if the source cannot be represented as a raster layer.
 
Qgis::MapBoxGlStyleSourceType type () const override
 Returns the source type.
 
- Public Member Functions inherited from QgsMapBoxGlStyleAbstractSource
 QgsMapBoxGlStyleAbstractSource (const QString &name)
 Constructor for QgsMapBoxGlStyleAbstractSource.
 
virtual ~QgsMapBoxGlStyleAbstractSource ()
 
QString name () const
 Returns the source's name.
 

Detailed Description

Encapsulates a MapBox GL style raster source.

Warning
This is private API only, and may change in future QGIS versions
Since
QGIS 3.28

Definition at line 227 of file qgsmapboxglstyleconverter.h.

Constructor & Destructor Documentation

◆ QgsMapBoxGlStyleRasterSource()

QgsMapBoxGlStyleRasterSource::QgsMapBoxGlStyleRasterSource ( const QString &  name)

Constructor for QgsMapBoxGlStyleRasterSource.

Definition at line 4131 of file qgsmapboxglstyleconverter.cpp.

Member Function Documentation

◆ attribution()

QString QgsMapBoxGlStyleRasterSource::attribution ( ) const
inline

Returns the source's attribution text.

Definition at line 242 of file qgsmapboxglstyleconverter.h.

◆ maximumZoom()

int QgsMapBoxGlStyleRasterSource::maximumZoom ( ) const
inline

Returns the maximum tile zoom for which tiles are available.

See also
minimumZoom()

Definition at line 256 of file qgsmapboxglstyleconverter.h.

◆ minimumZoom()

int QgsMapBoxGlStyleRasterSource::minimumZoom ( ) const
inline

Returns the minimum tile zoom for which tiles are available.

See also
maximumZoom()

Definition at line 249 of file qgsmapboxglstyleconverter.h.

◆ setFromJson()

bool QgsMapBoxGlStyleRasterSource::setFromJson ( const QVariantMap &  json,
QgsMapBoxGlStyleConversionContext context 
)
overridevirtual

Sets the source's state from a json map.

Implements QgsMapBoxGlStyleAbstractSource.

Definition at line 4142 of file qgsmapboxglstyleconverter.cpp.

◆ tiles()

QStringList QgsMapBoxGlStyleRasterSource::tiles ( ) const
inline

Returns the list of tile sources.

Definition at line 266 of file qgsmapboxglstyleconverter.h.

◆ tileSize()

int QgsMapBoxGlStyleRasterSource::tileSize ( ) const
inline

Returns the associated tile size.

Definition at line 261 of file qgsmapboxglstyleconverter.h.

◆ toRasterLayer()

QgsRasterLayer * QgsMapBoxGlStyleRasterSource::toRasterLayer ( ) const

Returns a new raster layer representing the raster source, or nullptr if the source cannot be represented as a raster layer.

The caller takes ownership of the returned layer.

Definition at line 4170 of file qgsmapboxglstyleconverter.cpp.

◆ type()

Qgis::MapBoxGlStyleSourceType QgsMapBoxGlStyleRasterSource::type ( ) const
overridevirtual

Returns the source type.

Implements QgsMapBoxGlStyleAbstractSource.

Definition at line 4137 of file qgsmapboxglstyleconverter.cpp.


The documentation for this class was generated from the following files: