QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
16 #ifndef QGSSIMPLIFYMETHOD_H
17 #define QGSSIMPLIFYMETHOD_H
19 #include "qgis_core.h"
42 void setMethodType( MethodType methodType );
47 void setTolerance(
double tolerance );
49 inline double tolerance()
const {
return mTolerance; }
54 inline float threshold()
const {
return mThreshold; }
57 void setForceLocalOptimization(
bool localOptimization );
74 double mTolerance = 1;
78 bool mForceLocalOptimization =
true;
81 #endif // QGSSIMPLIFYMETHOD_H
This class contains information about how to simplify geometries fetched from a QgsFeatureIterator.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
bool forceLocalOptimization() const
Gets whether the simplification executes after fetch the geometries from provider,...
void setThreshold(float threshold)
Sets the simplification threshold in pixels. Represents the maximum distance in pixels between two co...
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
@ OptimizeForRendering
Simplify using the map2pixel data to optimize the rendering of geometries.
Abstract base class for simplify geometries using a specific algorithm.
double tolerance() const
Gets the tolerance of simplification in map units. Represents the maximum distance in map units betwe...
@ NoSimplification
No simplification is applied.
MethodType methodType() const
Gets the simplification type.
float threshold() const
Gets the simplification threshold in pixels. Represents the maximum distance in pixels between two co...