16 #ifndef QGSVECTORSIMPLIFYMETHOD_H 17 #define QGSVECTORSIMPLIFYMETHOD_H 35 GeometrySimplification = 1,
36 AntialiasingSimplification = 2,
37 FullSimplification = 3,
42 void setSimplifyHints( const SimplifyHints& simplifyHints ) { mSimplifyHints = simplifyHints; }
62 inline double tolerance()
const {
return mTolerance; }
67 inline float threshold()
const {
return mThreshold; }
81 SimplifyHints mSimplifyHints;
89 bool mLocalOptimization;
94 Q_DECLARE_OPERATORS_FOR_FLAGS( QgsVectorSimplifyMethod::SimplifyHints )
96 #endif // QGSVECTORSIMPLIFYMETHOD_H void setSimplifyAlgorithm(const SimplifyAlgorithm &simplifyAlgorithm)
Sets the local simplification algorithm of the vector layer managed.
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.
void setTolerance(double tolerance)
Sets the tolerance of simplification in map units.
float threshold() const
Gets the simplification threshold of the vector layer managed.
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.