18#ifndef QGSGROUPLAYER_H
19#define QGSGROUPLAYER_H
27class QgsGroupLayerDataProvider;
58 : transformContext( transformContext )
77 SIP_PYOBJECT __repr__();
79 QString
str = QStringLiteral(
"<QgsGroupLayer: '%1'>" ).arg( sipCpp->name() );
80 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
89 bool writeXml( QDomNode &layer_node, QDomDocument &doc, const
QgsReadWriteContext &context ) const override;
90 bool writeSymbology( QDomNode &node, QDomDocument &doc, QString &errorMessage, const
QgsReadWriteContext &, StyleCategories categories = AllStyleCategories ) const override;
91 bool readSymbology( const QDomNode &node, QString &errorMessage,
QgsReadWriteContext &context, StyleCategories categories = AllStyleCategories ) override;
94 QString htmlMetadata() const override;
95 void resolveReferences(
QgsProject *project ) override;
105 void setChildLayers( const QList<
QgsMapLayer * > &layers );
138 void prepareLayersForRemovalFromGroup();
142 QgsGroupLayerDataProvider *mDataProvider =
nullptr;
164 QgsDataProvider::ReadFlags flags );
167 QString name()
const override;
168 QString description()
const override;
170 bool isValid()
const override;
This class represents a coordinate reference system (CRS).
Contains information about the context in which a coordinate transform is executed.
Abstract base class for spatial data provider implementations.
A map layer which consists of a set of child layers, where all component layers are rendered as a sin...
Base class for utility classes that encapsulate information necessary for rendering of map layers.
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.
Base class for visual effects which can be applied to QPicture drawings.
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
The class is used as a container of context for various read/write operations on other objects.
A rectangle specified with double values.
Contains information about the context of a rendering operation.
const QgsCoordinateReferenceSystem & crs
Setting options for creating vector data providers.
Setting options for loading group layers.
LayerOptions(const QgsCoordinateTransformContext &transformContext)
Constructor for LayerOptions.
QgsCoordinateTransformContext transformContext
Coordinate transform context.