16 #ifndef QGSLAYERTREEMAPCANVASBRIDGE_H 17 #define QGSLAYERTREEMAPCANVASBRIDGE_H 20 #include <QStringList> 72 void setHasCustomLayerOrder(
bool state );
73 void setCustomLayerOrder(
const QStringList& order );
76 void setCanvasLayers();
82 void hasCustomLayerOrderChanged(
bool );
83 void customLayerOrderChanged(
const QStringList& order );
91 void deferredSetCanvasLayers();
94 void nodeAddedChildren(
QgsLayerTreeNode* node,
int indexFrom,
int indexTo );
95 void nodeRemovedChildren();
96 void nodeVisibilityChanged();
116 #endif // QGSLAYERTREEMAPCANVASBRIDGE_H Layer tree group node serves as a container for layers and further groups.
QgsLayerTreeGroup * mRoot
bool mHasCustomLayerOrder
bool autoSetupOnFirstLayer() const
The QgsLayerTreeMapCanvasBridge class takes care of updates of layer set for QgsMapCanvas from a laye...
A class that stores visibility and presence in overview flags together with pointer to the layer...
Map canvas is a class for displaying all GIS data types on a canvas.
QgsLayerTreeGroup * rootGroup() const
void setAutoEnableCrsTransform(bool enabled)
if enabled, will automatically turn on on-the-fly reprojection of layers if a layer with different so...
bool mAutoEnableCrsTransform
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...
QgsMapCanvas * mapCanvas() const
QStringList customLayerOrder() const
bool mPendingCanvasUpdate
QStringList mCustomLayerOrder
bool mAutoSetupOnFirstLayer
Class for storing a coordinate reference system (CRS)
bool autoEnableCrsTransform() const
bool hasCustomLayerOrder() const
QgsCoordinateReferenceSystem mFirstCRS