Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
update python bindings
  • Loading branch information
3nids committed Dec 4, 2019
1 parent 576e81d commit aec6866
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 2 deletions.
Expand Up @@ -31,6 +31,8 @@ which does not compute any break.
virtual QString id() const;


virtual bool valuesRequired() const;

static const QString METHOD_ID;

};
Expand Down
Expand Up @@ -32,6 +32,8 @@ for equal intervals
virtual QIcon icon() const;


virtual bool valuesRequired() const;

static const QString METHOD_ID;

};
Expand Down
Expand Up @@ -32,6 +32,8 @@ Implementation of a logarithmic scale method

virtual QString labelForRange( double lowerValue, double upperValue, ClassPosition position ) const;

virtual bool valuesRequired() const;


};

Expand Down
Expand Up @@ -155,13 +155,14 @@ Writes extra information about the method
Reads extra information to apply it to the method
%End


bool valuesRequired() const;
virtual bool valuesRequired() const;
%Docstring
Returns if the method requires values to calculate the classes
If not, bounds are sufficient
%End



int codeComplexity() const;
%Docstring
Code complexity as the exponent in Big O notation
Expand Down Expand Up @@ -289,6 +290,27 @@ Does not put a break on the symmetryPoint. This is done before.
Returns the label for a range
%End

const QgsProcessingParameterDefinition *parameterDefinition( const QString &parameterName ) const;
%Docstring
Get parameter from its id

.. versionadded:: 3.12
%End

const QgsProcessingParameterDefinitions parameterDefinitions() const;
%Docstring
List of parameters

.. versionadded:: 3.12
%End

void setParameterValues( const QVariantMap &values );
%Docstring
Set values of the additional parameters

.. versionadded:: 3.12
%End



static const int MAX_PRECISION;
Expand All @@ -304,6 +326,22 @@ Copy the parameters (shall be used in clone implementation)
QString formatNumber( double value ) const;
%Docstring
Format the number according to label properties
%End

void addParameter( QgsProcessingParameterDefinition *definition );
%Docstring
Add parameter

.. versionadded:: 3.12
%End

QVariant parameterValue( const QString &name ) const;
%Docstring
Get the parameter value

.. seealso:: :py:func:`setParameterValues`

.. versionadded:: 3.12
%End

};
Expand Down
Expand Up @@ -32,6 +32,8 @@ for pretty breaks
virtual QIcon icon() const;


virtual bool valuesRequired() const;

};

/************************************************************************
Expand Down
Expand Up @@ -10,6 +10,10 @@







class QgsGraduatedSymbolRendererWidget : QgsRendererWidget
{

Expand Down

0 comments on commit aec6866

Please sign in to comment.