QGIS API Documentation
4.3.0-Master (52aa6503bed)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
classification
qgsclassificationcustom.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
qgsclassificationcustom.cpp
3
---------------------
4
begin : September 2019
5
copyright : (C) 2019 by Denis Rouzaud
6
email : denis@opengis.ch
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 "
qgsclassificationcustom.h
"
17
18
#include <QString>
19
20
using namespace
Qt::StringLiterals;
21
22
const
QString
QgsClassificationCustom::METHOD_ID
= u
"Custom"
_s;
23
24
25
QgsClassificationCustom::QgsClassificationCustom
()
26
:
QgsClassificationMethod
(
NoFlag
, 0
/*codeComplexity*/
)
27
{}
28
29
30
std::unique_ptr<QgsClassificationMethod>
QgsClassificationCustom::clone
()
const
31
{
32
auto
c
= std::make_unique< QgsClassificationCustom >();
33
copyBase
(
c
.get() );
34
return
c
;
35
}
36
37
QString
QgsClassificationCustom::name
()
const
38
{
39
return
QObject::tr(
"Custom"
);
40
}
41
42
QString
QgsClassificationCustom::id
()
const
43
{
44
return
METHOD_ID
;
45
}
46
47
QList<double> QgsClassificationCustom::calculateBreaks(
double
&minimum,
double
&maximum,
const
QList<double> &values,
int
nclasses, QString &error )
48
{
49
Q_UNUSED( minimum )
50
Q_UNUSED( maximum )
51
Q_UNUSED( values )
52
Q_UNUSED( nclasses )
53
Q_UNUSED( error )
54
return
QList<double>();
55
}
QgsClassificationCustom::id
QString id() const override
The id of the method as saved in the project, must be unique in registry.
Definition
qgsclassificationcustom.cpp:42
QgsClassificationCustom::QgsClassificationCustom
QgsClassificationCustom()
Definition
qgsclassificationcustom.cpp:25
QgsClassificationCustom::name
QString name() const override
The readable and translate name of the method.
Definition
qgsclassificationcustom.cpp:37
QgsClassificationCustom::METHOD_ID
static const QString METHOD_ID
Definition
qgsclassificationcustom.h:37
QgsClassificationCustom::clone
std::unique_ptr< QgsClassificationMethod > clone() const override
Returns a clone of the method.
Definition
qgsclassificationcustom.cpp:30
QgsClassificationMethod::QgsClassificationMethod
QgsClassificationMethod(MethodProperties properties=NoFlag, int codeComplexity=1)
Creates a classification method.
Definition
qgsclassificationmethod.cpp:45
QgsClassificationMethod::NoFlag
@ NoFlag
No flag.
Definition
qgsclassificationmethod.h:119
QgsClassificationMethod::copyBase
void copyBase(QgsClassificationMethod *c) const
Copy the parameters (shall be used in clone implementation).
Definition
qgsclassificationmethod.cpp:56
c
As part of the API refactoring and improvements which landed in the Processing API was substantially reworked from the x version This was done in order to allow much of the underlying Processing framework to be ported into c
Definition
porting_processing.dox:1
qgsclassificationcustom.h
Generated on
for QGIS API Documentation by
1.17.0