QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
16 #ifndef QGSVECTORLAYERRENDERER_H
17 #define QGSVECTORLAYERRENDERER_H
35 #include <QElapsedTimer>
84 void prepareLabeling(
QgsVectorLayer *layer, QSet<QString> &attributeNames );
85 void prepareDiagrams(
QgsVectorLayer *layer, QSet<QString> &attributeNames );
105 std::unique_ptr<QgsFeedback> mFeedback =
nullptr;
114 QString mTemporalFilter;
116 std::unique_ptr< QgsVectorLayerFeatureSource > mSource;
119 std::vector< std::unique_ptr< QgsFeatureRenderer> > mRenderers;
121 bool mDrawVertexMarkers;
122 bool mVertexMarkerOnlyForSelection;
124 double mVertexMarkerSize = 2.0;
128 QSet<QString> mAttrNames;
142 QPainter::CompositionMode mFeatureBlendMode;
145 bool mSimplifyGeometry;
147 QList< QgsMapClippingRegion > mClippingRegions;
149 bool mApplyClipFilter =
false;
151 bool mApplyClipGeometries =
false;
153 bool mApplyLabelClipGeometries =
false;
154 bool mForceRasterRender =
false;
156 int mRenderTimeHint = 0;
157 bool mBlockRenderUpdates =
false;
158 QElapsedTimer mElapsedTimer;
160 bool mNoSetLayerExpressionContext =
false;
165 #endif // QGSVECTORLAYERRENDERER_H
This class contains information how to simplify geometries fetched from a vector layer.
@ SemiTransparentCircle
Semi-transparent circle marker.
A map clipping region (in map coordinates and CRS).
The QgsVectorLayerDiagramProvider class implements support for diagrams within the labeling engine....
Container of fields for a vector layer.
QgsVectorLayerRenderer(QgsVectorLayer *layer, QgsRenderContext &context)
Contains information about the context of a rendering operation.
The QgsVectorLayerLabelProvider class implements a label provider for vector layers....
Base class for utility classes that encapsulate information necessary for rendering of map layers.
QList< int > QgsAttributeList
VertexMarkerType
Editing vertex markers, used for showing vertices during a edit operation.
Base class for feedback objects to be used for cancellation of something running in a worker thread.
Stores the settings for rendering of all diagrams for a layer.
void setLayerRenderingTimeHint(int time) override
Sets approximate render time (in ms) for the layer to render.
Evaluates and returns the diagram settings relating to a diagram for a specific feature.
QSet< QgsFeatureId > QgsFeatureIds
bool forceRasterRender() const override
Returns true if the renderer must be rendered to a raster paint device (e.g.
GeometryType
The geometry types are used to group QgsWkbTypes::Type in a coarse way.
A geometry is the spatial representation of a feature.
Represents a vector layer which manages a vector based data sets.
QgsFeatureRenderer * featureRenderer()
Returns the feature renderer.
Partial snapshot of vector layer's state (only the members necessary for access to features)
Wrapper for iterator of features from vector data provider or vector layer.
QgsFeedback * feedback() const override
Access to feedback object of the layer renderer (may be nullptr)
bool render() override
Do the rendering (based on data stored in the class).
Implementation of threaded rendering for vector layers.
~QgsVectorLayerRenderer() override