16 #ifndef QGSVECTORSIMPLIFYMETHOD_H
17 #define QGSVECTORSIMPLIFYMETHOD_H
38 GeometrySimplification = 1,
39 AntialiasingSimplification = 2,
40 FullSimplification = 3,
42 Q_DECLARE_FLAGS( SimplifyHints, SimplifyHint )
45 void setSimplifyHints( SimplifyHints simplifyHints ) { mSimplifyHints = simplifyHints; }
52 inline float threshold()
const {
return mThreshold; }
75 Q_DECLARE_OPERATORS_FOR_FLAGS( QgsVectorSimplifyMethod::SimplifyHints )
77 #endif // QGSVECTORSIMPLIFYMETHOD_H
float threshold() const
Gets the simplification threshold of the vector layer managed.
bool mLocalOptimization
Simplification executes after fetch the geometries from provider, otherwise it executes, when supported, in provider before fetch the geometries.
float mMaximumScale
Maximum scale at which the layer should be simplified (Maximum scale at which generalisation should b...
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.
bool forceLocalOptimization() const
Gets where the simplification executes, after fetch the geometries from provider, or when supported...
float mThreshold
Simplification threshold.
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.
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.
SimplifyHints mSimplifyHints
Simplification hints for fast rendering of features of the vector layer managed.
void setThreshold(float threshold)
Sets the simplification threshold of the vector layer managed.