QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
16 #ifndef QGSLAYERTREEMAPCANVASBRIDGE_H
17 #define QGSLAYERTREEMAPCANVASBRIDGE_H
20 #include <QStringList>
73 sipCpp->setOverviewCanvas( a0 );
91 Q_INVOKABLE
void setCanvasLayers();
103 void nodeVisibilityChanged();
104 void nodeCustomPropertyChanged(
QgsLayerTreeNode *node,
const QString &key );
105 void layersAdded(
const QList<QgsMapLayer *> &layers );
109 void setCanvasLayers(
QgsLayerTreeNode *node, QList<QgsMapLayer *> &canvasLayers, QList<QgsMapLayer *> &overviewLayers,
110 QList<QgsMapLayer *> &allLayers );
112 void deferredSetCanvasLayers();
118 bool mPendingCanvasUpdate;
120 bool mAutoSetupOnFirstLayer;
123 bool mHasLayersLoaded;
124 bool mHasValidLayersLoaded =
false;
125 bool mUpdatingProjectLayerOrder =
false;
130 #endif // QGSLAYERTREEMAPCANVASBRIDGE_H
QgsMapOverviewCanvas * overviewCanvas() const
Returns associated overview canvas (may be nullptr)
This class is a base class for nodes in a layer tree.
Map canvas is a class for displaying all GIS data types on a canvas.
Namespace with helper functions for layer tree operations.
QgsMapCanvas * mapCanvas() const
Layer tree group node serves as a container for layers and further groups.
QgsLayerTree * rootGroup() const
A widget that displays an overview map.
void canvasLayersChanged(const QList< QgsMapLayer * > &layers)
Emitted when the set of layers (or order of layers) visible in the canvas changes.
This class represents a coordinate reference system (CRS).
Base class for all map layer types.
void setAutoSetupOnFirstLayer(bool enabled)
if enabled, will automatically set full canvas extent and destination CRS + map units when first laye...
bool autoSetupOnFirstLayer() const
void setOverviewCanvas(QgsMapOverviewCanvas *overviewCanvas)
Associates overview canvas with the bridge, so the overview will be updated whenever main canvas is u...
The QgsLayerTreeMapCanvasBridge class takes care of updates of layer set for QgsMapCanvas from a laye...