QGIS API Documentation  3.4.15-Madeira (e83d02e274)
Public Member Functions | Protected Attributes | List of all members
QgsVectorLayerRenderer Class Reference

Implementation of threaded rendering for vector layers. More...

#include <qgsvectorlayerrenderer.h>

Inheritance diagram for QgsVectorLayerRenderer:
Inheritance graph
[legend]

Public Member Functions

 QgsVectorLayerRenderer (QgsVectorLayer *layer, QgsRenderContext &context)
 
 ~QgsVectorLayerRenderer () override
 
QgsFeedbackfeedback () const override
 Access to feedback object of the layer renderer (may be null) More...
 
bool render () override
 Do the rendering (based on data stored in the class) More...
 
- Public Member Functions inherited from QgsMapLayerRenderer
 QgsMapLayerRenderer (const QString &layerID)
 
virtual ~QgsMapLayerRenderer ()=default
 
QStringList errors () const
 Returns list of errors (problems) that happened during the rendering. More...
 
QString layerId () const
 Gets access to the ID of the layer rendered by this class. More...
 

Protected Attributes

QSet< QString > mAttrNames
 
QgsRenderContextmContext
 
QgsVectorLayerDiagramProvidermDiagramProvider = nullptr
 used with new labeling engine (QgsLabelingEngine): provider for diagrams. More...
 
bool mDiagrams
 used with new labeling engine (QgsPalLabeling): whether diagrams are enabled More...
 
bool mDrawVertexMarkers
 
QPainter::CompositionMode mFeatureBlendMode
 
QgsFields mFields
 
QgsWkbTypes::GeometryType mGeometryType
 
std::unique_ptr< QgsVectorLayerRendererInterruptionCheckermInterruptionChecker
 
bool mLabeling
 used with old labeling engine (QgsPalLabeling): whether labeling is enabled More...
 
QgsVectorLayerLabelProvidermLabelProvider = nullptr
 used with new labeling engine (QgsLabelingEngine): provider for labels. More...
 
QgsVectorLayermLayer = nullptr
 The rendered layer. More...
 
QgsFeatureRenderermRenderer = nullptr
 
QgsFeatureIds mSelectedFeatureIds
 
bool mSimplifyGeometry
 
QgsVectorSimplifyMethod mSimplifyMethod
 
QgsVectorLayerFeatureSourcemSource = nullptr
 
bool mVertexMarkerOnlyForSelection
 
double mVertexMarkerSize = 2.0
 
int mVertexMarkerStyle = 0
 
- Protected Attributes inherited from QgsMapLayerRenderer
QStringList mErrors
 
QString mLayerID
 

Detailed Description

Implementation of threaded rendering for vector layers.

Note
not available in Python bindings
Since
QGIS 2.4

Definition at line 74 of file qgsvectorlayerrenderer.h.

Constructor & Destructor Documentation

QgsVectorLayerRenderer::QgsVectorLayerRenderer ( QgsVectorLayer layer,
QgsRenderContext context 
)

Definition at line 43 of file qgsvectorlayerrenderer.cpp.

QgsVectorLayerRenderer::~QgsVectorLayerRenderer ( )
override

Definition at line 104 of file qgsvectorlayerrenderer.cpp.

Member Function Documentation

QgsFeedback * QgsVectorLayerRenderer::feedback ( ) const
overridevirtual

Access to feedback object of the layer renderer (may be null)

Since
QGIS 3.0

Reimplemented from QgsMapLayerRenderer.

Definition at line 110 of file qgsvectorlayerrenderer.cpp.

bool QgsVectorLayerRenderer::render ( )
overridevirtual

Do the rendering (based on data stored in the class)

Implements QgsMapLayerRenderer.

Definition at line 115 of file qgsvectorlayerrenderer.cpp.

Member Data Documentation

QSet<QString> QgsVectorLayerRenderer::mAttrNames
protected

Definition at line 131 of file qgsvectorlayerrenderer.h.

QgsRenderContext& QgsVectorLayerRenderer::mContext
protected

Definition at line 109 of file qgsvectorlayerrenderer.h.

QgsVectorLayerDiagramProvider* QgsVectorLayerRenderer::mDiagramProvider = nullptr
protected

used with new labeling engine (QgsLabelingEngine): provider for diagrams.

may be null. no need to delete: if exists it is owned by labeling engine

Definition at line 148 of file qgsvectorlayerrenderer.h.

bool QgsVectorLayerRenderer::mDiagrams
protected

used with new labeling engine (QgsPalLabeling): whether diagrams are enabled

Definition at line 136 of file qgsvectorlayerrenderer.h.

bool QgsVectorLayerRenderer::mDrawVertexMarkers
protected

Definition at line 124 of file qgsvectorlayerrenderer.h.

QPainter::CompositionMode QgsVectorLayerRenderer::mFeatureBlendMode
protected

Definition at line 150 of file qgsvectorlayerrenderer.h.

QgsFields QgsVectorLayerRenderer::mFields
protected

Definition at line 116 of file qgsvectorlayerrenderer.h.

QgsWkbTypes::GeometryType QgsVectorLayerRenderer::mGeometryType
protected

Definition at line 129 of file qgsvectorlayerrenderer.h.

std::unique_ptr< QgsVectorLayerRendererInterruptionChecker > QgsVectorLayerRenderer::mInterruptionChecker
protected

Definition at line 111 of file qgsvectorlayerrenderer.h.

bool QgsVectorLayerRenderer::mLabeling
protected

used with old labeling engine (QgsPalLabeling): whether labeling is enabled

Definition at line 134 of file qgsvectorlayerrenderer.h.

QgsVectorLayerLabelProvider* QgsVectorLayerRenderer::mLabelProvider = nullptr
protected

used with new labeling engine (QgsLabelingEngine): provider for labels.

may be null. no need to delete: if exists it is owned by labeling engine

Definition at line 142 of file qgsvectorlayerrenderer.h.

QgsVectorLayer* QgsVectorLayerRenderer::mLayer = nullptr
protected

The rendered layer.

Definition at line 114 of file qgsvectorlayerrenderer.h.

QgsFeatureRenderer* QgsVectorLayerRenderer::mRenderer = nullptr
protected

Definition at line 122 of file qgsvectorlayerrenderer.h.

QgsFeatureIds QgsVectorLayerRenderer::mSelectedFeatureIds
protected

Definition at line 118 of file qgsvectorlayerrenderer.h.

bool QgsVectorLayerRenderer::mSimplifyGeometry
protected

Definition at line 153 of file qgsvectorlayerrenderer.h.

QgsVectorSimplifyMethod QgsVectorLayerRenderer::mSimplifyMethod
protected

Definition at line 152 of file qgsvectorlayerrenderer.h.

QgsVectorLayerFeatureSource* QgsVectorLayerRenderer::mSource = nullptr
protected

Definition at line 120 of file qgsvectorlayerrenderer.h.

bool QgsVectorLayerRenderer::mVertexMarkerOnlyForSelection
protected

Definition at line 125 of file qgsvectorlayerrenderer.h.

double QgsVectorLayerRenderer::mVertexMarkerSize = 2.0
protected

Definition at line 127 of file qgsvectorlayerrenderer.h.

int QgsVectorLayerRenderer::mVertexMarkerStyle = 0
protected

Definition at line 126 of file qgsvectorlayerrenderer.h.


The documentation for this class was generated from the following files: