QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
elevation
qgsabstractprofilesource.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsabstractprofilesource.h
3
---------------
4
begin : March 2022
5
copyright : (C) 2022 by Nyall Dawson
6
email : nyall dot dawson at gmail dot com
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
#ifndef QGSABSTRACTPROFILESOURCE_H
18
#define QGSABSTRACTPROFILESOURCE_H
19
20
#include "qgis_core.h"
21
#include "
qgis_sip.h
"
22
23
class
QgsProfileRequest
;
24
class
QgsAbstractProfileGenerator
;
25
26
#include <QUuid>
27
34
class
CORE_EXPORT
QgsAbstractProfileSource
35
{
36
public
:
37
virtual
~QgsAbstractProfileSource
();
38
47
virtual
QgsAbstractProfileGenerator
*
createProfileGenerator
(
const
QgsProfileRequest
&request ) = 0
SIP_FACTORY
;
48
57
virtual
QString
profileSourceId
()
const
{
return
mSourceId; };
// TODO QGIS 5.0: Make it pure virtual
58
66
virtual
QString
profileSourceName
()
const
{
return
QString(); };
// TODO QGIS 5.0: Make it pure virtual
67
68
private
:
69
QString mSourceId = QUuid::createUuid().toString();
// Support legacy sources with a uuid
70
};
71
72
#endif
// QGSABSTRACTPROFILESOURCE_H
QgsAbstractProfileGenerator
Abstract base class for objects which generate elevation profiles.
Definition
qgsabstractprofilegenerator.h:404
QgsAbstractProfileSource
Interface for classes which can generate elevation profiles.
Definition
qgsabstractprofilesource.h:35
QgsAbstractProfileSource::profileSourceId
virtual QString profileSourceId() const
Returns a unique identifier for this profile source.
Definition
qgsabstractprofilesource.h:57
QgsAbstractProfileSource::createProfileGenerator
virtual QgsAbstractProfileGenerator * createProfileGenerator(const QgsProfileRequest &request)=0
Given a profile request, returns a new profile generator ready for generating elevation profiles.
QgsAbstractProfileSource::~QgsAbstractProfileSource
virtual ~QgsAbstractProfileSource()
QgsAbstractProfileSource::profileSourceName
virtual QString profileSourceName() const
Returns a name for displaying this profile source in the elevation profile layer tree.
Definition
qgsabstractprofilesource.h:66
QgsProfileRequest
Encapsulates properties and constraints relating to fetching elevation profiles from different source...
Definition
qgsprofilerequest.h:38
qgis_sip.h
SIP_FACTORY
#define SIP_FACTORY
Definition
qgis_sip.h:83
Generated on
for QGIS API Documentation by
1.17.0