QGIS API Documentation
2.2.0-Valmiera
|
This class contains information how to simplify geometries fetched from a vector layer. More...
#include <qgsvectorsimplifymethod.h>
Public Types | |
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 | |
QgsVectorSimplifyMethod (const QgsVectorSimplifyMethod &rh) | |
copy constructor | |
QgsVectorSimplifyMethod & | operator= (const QgsVectorSimplifyMethod &rh) |
assignment operator | |
void | setSimplifyHints (SimplifyHints simplifyHints) |
Sets the simplification hints of the vector layer managed. | |
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. | |
float | threshold () const |
Gets the simplification threshold of the vector layer managed. | |
void | setForceLocalOptimization (bool localOptimization) |
Sets where the simplification executes, after fetch the geometries from provider, or when supported, in provider before fetch the geometries. | |
bool | forceLocalOptimization () const |
Gets where the simplification executes, after fetch the geometries from provider, or when supported, in provider before fetch the geometries. | |
void | setMaximumScale (float maximumScale) |
Sets the maximum scale at which the layer should be simplified. | |
float | maximumScale () const |
Gets the maximum scale at which the layer should be simplified. |
Private Attributes | |
SimplifyHints | mSimplifyHints |
Simplification hints for fast rendering of features of the vector layer managed. | |
float | mThreshold |
Simplification threshold. | |
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 be carried out) |
This class contains information how to simplify geometries fetched from a vector layer.
Definition at line 24 of file qgsvectorsimplifymethod.h.
Simplification flags for fast rendering of features.
Definition at line 35 of file qgsvectorsimplifymethod.h.
QgsVectorSimplifyMethod::QgsVectorSimplifyMethod | ( | ) |
construct a default object
Definition at line 20 of file qgsvectorsimplifymethod.cpp.
QgsVectorSimplifyMethod::QgsVectorSimplifyMethod | ( | const QgsVectorSimplifyMethod & | rh | ) |
|
inline |
Gets where the simplification executes, after fetch the geometries from provider, or when supported, in provider before fetch the geometries.
Definition at line 57 of file qgsvectorsimplifymethod.h.
Referenced by QgsVectorLayer::draw(), QgsVectorLayer::QgsVectorLayer(), and QgsVectorLayer::writeSymbology().
|
inline |
Gets the maximum scale at which the layer should be simplified.
Definition at line 62 of file qgsvectorsimplifymethod.h.
Referenced by QgsVectorLayer::QgsVectorLayer(), QgsVectorLayer::simplifyDrawingCanbeApplied(), and QgsVectorLayer::writeSymbology().
QgsVectorSimplifyMethod & QgsVectorSimplifyMethod::operator= | ( | const QgsVectorSimplifyMethod & | rh | ) |
assignment operator
Definition at line 33 of file qgsvectorsimplifymethod.cpp.
References mLocalOptimization, mMaximumScale, mSimplifyHints, and mThreshold.
Referenced by QgsVectorSimplifyMethod().
|
inline |
Sets where the simplification executes, after fetch the geometries from provider, or when supported, in provider before fetch the geometries.
Definition at line 55 of file qgsvectorsimplifymethod.h.
Referenced by QgsVectorLayer::QgsVectorLayer(), and QgsVectorLayer::readSymbology().
|
inline |
Sets the maximum scale at which the layer should be simplified.
Definition at line 60 of file qgsvectorsimplifymethod.h.
Referenced by QgsVectorLayer::QgsVectorLayer(), and QgsVectorLayer::readSymbology().
|
inline |
Sets the simplification hints of the vector layer managed.
Definition at line 45 of file qgsvectorsimplifymethod.h.
Referenced by QgsVectorLayer::QgsVectorLayer(), and QgsVectorLayer::readSymbology().
|
inline |
Sets the simplification threshold of the vector layer managed.
Definition at line 50 of file qgsvectorsimplifymethod.h.
Referenced by QgsVectorLayer::QgsVectorLayer(), and QgsVectorLayer::readSymbology().
|
inline |
Gets the simplification hints of the vector layer managed.
Definition at line 47 of file qgsvectorsimplifymethod.h.
Referenced by QgsVectorLayer::QgsVectorLayer(), QgsVectorLayer::simplifyDrawingCanbeApplied(), and QgsVectorLayer::writeSymbology().
|
inline |
Gets the simplification threshold of the vector layer managed.
Definition at line 52 of file qgsvectorsimplifymethod.h.
Referenced by QgsFillSymbolLayerV2::_renderPolygon(), QgsVectorLayer::draw(), QgsVectorLayer::QgsVectorLayer(), QgsSimpleLineSymbolLayerV2::renderPolyline(), and QgsVectorLayer::writeSymbology().
|
private |
Simplification executes after fetch the geometries from provider, otherwise it executes, when supported, in provider before fetch the geometries.
Definition at line 70 of file qgsvectorsimplifymethod.h.
Referenced by operator=().
|
private |
Maximum scale at which the layer should be simplified (Maximum scale at which generalisation should be carried out)
Definition at line 72 of file qgsvectorsimplifymethod.h.
Referenced by operator=().
|
private |
Simplification hints for fast rendering of features of the vector layer managed.
Definition at line 66 of file qgsvectorsimplifymethod.h.
Referenced by operator=().
|
private |
Simplification threshold.
Definition at line 68 of file qgsvectorsimplifymethod.h.
Referenced by operator=().