16 #ifndef QGSSIMPLIFYMETHOD_H 17 #define QGSSIMPLIFYMETHOD_H 44 void setTolerance(
double tolerance );
46 inline double tolerance()
const {
return mTolerance; }
51 inline float threshold()
const {
return mThreshold; }
54 void setForceLocalOptimization(
bool localOptimization );
72 #endif // QGSSIMPLIFYMETHOD_H void setThreshold(float threshold)
Sets the simplification threshold in pixels. Represents the maximum distance in pixels between two co...
float threshold() const
Gets the simplification threshold in pixels. Represents the maximum distance in pixels between two co...
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 mMethodType
Simplification method.
Simplify using the map2pixel data to optimize the rendering of geometries.
double tolerance() const
Gets the tolerance of simplification in map units. Represents the maximum distance in map units betwe...
No simplification is applied.
float mThreshold
Simplification threshold.
bool mForceLocalOptimization
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.
double mTolerance
Simplification tolerance, it represents the maximum distance between two coordinates which can be con...
This class contains information about how to simplify geometries fetched from a QgsFeatureIterator.
Abstract base class for simplify geometries using a specific algorithm.