QGIS API Documentation 3.37.0-Master (fdefdf9c27f)
Signals | Public Member Functions | Protected Member Functions | List of all members
QgsElevationProfileLayerTreeView Class Reference

A layer tree view for elevation profiles. More...

#include <qgselevationprofilelayertreeview.h>

Inheritance diagram for QgsElevationProfileLayerTreeView:
Inheritance graph
[legend]

Signals

void addLayers (const QList< QgsMapLayer * > &layers)
 Emitted when layers should be added to the profile, e.g. More...
 

Public Member Functions

 QgsElevationProfileLayerTreeView (QgsLayerTree *rootNode, QWidget *parent=nullptr)
 Construct a new tree view with given layer tree (root node must not be nullptr). More...
 
QgsMapLayerindexToLayer (const QModelIndex &index)
 Converts a view index to a map layer. More...
 
void populateInitialLayers (QgsProject *project)
 Initially populates the tree view using layers from a project. More...
 
QgsElevationProfileLayerTreeProxyModelproxyModel ()
 Returns the view's proxy model. More...
 

Protected Member Functions

void resizeEvent (QResizeEvent *event) override
 

Detailed Description

A layer tree view for elevation profiles.

Note
Not available in Python bindings
Since
QGIS 3.30

Definition at line 120 of file qgselevationprofilelayertreeview.h.

Constructor & Destructor Documentation

◆ QgsElevationProfileLayerTreeView()

QgsElevationProfileLayerTreeView::QgsElevationProfileLayerTreeView ( QgsLayerTree rootNode,
QWidget *  parent = nullptr 
)
explicit

Construct a new tree view with given layer tree (root node must not be nullptr).

The root node is not transferred by the view.

Definition at line 414 of file qgselevationprofilelayertreeview.cpp.

Member Function Documentation

◆ addLayers

void QgsElevationProfileLayerTreeView::addLayers ( const QList< QgsMapLayer * > &  layers)
signal

Emitted when layers should be added to the profile, e.g.

via a drag and drop action.

Since
QGIS 3.32

◆ indexToLayer()

QgsMapLayer * QgsElevationProfileLayerTreeView::indexToLayer ( const QModelIndex &  index)

Converts a view index to a map layer.

Definition at line 441 of file qgselevationprofilelayertreeview.cpp.

◆ populateInitialLayers()

void QgsElevationProfileLayerTreeView::populateInitialLayers ( QgsProject project)

Initially populates the tree view using layers from a project.

Definition at line 453 of file qgselevationprofilelayertreeview.cpp.

◆ proxyModel()

QgsElevationProfileLayerTreeProxyModel * QgsElevationProfileLayerTreeView::proxyModel ( )

Returns the view's proxy model.

Since
QGIS 3.32

Definition at line 484 of file qgselevationprofilelayertreeview.cpp.

◆ resizeEvent()

void QgsElevationProfileLayerTreeView::resizeEvent ( QResizeEvent *  event)
overrideprotected

Definition at line 489 of file qgselevationprofilelayertreeview.cpp.


The documentation for this class was generated from the following files: