QGIS/python/core/auto_generated/qgssimplifymethod.sip.in

87 lines
3.0 KiB
Plaintext
Raw Normal View History

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 *
************************************************************************/
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
%TypeHeaderCode
#include "qgssimplifymethod.h"
%End
public:
enum MethodType
{
2017-05-18 16:39:21 +02:00
NoSimplification,
OptimizeForRendering,
PreserveTopology
};
QgsSimplifyMethod();
2017-05-18 16:39:21 +02:00
%Docstring
construct a default method
%End
void setMethodType( MethodType methodType );
2017-05-18 16:39:21 +02:00
%Docstring
Sets the simplification type
%End
MethodType methodType() const;
2017-05-18 16:39:21 +02:00
%Docstring
Gets the simplification type
%End
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
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
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
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
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
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
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:
};
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 *
************************************************************************/