15#ifndef QGSPLUGINLAYER_H
16#define QGSPLUGINLAYER_H
38 QgsPluginLayer(
const QString &layerType,
const QString &layerName = QString() );
42 SIP_PYOBJECT __repr__();
44 QString str = QStringLiteral(
"<QgsPluginLayer: '%1'>" ).arg( sipCpp->name() );
45 sipRes = PyUnicode_FromString( str.toUtf8().constData() );
73 virtual QIcon
icon() const;
91 QgsPluginLayerDataProvider(
const QString &layerType,
96 QString
name()
const override;
97 QString description()
const override;
QFlags< DataProviderReadFlag > DataProviderReadFlags
Flags which control data provider construction.
Represents a coordinate reference system (CRS).
Abstract base class for spatial data provider implementations.
virtual QgsRectangle extent() const
Returns the extent of the layer.
QString source() const
Returns the source for the layer.
QgsCoordinateReferenceSystem crs
QgsMapLayer(Qgis::LayerType type=Qgis::LayerType::Vector, const QString &name=QString(), const QString &source=QString())
Constructor for QgsMapLayer.
QgsMapLayer::LayerFlags flags
virtual void setExtent(const QgsRectangle &rect)
Sets the extent.
virtual Q_INVOKABLE QgsDataProvider * dataProvider()
Returns the layer's data provider, it may be nullptr.
QgsPluginLayer(const QString &layerType, const QString &layerName=QString())
void setSource(const QString &source)
Set source string.
QString pluginLayerType() const
Returns plugin layer type (the same as used in QgsPluginLayerRegistry).
virtual QIcon icon() const
Returns an icon for the layer.
void setExtent(const QgsRectangle &extent) override
Sets extent of the layer.
QgsDataProvider * mDataProvider
QgsPluginLayer * clone() const override=0
Returns a new instance equivalent to this one.
A rectangle specified with double values.
Setting options for creating vector data providers.