QGIS API Documentation 3.41.0-Master (cea29feecf2)
Loading...
Searching...
No Matches
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.
 
virtual ~QgsMapBoxGlStyleAbstractSource ()
 
QString name () const
 Returns the source's name.
 
virtual bool setFromJson (const QVariantMap &json, QgsMapBoxGlStyleConversionContext *context)=0
 Sets the source's state from a json map.
 
virtual Qgis::MapBoxGlStyleSourceType type () const =0
 Returns the source type.
 

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 174 of file qgsmapboxglstyleconverter.h.

Constructor & Destructor Documentation

◆ QgsMapBoxGlStyleAbstractSource()

QgsMapBoxGlStyleAbstractSource::QgsMapBoxGlStyleAbstractSource ( const QString &  name)

Constructor for QgsMapBoxGlStyleAbstractSource.

Definition at line 4104 of file qgsmapboxglstyleconverter.cpp.

◆ ~QgsMapBoxGlStyleAbstractSource()

QgsMapBoxGlStyleAbstractSource::~QgsMapBoxGlStyleAbstractSource ( )
virtualdefault

Member Function Documentation

◆ name()

QString QgsMapBoxGlStyleAbstractSource::name ( ) const

Returns the source's name.

Definition at line 4109 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: