QGIS API Documentation
3.14.0-Pi (9f7028fd23)
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
z
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
c
e
f
g
h
k
l
m
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Functions
a
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
v
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
n
o
p
q
r
s
t
u
w
Typedefs
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
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
const
QString
QgsClassificationCustom::METHOD_ID
= QStringLiteral(
"Custom"
);
19
20
21
QgsClassificationCustom::QgsClassificationCustom
()
22
:
QgsClassificationMethod
( NoFlag,
23
0
/*codeComplexity*/
)
24
{
25
}
26
27
28
QgsClassificationMethod
*
QgsClassificationCustom::clone
()
const
29
{
30
QgsClassificationCustom
*
c
=
new
QgsClassificationCustom
();
31
copyBase
(
c
);
32
return
c
;
33
}
34
35
QString
QgsClassificationCustom::name
()
const
36
{
37
return
QObject::tr(
"Custom"
);
38
}
39
40
QString
QgsClassificationCustom::id
()
const
41
{
42
return
METHOD_ID
;
43
}
44
45
QList<double> QgsClassificationCustom::calculateBreaks(
double
&minimum,
double
&maximum,
46
const
QList<double> &values,
int
nclasses )
47
{
48
Q_UNUSED( minimum )
49
Q_UNUSED( maximum )
50
Q_UNUSED( values )
51
Q_UNUSED( nclasses )
52
return
QList<double>();
53
}
QgsClassificationCustom::METHOD_ID
static const QString METHOD_ID
Definition:
qgsclassificationcustom.h:52
QgsClassificationMethod
Definition:
qgsclassificationmethod.h:87
qgsclassificationcustom.h
QgsClassificationCustom::id
QString id() const override
The id of the method as saved in the project, must be unique in registry.
Definition:
qgsclassificationcustom.cpp:40
QgsClassificationCustom::name
QString name() const override
The readable and translate name of the method.
Definition:
qgsclassificationcustom.cpp:35
QgsClassificationCustom
Definition:
qgsclassificationcustom.h:28
QgsClassificationCustom::QgsClassificationCustom
QgsClassificationCustom()
Definition:
qgsclassificationcustom.cpp:21
QgsClassificationMethod::copyBase
void copyBase(QgsClassificationMethod *c) const
Copy the parameters (shall be used in clone implementation)
Definition:
qgsclassificationmethod.cpp:52
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::clone
QgsClassificationMethod * clone() const override
Returns a clone of the method.
Definition:
qgsclassificationcustom.cpp:28
Generated on Mon Jun 22 2020 05:14:09 for QGIS API Documentation by
1.8.17