QGIS API Documentation
4.3.0-Master (4ecdf0f3f59)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
3d
processing
qgs3dalgorithms.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
qgs3dalgorithms.cpp
3
---------------------
4
begin : November 2017
5
copyright : (C) 2017 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
18
#include "
qgs3dalgorithms.h
"
19
20
#include "
qgsalgorithmtessellate.h
"
21
#include "
qgsapplication.h
"
22
23
#include <QString>
24
25
#include "moc_qgs3dalgorithms.cpp"
26
27
using namespace
Qt::StringLiterals;
28
30
31
Qgs3DAlgorithms::Qgs3DAlgorithms
( QObject *parent )
32
:
QgsProcessingProvider
( parent )
33
{}
34
35
QIcon
Qgs3DAlgorithms::icon
()
const
36
{
37
return
QgsApplication::getThemeIcon
( u
"/providerQgis.svg"
_s );
38
}
39
40
QString
Qgs3DAlgorithms::svgIconPath
()
const
41
{
42
return
QgsApplication::iconPath
( u
"providerQgis.svg"
_s );
43
}
44
45
QString
Qgs3DAlgorithms::id
()
const
46
{
47
return
u
"3d"
_s;
48
}
49
50
QString
Qgs3DAlgorithms::helpId
()
const
51
{
52
return
u
"qgis"
_s;
53
}
54
55
QString
Qgs3DAlgorithms::name
()
const
56
{
57
return
tr(
"QGIS (3D)"
);
58
}
59
60
bool
Qgs3DAlgorithms::supportsNonFileBasedOutput
()
const
61
{
62
return
true
;
63
}
64
65
void
Qgs3DAlgorithms::loadAlgorithms
()
66
{
67
addAlgorithm
(
new
QgsTessellateAlgorithm() );
68
}
69
70
Qgs3DAlgorithms::name
QString name() const override
Returns the provider name, which is used to describe the provider within the GUI.
Qgs3DAlgorithms::id
QString id() const override
Returns the unique provider id, used for identifying the provider.
Qgs3DAlgorithms::svgIconPath
QString svgIconPath() const override
Returns a path to an SVG version of the provider's icon.
Qgs3DAlgorithms::loadAlgorithms
void loadAlgorithms() override
Loads all algorithms belonging to this provider.
Qgs3DAlgorithms::supportsNonFileBasedOutput
bool supportsNonFileBasedOutput() const override
Returns true if the provider supports non-file based outputs (such as memory layers or direct databas...
Qgs3DAlgorithms::icon
QIcon icon() const override
Returns an icon for the provider.
Qgs3DAlgorithms::helpId
QString helpId() const override
Returns the provider help id string, used for creating QgsHelp urls for algorithms belong to this pro...
Qgs3DAlgorithms::Qgs3DAlgorithms
Qgs3DAlgorithms(QObject *parent=nullptr)
Constructor for Qgs3DAlgorithms.
QgsApplication::getThemeIcon
static QIcon getThemeIcon(const QString &name, const QColor &fillColor=QColor(), const QColor &strokeColor=QColor())
Helper to get a theme icon.
Definition
qgsapplication.cpp:904
QgsApplication::iconPath
static QString iconPath(const QString &iconFile)
Returns path to the desired icon file.
Definition
qgsapplication.cpp:893
QgsProcessingProvider
Abstract base class for processing providers.
Definition
qgsprocessingprovider.h:45
QgsProcessingProvider::addAlgorithm
bool addAlgorithm(QgsProcessingAlgorithm *algorithm)
Adds an algorithm to the provider.
Definition
qgsprocessingprovider.cpp:176
qgs3dalgorithms.h
qgsalgorithmtessellate.h
qgsapplication.h
Generated on
for QGIS API Documentation by
1.17.0