16 #ifndef QGSLAYERTREEMAPCANVASBRIDGE_H 17 #define QGSLAYERTREEMAPCANVASBRIDGE_H 21 #include <QStringList> 79 Q_INVOKABLE
void setCanvasLayers();
88 void canvasLayersChanged(
const QList< QgsMapLayer * > &layers );
91 void nodeVisibilityChanged();
92 void nodeCustomPropertyChanged(
QgsLayerTreeNode *node,
const QString &key );
96 void setCanvasLayers(
QgsLayerTreeNode *node, QList<QgsMapLayer *> &canvasLayers, QList<QgsMapLayer *> &overviewLayers,
97 QList<QgsMapLayer *> &allLayers );
99 void deferredSetCanvasLayers();
105 bool mPendingCanvasUpdate;
107 bool mAutoSetupOnFirstLayer;
110 bool mLastLayerCount;
111 bool mUpdatingProjectLayerOrder =
false;
116 #endif // QGSLAYERTREEMAPCANVASBRIDGE_H Layer tree group node serves as a container for layers and further groups.
Base class for all map layer types.
A widget that displays an overview map.
The QgsLayerTreeMapCanvasBridge class takes care of updates of layer set for QgsMapCanvas from a laye...
QgsMapCanvas * mapCanvas() const
Map canvas is a class for displaying all GIS data types on a canvas.
Namespace with helper functions for layer tree operations.
QgsLayerTree * rootGroup() const
This class is a base class for nodes in a layer tree.
void setAutoSetupOnFirstLayer(bool enabled)
if enabled, will automatically set full canvas extent and destination CRS + map units when first laye...
This class represents a coordinate reference system (CRS).
void setOvervewCanvas(QgsMapOverviewCanvas *overviewCanvas)
Associates overview canvas with the bridge, so the overview will be updated whenever main canvas is u...
bool autoSetupOnFirstLayer() const
QgsMapOverviewCanvas * overviewCanvas() const
Returns associated overview canvas (may be null)