Skip to content

Commit 18e1bd0

Browse files
committedMay 28, 2014
[layertree] Doxygen doc for QgsLayerTreeMapCanvasBridge
1 parent 59c88cc commit 18e1bd0

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
 

‎src/gui/layertree/qgslayertreemapcanvasbridge.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,26 @@ class QgsMapCanvasLayer;
2626
class QgsLayerTreeGroup;
2727
class QgsLayerTreeNode;
2828

29+
/**
30+
* The QgsLayerTreeMapCanvasBridge class takes care of updates of layer set
31+
* for QgsMapCanvas from a layer tree. The class listens to the updates in the layer tree
32+
* and updates the list of layers for rendering whenever some layers are added, removed,
33+
* or their visibility changes.
34+
*
35+
* The update of layers is not done immediately - it is postponed, so a series of updates
36+
* to the layer tree will trigger just one update of canvas layers.
37+
*
38+
* Also allows the client to override the default order of layers. This is useful
39+
* in advanced cases where the grouping in layer tree should be independent from the actual
40+
* order in the canvas.
41+
*
42+
* @added in 2.4
43+
*/
2944
class GUI_EXPORT QgsLayerTreeMapCanvasBridge : public QObject
3045
{
3146
Q_OBJECT
3247
public:
48+
//! Constructor: does not take ownership of the layer tree nor canvas
3349
QgsLayerTreeMapCanvasBridge( QgsLayerTreeGroup* root, QgsMapCanvas* canvas, QObject* parent = 0 );
3450

3551
void clear();

0 commit comments

Comments
 (0)
Please sign in to comment.