QGIS API Documentation 3.37.0-Master (fdefdf9c27f)
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

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.

This is private API only, and may change in future QGIS versions
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 3632 of file qgsmapboxglstyleconverter.cpp.

◆ ~QgsMapBoxGlStyleAbstractSource()

QgsMapBoxGlStyleAbstractSource::~QgsMapBoxGlStyleAbstractSource ( )

Member Function Documentation

◆ name()

QString QgsMapBoxGlStyleAbstractSource::name ( ) const

Returns the source's name.

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