QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
Loading...
Searching...
No Matches
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
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
17
18const QString QgsClassificationCustom::METHOD_ID = QStringLiteral( "Custom" );
19
20
23 0 /*codeComplexity*/ )
24{
25}
26
27
34
36{
37 return QObject::tr( "Custom" );
38}
39
41{
42 return METHOD_ID;
43}
44
45QList<double> QgsClassificationCustom::calculateBreaks( double &minimum, double &maximum,
46 const QList<double> &values, int nclasses, QString &error )
47{
48 Q_UNUSED( minimum )
49 Q_UNUSED( maximum )
50 Q_UNUSED( values )
51 Q_UNUSED( nclasses )
52 Q_UNUSED( error )
53 return QList<double>();
54}
QgsClassificationCustom is a dummy implementation of QgsClassification which does not compute any bre...
QString id() const override
The id of the method as saved in the project, must be unique in registry.
QgsClassificationMethod * clone() const override
Returns a clone of the method.
QString name() const override
The readable and translate name of the method.
QgsClassificationMethod is an abstract class for implementations of classification methods.
void copyBase(QgsClassificationMethod *c) const
Copy the parameters (shall be used in clone implementation)
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