QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
Public Member Functions | List of all members
QgsMapBoxGlStyleAbstractSource Class Referenceabstract

Abstract base class for MapBox GL style sources. More...

#include <qgsmapboxglstyleconverter.h>

Inheritance diagram for QgsMapBoxGlStyleAbstractSource:
Inheritance graph
[legend]

Public Member Functions

 QgsMapBoxGlStyleAbstractSource (const QString &name)
 Constructor for QgsMapBoxGlStyleAbstractSource. More...
 
virtual ~QgsMapBoxGlStyleAbstractSource ()
 
QString name () const
 Returns the source's name. More...
 
virtual bool setFromJson (const QVariantMap &json, QgsMapBoxGlStyleConversionContext *context)=0
 Sets the source's state from a json map. More...
 
virtual Qgis::MapBoxGlStyleSourceType type () const =0
 Returns the source type. More...
 

Detailed Description

Abstract base class for MapBox GL style sources.

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

Definition at line 173 of file qgsmapboxglstyleconverter.h.

Constructor & Destructor Documentation

◆ QgsMapBoxGlStyleAbstractSource()

QgsMapBoxGlStyleAbstractSource::QgsMapBoxGlStyleAbstractSource ( const QString &  name)

Constructor for QgsMapBoxGlStyleAbstractSource.

Definition at line 3602 of file qgsmapboxglstyleconverter.cpp.

◆ ~QgsMapBoxGlStyleAbstractSource()

QgsMapBoxGlStyleAbstractSource::~QgsMapBoxGlStyleAbstractSource ( )
virtualdefault

Member Function Documentation

◆ name()

QString QgsMapBoxGlStyleAbstractSource::name ( ) const

Returns the source's name.

Definition at line 3607 of file qgsmapboxglstyleconverter.cpp.

◆ setFromJson()

virtual bool QgsMapBoxGlStyleAbstractSource::setFromJson ( const QVariantMap &  json,
QgsMapBoxGlStyleConversionContext context 
)
pure virtual

Sets the source's state from a json map.

Implemented in QgsMapBoxGlStyleRasterSource.

◆ type()

virtual Qgis::MapBoxGlStyleSourceType QgsMapBoxGlStyleAbstractSource::type ( ) const
pure virtual

Returns the source type.

Implemented in QgsMapBoxGlStyleRasterSource.


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