QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
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() );
47 QString pluginLayerType();
56 void setSource(
const QString &source );
62 QString mPluginLayerType;
77 QgsPluginLayerDataProvider(
const QString &layerType,
79 QgsDataProvider::ReadFlags flags );
80 void setExtent(
const QgsRectangle &extent ) { mExtent = extent; }
82 QString name()
const override;
83 QString description()
const override;
85 bool isValid()
const override;
94 #endif // QGSPLUGINLAYER_H
Setting options for creating vector data providers.
Abstract base class for spatial data provider implementations.
const QgsCoordinateReferenceSystem & crs
A rectangle specified with double values.
virtual void setExtent(const QgsRectangle &rect)
Sets the extent.
This class represents a coordinate reference system (CRS).
Base class for plugin layers.
Base class for all map layer types.
QgsPluginLayer * clone() const override=0
Returns a new instance equivalent to this one.
virtual QgsDataProvider * dataProvider()
Returns the layer's data provider, it may be nullptr.