File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,26 @@ class QgsMapCanvasLayer;
26
26
class QgsLayerTreeGroup ;
27
27
class QgsLayerTreeNode ;
28
28
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
+ */
29
44
class GUI_EXPORT QgsLayerTreeMapCanvasBridge : public QObject
30
45
{
31
46
Q_OBJECT
32
47
public:
48
+ // ! Constructor: does not take ownership of the layer tree nor canvas
33
49
QgsLayerTreeMapCanvasBridge ( QgsLayerTreeGroup* root, QgsMapCanvas* canvas, QObject* parent = 0 );
34
50
35
51
void clear ();
You can’t perform that action at this time.
0 commit comments