QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
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 ()
 
virtual bool render () override
 Do the rendering (based on data stored in the class) More...
 
void setGeometryCachePointer (QgsGeometryCache *cache)
 where to save the cached geometries More...
 
- Public Member Functions inherited from QgsMapLayerRenderer
 QgsMapLayerRenderer (const QString &layerID)
 
virtual ~QgsMapLayerRenderer ()
 
QStringList errors () const
 Return list of errors (problems) that happened during the rendering. More...
 
virtual QgsFeedbackfeedback () const
 Access to feedback object of the layer renderer (may be null) More...
 
QString layerID () const
 Get access to the ID of the layer rendered by this class. More...
 

Protected Attributes

QStringList mAttrNames
 
QgsGeometryCachemCache
 
QgsRenderContextmContext
 
QgsVectorLayerDiagramProvidermDiagramProvider
 used with new labeling engine (QgsLabelingEngineV2): provider for diagrams. More...
 
bool mDiagrams
 used with new labeling engine (QgsPalLabeling): whether diagrams are enabled More...
 
bool mDrawVertexMarkers
 
QPainter::CompositionMode mFeatureBlendMode
 
QgsFields mFields
 
QGis::GeometryType mGeometryType
 
QgsVectorLayerRendererInterruptionChecker mInterruptionChecker
 
bool mLabeling
 used with old labeling engine (QgsPalLabeling): whether labeling is enabled More...
 
QgsVectorLayerLabelProvidermLabelProvider
 used with new labeling engine (QgsLabelingEngineV2): provider for labels. More...
 
QgsVectorLayermLayer
 The rendered layer. More...
 
QgsFeatureRendererV2mRendererV2
 
QgsFeatureIds mSelectedFeatureIds
 
bool mSimplifyGeometry
 
QgsVectorSimplifyMethod mSimplifyMethod
 
QgsVectorLayerFeatureSourcemSource
 
bool mVertexMarkerOnlyForSelection
 
int mVertexMarkerSize
 
int mVertexMarkerStyle
 
- Protected Attributes inherited from QgsMapLayerRenderer
QStringList mErrors
 
QString mLayerID
 

Detailed Description

Implementation of threaded rendering for vector layers.

Note
added in 2.4
not available in Python bindings

Definition at line 67 of file qgsvectorlayerrenderer.h.

Constructor & Destructor Documentation

◆ QgsVectorLayerRenderer()

QgsVectorLayerRenderer::QgsVectorLayerRenderer ( QgsVectorLayer layer,
QgsRenderContext context 
)

Definition at line 44 of file qgsvectorlayerrenderer.cpp.

◆ ~QgsVectorLayerRenderer()

QgsVectorLayerRenderer::~QgsVectorLayerRenderer ( )

Definition at line 112 of file qgsvectorlayerrenderer.cpp.

Member Function Documentation

◆ render()

bool QgsVectorLayerRenderer::render ( )
overridevirtual

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

Implements QgsMapLayerRenderer.

Definition at line 119 of file qgsvectorlayerrenderer.cpp.

◆ setGeometryCachePointer()

void QgsVectorLayerRenderer::setGeometryCachePointer ( QgsGeometryCache cache)

where to save the cached geometries

Note
The way how geometries are cached is really suboptimal - this method may be removed in future releases

Definition at line 266 of file qgsvectorlayerrenderer.cpp.

Member Data Documentation

◆ mAttrNames

QStringList QgsVectorLayerRenderer::mAttrNames
protected

Definition at line 125 of file qgsvectorlayerrenderer.h.

◆ mCache

QgsGeometryCache* QgsVectorLayerRenderer::mCache
protected

Definition at line 117 of file qgsvectorlayerrenderer.h.

◆ mContext

QgsRenderContext& QgsVectorLayerRenderer::mContext
protected

Definition at line 102 of file qgsvectorlayerrenderer.h.

◆ mDiagramProvider

QgsVectorLayerDiagramProvider* QgsVectorLayerRenderer::mDiagramProvider
protected

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

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

Definition at line 137 of file qgsvectorlayerrenderer.h.

◆ mDiagrams

bool QgsVectorLayerRenderer::mDiagrams
protected

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

Definition at line 130 of file qgsvectorlayerrenderer.h.

◆ mDrawVertexMarkers

bool QgsVectorLayerRenderer::mDrawVertexMarkers
protected

Definition at line 119 of file qgsvectorlayerrenderer.h.

◆ mFeatureBlendMode

QPainter::CompositionMode QgsVectorLayerRenderer::mFeatureBlendMode
protected

Definition at line 139 of file qgsvectorlayerrenderer.h.

◆ mFields

QgsFields QgsVectorLayerRenderer::mFields
protected

Definition at line 109 of file qgsvectorlayerrenderer.h.

◆ mGeometryType

QGis::GeometryType QgsVectorLayerRenderer::mGeometryType
protected

Definition at line 123 of file qgsvectorlayerrenderer.h.

◆ mInterruptionChecker

QgsVectorLayerRendererInterruptionChecker QgsVectorLayerRenderer::mInterruptionChecker
protected

Definition at line 104 of file qgsvectorlayerrenderer.h.

◆ mLabeling

bool QgsVectorLayerRenderer::mLabeling
protected

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

Definition at line 128 of file qgsvectorlayerrenderer.h.

◆ mLabelProvider

QgsVectorLayerLabelProvider* QgsVectorLayerRenderer::mLabelProvider
protected

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

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

Definition at line 134 of file qgsvectorlayerrenderer.h.

◆ mLayer

QgsVectorLayer* QgsVectorLayerRenderer::mLayer
protected

The rendered layer.

Definition at line 107 of file qgsvectorlayerrenderer.h.

◆ mRendererV2

QgsFeatureRendererV2* QgsVectorLayerRenderer::mRendererV2
protected

Definition at line 115 of file qgsvectorlayerrenderer.h.

◆ mSelectedFeatureIds

QgsFeatureIds QgsVectorLayerRenderer::mSelectedFeatureIds
protected

Definition at line 111 of file qgsvectorlayerrenderer.h.

◆ mSimplifyGeometry

bool QgsVectorLayerRenderer::mSimplifyGeometry
protected

Definition at line 142 of file qgsvectorlayerrenderer.h.

◆ mSimplifyMethod

QgsVectorSimplifyMethod QgsVectorLayerRenderer::mSimplifyMethod
protected

Definition at line 141 of file qgsvectorlayerrenderer.h.

◆ mSource

QgsVectorLayerFeatureSource* QgsVectorLayerRenderer::mSource
protected

Definition at line 113 of file qgsvectorlayerrenderer.h.

◆ mVertexMarkerOnlyForSelection

bool QgsVectorLayerRenderer::mVertexMarkerOnlyForSelection
protected

Definition at line 120 of file qgsvectorlayerrenderer.h.

◆ mVertexMarkerSize

int QgsVectorLayerRenderer::mVertexMarkerSize
protected

Definition at line 121 of file qgsvectorlayerrenderer.h.

◆ mVertexMarkerStyle

int QgsVectorLayerRenderer::mVertexMarkerStyle
protected

Definition at line 121 of file qgsvectorlayerrenderer.h.


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