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;
115 QString mTemporalFilter;
117 std::unique_ptr< QgsVectorLayerFeatureSource > mSource;
120 std::vector< std::unique_ptr< QgsFeatureRenderer> > mRenderers;
122 bool mDrawVertexMarkers;
123 bool mVertexMarkerOnlyForSelection;
125 double mVertexMarkerSize = 2.0;
129 QSet<QString> mAttrNames;
143 QPainter::CompositionMode mFeatureBlendMode;
146 bool mSimplifyGeometry;
148 QList< QgsMapClippingRegion > mClippingRegions;
150 bool mApplyClipFilter =
false;
152 bool mApplyClipGeometries =
false;
154 bool mApplyLabelClipGeometries =
false;
155 bool mForceRasterRender =
false;
157 int mRenderTimeHint = 0;
158 bool mBlockRenderUpdates =
false;
159 QElapsedTimer mElapsedTimer;
161 bool mNoSetLayerExpressionContext =
false;
163 bool mEnableProfile =
false;
164 quint64 mPreparationTime = 0;
166 std::unique_ptr< QgsSymbol > mSelectionSymbol;
QFlags< MapLayerRendererFlag > MapLayerRendererFlags
Flags which control how map layer renderers behave.
GeometryType
The geometry types are used to group Qgis::WkbType in a coarse way.
VertexMarkerType
Editing vertex markers, used for showing vertices during a edit operation.
@ SemiTransparentCircle
Semi-transparent circle marker.
Stores the settings for rendering of all diagrams for a layer.
Evaluates and returns the diagram settings relating to a diagram for a specific feature.
Wrapper for iterator of features from vector data provider or vector layer.
Abstract base class for all 2D vector feature renderers.
Base class for feedback objects to be used for cancellation of something running in a worker thread.
Container of fields for a vector layer.
A geometry is the spatial representation of a feature.
A map clipping region (in map coordinates and CRS).
Base class for utility classes that encapsulate information necessary for rendering of map layers.
Contains information about the context of a rendering operation.
The QgsVectorLayerDiagramProvider class implements support for diagrams within the labeling engine.
Partial snapshot of vector layer's state (only the members necessary for access to features)
The QgsVectorLayerLabelProvider class implements a label provider for vector layers.
Implementation of threaded rendering for vector layers.
Qgis::MapLayerRendererFlags flags() const override
Returns flags which control how the map layer rendering behaves.
bool forceRasterRender() const override
Returns true if the renderer must be rendered to a raster paint device (e.g.
~QgsVectorLayerRenderer() override
void setLayerRenderingTimeHint(int time) override
Sets approximate render time (in ms) for the layer to render.
bool render() override
Do the rendering (based on data stored in the class).
QgsFeatureRenderer * featureRenderer()
Returns the feature renderer.
QgsFeedback * feedback() const override
Access to feedback object of the layer renderer (may be nullptr)
Represents a vector layer which manages a vector based data sets.
This class contains information how to simplify geometries fetched from a vector layer.
QSet< QgsFeatureId > QgsFeatureIds
QList< int > QgsAttributeList