QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
15 #ifndef QGSPLUGINLAYER_H
16 #define QGSPLUGINLAYER_H
18 #include "qgis_core.h"
36 QgsPluginLayer(
const QString &layerType,
const QString &layerName = QString() );
40 SIP_PYOBJECT __repr__();
42 QString
str = QStringLiteral(
"<QgsPluginLayer: '%1'>" ).arg( sipCpp->name() );
43 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
55 QString pluginLayerType();
64 void setSource(
const QString &source );
70 QString mPluginLayerType;
85 QgsPluginLayerDataProvider(
const QString &layerType,
87 QgsDataProvider::ReadFlags flags );
90 QString
name()
const override;
102 #endif // QGSPLUGINLAYER_H
Setting options for creating vector data providers.
Abstract base class for spatial data provider implementations.
virtual QgsMapLayer * clone() const =0
Returns a new instance equivalent to this one except for the id which is still unique.
A rectangle specified with double values.
virtual QString description() const =0
Returns description.
virtual void setExtent(const QgsRectangle &rect)
Sets the extent.
virtual Q_INVOKABLE QgsDataProvider * dataProvider()
Returns the layer's data provider, it may be nullptr.
This class represents a coordinate reference system (CRS).
Base class for plugin layers. These can be implemented by plugins and registered in QgsPluginLayerReg...
Base class for all map layer types. This is the base class for all map layer types (vector,...
virtual QgsRectangle extent() const =0
Returns the extent of the layer.
virtual QString name() const =0
Returns a provider name.
virtual bool isValid() const =0
Returns true if this is a valid layer.
virtual QgsCoordinateReferenceSystem crs() const =0
Returns the coordinate system for the data source.