2017-05-18 16:39:21 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgssimplifymethod.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
2014-01-11 11:12:51 +01:00
class QgsSimplifyMethod
{
2017-05-18 16:39:21 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
This class contains information about how to simplify geometries fetched from a QgsFeatureIterator
2017-05-18 16:39:21 +02:00
.. versionadded:: 2.2
%End
2014-01-11 11:12:51 +01:00
%TypeHeaderCode
#include "qgssimplifymethod.h"
%End
public:
enum MethodType
{
2017-05-18 16:39:21 +02:00
NoSimplification,
OptimizeForRendering,
PreserveTopology
2014-01-11 11:12:51 +01:00
};
QgsSimplifyMethod();
2017-05-18 16:39:21 +02:00
%Docstring
construct a default method
%End
2014-01-11 11:12:51 +01:00
void setMethodType( MethodType methodType );
2017-05-18 16:39:21 +02:00
%Docstring
Sets the simplification type
%End
2014-01-11 11:12:51 +01:00
MethodType methodType() const;
2017-05-18 16:39:21 +02:00
%Docstring
Gets the simplification type
%End
2014-01-11 11:12:51 +01:00
void setTolerance( double tolerance );
2017-05-18 16:39:21 +02:00
%Docstring
Sets the tolerance of simplification in map units. Represents the maximum distance in map units between two coordinates which can be considered equal.
%End
2014-01-11 11:12:51 +01:00
double tolerance() const;
2017-05-18 16:39:21 +02:00
%Docstring
Gets the tolerance of simplification in map units. Represents the maximum distance in map units between two coordinates which can be considered equal.
%End
2014-01-11 11:12:51 +01:00
2015-10-30 11:31:07 +01:00
void setThreshold( float threshold );
2017-05-18 16:39:21 +02:00
%Docstring
Sets the simplification threshold in pixels. Represents the maximum distance in pixels between two coordinates which can be considered equal.
%End
2015-10-30 11:31:07 +01:00
float threshold() const;
2017-05-18 16:39:21 +02:00
%Docstring
Gets the simplification threshold in pixels. Represents the maximum distance in pixels between two coordinates which can be considered equal.
%End
2015-10-30 11:31:07 +01:00
2014-01-11 11:12:51 +01:00
void setForceLocalOptimization( bool localOptimization );
2017-05-18 16:39:21 +02:00
%Docstring
Sets whether the simplification executes after fetch the geometries from provider, otherwise it executes, when supported, in provider before fetch the geometries
%End
2014-01-11 11:12:51 +01:00
bool forceLocalOptimization() const;
2017-05-18 16:39:21 +02:00
%Docstring
Gets whether the simplification executes after fetch the geometries from provider, otherwise it executes, when supported, in provider before fetch the geometries
%End
2014-01-11 11:12:51 +01:00
2017-05-01 16:42:33 +02:00
static QgsAbstractGeometrySimplifier *createGeometrySimplifier( const QgsSimplifyMethod &simplifyMethod );
2017-05-18 16:39:21 +02:00
%Docstring
Creates a geometry simplifier according to specified method
%End
protected:
2014-01-11 11:12:51 +01:00
};
2017-05-18 16:39:21 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgssimplifymethod.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/