16 #ifndef QGSLAYERTREEMAPCANVASBRIDGE_H 17 #define QGSLAYERTREEMAPCANVASBRIDGE_H 20 #include <QStringList> 73 void setHasCustomLayerOrder(
bool state );
74 void setCustomLayerOrder(
const QStringList& order );
77 void setCanvasLayers();
83 void hasCustomLayerOrderChanged(
bool );
84 void customLayerOrderChanged(
const QStringList& order );
92 void deferredSetCanvasLayers();
95 void nodeAddedChildren(
QgsLayerTreeNode* node,
int indexFrom,
int indexTo );
96 void nodeRemovedChildren();
97 void nodeVisibilityChanged();
117 #endif // QGSLAYERTREEMAPCANVASBRIDGE_H Layer tree group node serves as a container for layers and further groups.
bool hasCustomLayerOrder() const
QgsLayerTreeGroup * mRoot
bool mHasCustomLayerOrder
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...
QgsMapCanvas * mapCanvas() const
Map canvas is a class for displaying all GIS data types on a canvas.
void setAutoEnableCrsTransform(bool enabled)
if enabled, will automatically turn on on-the-fly reprojection of layers if a layer with different so...
bool mAutoEnableCrsTransform
QStringList customLayerOrder() 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...
QgsLayerTreeGroup * rootGroup() const
bool autoEnableCrsTransform() const
bool mPendingCanvasUpdate
QStringList mCustomLayerOrder
bool mAutoSetupOnFirstLayer
Class for storing a coordinate reference system (CRS)
QgsCoordinateReferenceSystem mFirstCRS
bool autoSetupOnFirstLayer() const