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; }
59 SnappedToGridGlobal = 3,
64 void setSimplifyAlgorithm(
SimplifyAlgorithm simplifyAlgorithm ) { mSimplifyAlgorithm = simplifyAlgorithm; }
71 inline double tolerance()
const {
return mTolerance; }
76 inline float threshold()
const {
return mThreshold; }
90 SimplifyHints mSimplifyHints;
94 double mTolerance = 1;
98 bool mLocalOptimization =
true;
100 float mMaximumScale = 1;
103 Q_DECLARE_OPERATORS_FOR_FLAGS( QgsVectorSimplifyMethod::SimplifyHints )
105 #endif // QGSVECTORSIMPLIFYMETHOD_H SimplifyAlgorithm simplifyAlgorithm() const
Gets the local simplification algorithm of the vector layer managed.
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.
float maximumScale() const
Gets the maximum scale at which the layer should be simplified.
double tolerance() const
Gets the tolerance of simplification in map units. Represents the maximum distance in map units betwe...
void setTolerance(double tolerance)
Sets the tolerance of simplification in map units. Represents the maximum distance in map units betwe...
float threshold() const
Gets the simplification threshold of the vector layer managed.
The simplification uses the distance between points to remove duplicate points.
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.
bool forceLocalOptimization() const
Gets where the simplification executes, after fetch the geometries from provider, or when supported...
SimplifyAlgorithm
Types of local simplification algorithms that can be used.
SimplifyHints simplifyHints() const
Gets the simplification hints of the vector layer managed.
void setThreshold(float threshold)
Sets the simplification threshold of the vector layer managed.