QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
This class contains information how to simplify geometries fetched from a vector layer. More...
#include <qgsvectorsimplifymethod.h>
Public Types | |
enum | SimplifyAlgorithm { Distance = 0, SnapToGrid = 1, Visvalingam = 2, SnappedToGridGlobal = 3 } |
Types of local simplification algorithms that can be used. More... | |
enum | SimplifyHint { NoSimplification = 0, GeometrySimplification = 1, AntialiasingSimplification = 2, FullSimplification = 3 } |
Simplification flags for fast rendering of features. More... | |
Public Member Functions | |
QgsVectorSimplifyMethod () | |
construct a default object More... | |
bool | forceLocalOptimization () const |
Gets where the simplification executes, after fetch the geometries from provider, or when supported, in provider before fetch the geometries. More... | |
float | maximumScale () const |
Gets the maximum scale at which the layer should be simplified. More... | |
void | setForceLocalOptimization (bool localOptimization) |
Sets where the simplification executes, after fetch the geometries from provider, or when supported, in provider before fetch the geometries. More... | |
void | setMaximumScale (float maximumScale) |
Sets the maximum scale at which the layer should be simplified. More... | |
void | setSimplifyAlgorithm (SimplifyAlgorithm simplifyAlgorithm) |
Sets the local simplification algorithm of the vector layer managed. More... | |
void | setSimplifyHints (SimplifyHints simplifyHints) |
Sets the simplification hints of the vector layer managed. More... | |
void | setThreshold (float threshold) |
Sets the simplification threshold of the vector layer managed. More... | |
void | setTolerance (double tolerance) |
Sets the tolerance of simplification in map units. Represents the maximum distance in map units between two coordinates which can be considered equal. More... | |
SimplifyAlgorithm | simplifyAlgorithm () const |
Gets the local simplification algorithm of the vector layer managed. More... | |
SimplifyHints | simplifyHints () const |
Gets the simplification hints of the vector layer managed. More... | |
float | threshold () const |
Gets the simplification threshold of the vector layer managed. More... | |
double | tolerance () const |
Gets the tolerance of simplification in map units. Represents the maximum distance in map units between two coordinates which can be considered equal. More... | |
This class contains information how to simplify geometries fetched from a vector layer.
Definition at line 29 of file qgsvectorsimplifymethod.h.
Types of local simplification algorithms that can be used.
Definition at line 67 of file qgsvectorsimplifymethod.h.
Simplification flags for fast rendering of features.
Definition at line 50 of file qgsvectorsimplifymethod.h.
QgsVectorSimplifyMethod::QgsVectorSimplifyMethod | ( | ) |
construct a default object
Definition at line 19 of file qgsvectorsimplifymethod.cpp.
|
inline |
Gets where the simplification executes, after fetch the geometries from provider, or when supported, in provider before fetch the geometries.
Definition at line 94 of file qgsvectorsimplifymethod.h.
|
inline |
Gets the maximum scale at which the layer should be simplified.
Definition at line 99 of file qgsvectorsimplifymethod.h.
|
inline |
Sets where the simplification executes, after fetch the geometries from provider, or when supported, in provider before fetch the geometries.
Definition at line 92 of file qgsvectorsimplifymethod.h.
|
inline |
Sets the maximum scale at which the layer should be simplified.
Definition at line 97 of file qgsvectorsimplifymethod.h.
|
inline |
Sets the local simplification algorithm of the vector layer managed.
Definition at line 77 of file qgsvectorsimplifymethod.h.
|
inline |
Sets the simplification hints of the vector layer managed.
Definition at line 62 of file qgsvectorsimplifymethod.h.
|
inline |
Sets the simplification threshold of the vector layer managed.
Definition at line 87 of file qgsvectorsimplifymethod.h.
|
inline |
Sets the tolerance of simplification in map units. Represents the maximum distance in map units between two coordinates which can be considered equal.
Definition at line 82 of file qgsvectorsimplifymethod.h.
|
inline |
Gets the local simplification algorithm of the vector layer managed.
Definition at line 79 of file qgsvectorsimplifymethod.h.
|
inline |
Gets the simplification hints of the vector layer managed.
Definition at line 64 of file qgsvectorsimplifymethod.h.
|
inline |
Gets the simplification threshold of the vector layer managed.
Definition at line 89 of file qgsvectorsimplifymethod.h.
|
inline |
Gets the tolerance of simplification in map units. Represents the maximum distance in map units between two coordinates which can be considered equal.
Definition at line 84 of file qgsvectorsimplifymethod.h.