16 #ifndef QGSVECTORSIMPLIFYMETHOD_H 17 #define QGSVECTORSIMPLIFYMETHOD_H 22 #include "qgis_core.h" 40 GeometrySimplification = 1,
41 AntialiasingSimplification = 2,
42 FullSimplification = 3,
46 Q_FLAG( SimplifyHints )
49 void setSimplifyHints( SimplifyHints simplifyHints ) { mSimplifyHints = simplifyHints; }
63 void setSimplifyAlgorithm(
SimplifyAlgorithm simplifyAlgorithm ) { mSimplifyAlgorithm = simplifyAlgorithm; }
70 inline double tolerance()
const {
return mTolerance; }
75 inline float threshold()
const {
return mThreshold; }
89 SimplifyHints mSimplifyHints;
93 double mTolerance = 1;
97 bool mLocalOptimization =
true;
99 float mMaximumScale = 1;
102 Q_DECLARE_OPERATORS_FOR_FLAGS( QgsVectorSimplifyMethod::SimplifyHints )
104 #endif // QGSVECTORSIMPLIFYMETHOD_H float threshold() const
Gets the simplification threshold of the vector layer managed.
double tolerance() const
Gets the tolerance of simplification in map units. Represents the maximum distance in map units betwe...
void setForceLocalOptimization(bool localOptimization)
Sets where the simplification executes, after fetch the geometries from provider, or when supported...
SimplifyHint
Simplification flags for fast rendering of features.
void setTolerance(double tolerance)
Sets the tolerance of simplification in map units. Represents the maximum distance in map units betwe...
The simplification uses the distance between points to remove duplicate points.
bool forceLocalOptimization() const
Gets where the simplification executes, after fetch the geometries from provider, or when supported...
void setMaximumScale(float maximumScale)
Sets the maximum scale at which the layer should be simplified.
This class contains information how to simplify geometries fetched from a vector layer.
SimplifyAlgorithm
Types of local simplification algorithms that can be used.
SimplifyHints simplifyHints() const
Gets the simplification hints of the vector layer managed.
float maximumScale() const
Gets the maximum scale at which the layer should be simplified.
SimplifyAlgorithm simplifyAlgorithm() const
Gets the local simplification algorithm of the vector layer managed.
void setThreshold(float threshold)
Sets the simplification threshold of the vector layer managed.