105 : transformContext( transformContext )
117 SIP_PYOBJECT __repr__();
119 QString
str = QStringLiteral(
"<QgsVectorTileLayer: '%1'>" ).arg( sipCpp->name() );
120 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
131 bool writeXml( QDomNode &layerNode, QDomDocument &doc, const
QgsReadWriteContext &context ) const override;
132 bool readSymbology( const QDomNode &node, QString &errorMessage,
134 bool writeSymbology( QDomNode &node, QDomDocument &doc, QString &errorMessage, const
QgsReadWriteContext &context,
135 StyleCategories categories = AllStyleCategories ) const override;
137 QString loadDefaultStyle(
bool &resultFlag
SIP_OUT ) override;
138 Qgis::MapLayerProperties properties() const override;
151 bool loadDefaultStyle( QString &error, QStringList &warnings )
SIP_SKIP;
169 QString loadDefaultMetadata(
bool &resultFlag
SIP_OUT ) override;
172 QString decodedSource( const QString &source, const QString &provider, const
QgsReadWriteContext &context ) const
FINAL;
173 QString htmlMetadata() const override;
187 QString sourcePath()
const;
226 bool labelsEnabled()
const;
238 void setLabelsEnabled(
bool enabled );
254 QList< QgsFeature > selectedFeatures()
const;
265 int selectedFeatureCount()
const;
281 Qgis::SelectionFlags flags = Qgis::SelectionFlags(),
293 void removeSelection();
305 bool loadDataSource();
314 std::unique_ptr<QgsVectorTileRenderer> mRenderer;
316 std::unique_ptr<QgsVectorTileLabeling> mLabeling;
318 bool mLabelsEnabled =
true;
320 bool mTileBorderRendering =
false;
324 std::unique_ptr< QgsDataProvider > mDataProvider;
326 QHash< QgsFeatureId, QgsFeature > mSelectedFeatures;
328 void setDataSourcePrivate(
const QString &dataSource,
const QString &baseName,
const QString &provider,
331 bool loadDefaultStyleAndSubLayersPrivate( QString &error, QStringList &warnings, QList< QgsMapLayer * > *subLayers );
The class is used as a container of context for various read/write operations on other objects.
Contains information about the context of a rendering operation.
Encapsulates the context of a layer selection operation.