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 );
78 void setExtent(
const QgsRectangle &extent ) { mExtent = extent; }
80 QString name()
const override;
81 QString description()
const override;
83 bool isValid()
const override;
92 #endif // QGSPLUGINLAYER_H A rectangle specified with double values.
Base class for all map layer types.
virtual QgsMapLayer * clone() const =0
Returns a new instance equivalent to this one except for the id which is still unique.
virtual QgsDataProvider * dataProvider()
Returns the layer's data provider, it may be nullptr.
Base class for plugin layers.
Abstract base class for spatial data provider implementations.
const QgsCoordinateReferenceSystem & crs
virtual void setExtent(const QgsRectangle &rect)
Sets the extent.
Setting options for creating vector data providers.
QgsDataProvider * mDataProvider
This class represents a coordinate reference system (CRS).