Class: QgsElevationProfileManagerModel¶
List model representing the elevation profiles available in a elevation profile manager.
Added in version 4.0.
Class Hierarchy¶
Base classes¶
Base class for list models representing the objects available in a |
|
Enums
Custom model roles. |
Methods
Returns the model index corresponding to a profile. |
|
Returns the profile at the corresponding index. |
- class qgis.core.QgsElevationProfileManagerModel[source]¶
Bases:
QgsProjectStoredObjectManagerModelBase
- __init__(manager: QgsElevationProfileManager | None, parent: QObject | None = None)
Constructor for QgsElevationProfileManagerModel, showing the elevation profiles from the specified
manager
.- Parameters:
manager (Optional[QgsElevationProfileManager])
parent (Optional[QObject] = None)
- class CustomRole(*values)¶
Bases:
IntEnum
Custom model roles.
ElevationProfile
: Elevation profile object
- ElevationProfile = 257¶
- indexFromProfile(self, profile: QgsElevationProfile | None) QModelIndex [source]¶
Returns the model index corresponding to a
profile
.See also
- Parameters:
profile (Optional[QgsElevationProfile])
- Return type:
QModelIndex
- profileFromIndex(self, index: QModelIndex) QgsElevationProfile | None [source]¶
Returns the profile at the corresponding
index
.See also
- Parameters:
index (QModelIndex)
- Return type:
Optional[QgsElevationProfile]