|
QGIS API Documentation 3.36.0-Maidenhead (09951dc0acf)
|
This class contains information about how to simplify geometries fetched from a QgsFeatureIterator. More...
#include <qgssimplifymethod.h>
Public Types | |
| enum | MethodType { NoSimplification , OptimizeForRendering , PreserveTopology } |
Public Member Functions | |
| QgsSimplifyMethod ()=default | |
| construct a default method | |
| bool | forceLocalOptimization () const |
| Gets whether the simplification executes after fetch the geometries from provider, otherwise it executes, when supported, in provider before fetch the geometries. | |
| MethodType | methodType () const |
| Gets the simplification type. | |
| bool | operator!= (const QgsSimplifyMethod &v) const |
| Inequality operator. | |
| bool | operator== (const QgsSimplifyMethod &v) const |
| Equality operator. | |
| void | setForceLocalOptimization (bool localOptimization) |
| Sets whether the simplification executes after fetch the geometries from provider, otherwise it executes, when supported, in provider before fetch the geometries. | |
| void | setMethodType (MethodType methodType) |
| Sets the simplification type. | |
| void | setThreshold (float threshold) |
| Sets the simplification threshold in pixels. Represents the maximum distance in pixels between two coordinates which can be considered equal. | |
| void | setTolerance (double tolerance) |
| Sets the tolerance of simplification in map units. Represents the maximum distance in map units between two coordinates which can be considered equal. | |
| float | threshold () const |
| Gets the simplification threshold in pixels. Represents the maximum distance in pixels between two coordinates which can be considered equal. | |
| double | tolerance () const |
| Gets the tolerance of simplification in map units. Represents the maximum distance in map units between two coordinates which can be considered equal. | |
Static Public Member Functions | |
| static QgsAbstractGeometrySimplifier * | createGeometrySimplifier (const QgsSimplifyMethod &simplifyMethod) |
| Creates a geometry simplifier according to specified method. | |
Protected Attributes | |
| bool | mForceLocalOptimization = true |
| Simplification executes after fetch the geometries from provider, otherwise it executes, when supported, in provider before fetch the geometries. | |
| MethodType | mMethodType = QgsSimplifyMethod::NoSimplification |
| Simplification method. | |
| float | mThreshold = 1 |
| Simplification threshold. | |
| double | mTolerance = 1 |
| Simplification tolerance, it represents the maximum distance between two coordinates which can be considered equal. | |
This class contains information about how to simplify geometries fetched from a QgsFeatureIterator.
Definition at line 27 of file qgssimplifymethod.h.
Definition at line 30 of file qgssimplifymethod.h.
|
default |
construct a default method
|
static |
Creates a geometry simplifier according to specified method.
Definition at line 37 of file qgssimplifymethod.cpp.
|
inline |
Gets whether the simplification executes after fetch the geometries from provider, otherwise it executes, when supported, in provider before fetch the geometries.
Definition at line 58 of file qgssimplifymethod.h.
|
inline |
Gets the simplification type.
Definition at line 43 of file qgssimplifymethod.h.
| bool QgsSimplifyMethod::operator!= | ( | const QgsSimplifyMethod & | v | ) | const |
Inequality operator.
Definition at line 67 of file qgssimplifymethod.cpp.
| bool QgsSimplifyMethod::operator== | ( | const QgsSimplifyMethod & | v | ) | const |
Equality operator.
Definition at line 58 of file qgssimplifymethod.cpp.
| void QgsSimplifyMethod::setForceLocalOptimization | ( | bool | localOptimization | ) |
Sets whether the simplification executes after fetch the geometries from provider, otherwise it executes, when supported, in provider before fetch the geometries.
Definition at line 32 of file qgssimplifymethod.cpp.
| void QgsSimplifyMethod::setMethodType | ( | MethodType | methodType | ) |
Sets the simplification type.
Definition at line 22 of file qgssimplifymethod.cpp.
|
inline |
Sets the simplification threshold in pixels. Represents the maximum distance in pixels between two coordinates which can be considered equal.
Definition at line 51 of file qgssimplifymethod.h.
| void QgsSimplifyMethod::setTolerance | ( | double | tolerance | ) |
Sets the tolerance of simplification in map units. Represents the maximum distance in map units between two coordinates which can be considered equal.
Definition at line 27 of file qgssimplifymethod.cpp.
|
inline |
Gets the simplification threshold in pixels. Represents the maximum distance in pixels between two coordinates which can be considered equal.
Definition at line 53 of file qgssimplifymethod.h.
|
inline |
Gets the tolerance of simplification in map units. Represents the maximum distance in map units between two coordinates which can be considered equal.
Definition at line 48 of file qgssimplifymethod.h.
|
protected |
Simplification executes after fetch the geometries from provider, otherwise it executes, when supported, in provider before fetch the geometries.
Definition at line 77 of file qgssimplifymethod.h.
|
protected |
Simplification method.
Definition at line 71 of file qgssimplifymethod.h.
|
protected |
Simplification threshold.
Definition at line 75 of file qgssimplifymethod.h.
|
protected |
Simplification tolerance, it represents the maximum distance between two coordinates which can be considered equal.
Definition at line 73 of file qgssimplifymethod.h.