QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
elevation
qgselevationprofilemanagermodel.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
qgselevationprofilemanagermodel.cpp
3
--------------------
4
Date : July 2025
5
Copyright : (C) 2025 Nyall Dawson
6
Email : nyall dot dawson at gmail dot com
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#include "
qgselevationprofilemanagermodel.h
"
17
18
#include "
qgselevationprofile.h
"
19
#include "
qgselevationprofilemanager.h
"
20
#include "
qgsproject.h
"
21
22
#include "moc_qgselevationprofilemanagermodel.cpp"
23
24
//
25
// QgsElevationProfileManagerModel
26
//
27
28
QgsElevationProfileManagerModel::QgsElevationProfileManagerModel
(
QgsElevationProfileManager
*manager, QObject *parent )
29
:
QgsProjectStoredObjectManagerModel
( manager, parent )
30
{
31
connect( manager, &
QgsElevationProfileManager::profileRenamed
,
this
, &QgsElevationProfileManagerModel::objectRenamedInternal );
32
}
33
34
QgsElevationProfile
*
QgsElevationProfileManagerModel::profileFromIndex
(
const
QModelIndex &index )
const
35
{
36
return
objectFromIndex
( index );
37
}
38
39
QModelIndex
QgsElevationProfileManagerModel::indexFromProfile
(
QgsElevationProfile
*layout )
const
40
{
41
return
indexFromObject
( layout );
42
}
43
44
45
//
46
// QgsElevationProfileManagerProxyModel
47
//
48
49
QgsElevationProfileManagerProxyModel::QgsElevationProfileManagerProxyModel
( QObject *parent )
50
:
QgsProjectStoredObjectManagerProxyModel
( parent )
51
{}
QgsElevationProfileManagerModel::QgsElevationProfileManagerModel
QgsElevationProfileManagerModel(QgsElevationProfileManager *manager, QObject *parent=nullptr)
Constructor for QgsElevationProfileManagerModel, showing the elevation profiles from the specified ma...
Definition
qgselevationprofilemanagermodel.cpp:28
QgsElevationProfileManagerModel::profileFromIndex
QgsElevationProfile * profileFromIndex(const QModelIndex &index) const
Returns the profile at the corresponding index.
Definition
qgselevationprofilemanagermodel.cpp:34
QgsElevationProfileManagerModel::indexFromProfile
QModelIndex indexFromProfile(QgsElevationProfile *profile) const
Returns the model index corresponding to a profile.
Definition
qgselevationprofilemanagermodel.cpp:39
QgsElevationProfileManagerProxyModel::QgsElevationProfileManagerProxyModel
QgsElevationProfileManagerProxyModel(QObject *parent=nullptr)
Constructor for QgsElevationProfileManagerProxyModel.
Definition
qgselevationprofilemanagermodel.cpp:49
QgsElevationProfileManager
Manages storage of a set of elevation profiles.
Definition
qgselevationprofilemanager.h:50
QgsElevationProfileManager::profileRenamed
void profileRenamed(QgsElevationProfile *profile, const QString &newName)
Emitted when a profile is renamed.
QgsElevationProfile
Represents an elevation profile attached to a project.
Definition
qgselevationprofile.h:45
QgsProjectStoredObjectManagerModel< QgsElevationProfile >::indexFromObject
QModelIndex indexFromObject(QgsElevationProfile *object) const
Definition
qgsprojectstoredobjectmanagermodel.cpp:253
QgsProjectStoredObjectManagerModel< QgsElevationProfile >::objectFromIndex
QgsElevationProfile * objectFromIndex(const QModelIndex &index) const
Definition
qgsprojectstoredobjectmanagermodel.cpp:242
QgsProjectStoredObjectManagerModel< QgsElevationProfile >::QgsProjectStoredObjectManagerModel
QgsProjectStoredObjectManagerModel(QgsAbstractProjectStoredObjectManager< QgsElevationProfile > *manager, QObject *parent=nullptr)
Definition
qgsprojectstoredobjectmanagermodel.cpp:76
QgsProjectStoredObjectManagerProxyModel< QgsElevationProfile >::QgsProjectStoredObjectManagerProxyModel
QgsProjectStoredObjectManagerProxyModel(QObject *parent=nullptr)
Definition
qgsprojectstoredobjectmanagermodel.cpp:434
qgselevationprofile.h
qgselevationprofilemanager.h
qgselevationprofilemanagermodel.h
qgsproject.h
Generated on
for QGIS API Documentation by
1.17.0