QGIS API Documentation  2.15.0-Master (94d88e6)
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...
 
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...
 
int mLayerTransparency
 
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 66 of file qgsvectorlayerrenderer.h.

Constructor & Destructor Documentation

QgsVectorLayerRenderer::QgsVectorLayerRenderer ( QgsVectorLayer layer,
QgsRenderContext context 
)

Definition at line 44 of file qgsvectorlayerrenderer.cpp.

QgsVectorLayerRenderer::~QgsVectorLayerRenderer ( )

Definition at line 114 of file qgsvectorlayerrenderer.cpp.

Member Function Documentation

bool QgsVectorLayerRenderer::render ( )
overridevirtual

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

Implements QgsMapLayerRenderer.

Definition at line 121 of file qgsvectorlayerrenderer.cpp.

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 281 of file qgsvectorlayerrenderer.cpp.

Member Data Documentation

QStringList QgsVectorLayerRenderer::mAttrNames
protected

Definition at line 124 of file qgsvectorlayerrenderer.h.

QgsGeometryCache* QgsVectorLayerRenderer::mCache
protected

Definition at line 116 of file qgsvectorlayerrenderer.h.

QgsRenderContext& QgsVectorLayerRenderer::mContext
protected

Definition at line 101 of file qgsvectorlayerrenderer.h.

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 136 of file qgsvectorlayerrenderer.h.

bool QgsVectorLayerRenderer::mDiagrams
protected

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

Definition at line 129 of file qgsvectorlayerrenderer.h.

bool QgsVectorLayerRenderer::mDrawVertexMarkers
protected

Definition at line 118 of file qgsvectorlayerrenderer.h.

QPainter::CompositionMode QgsVectorLayerRenderer::mFeatureBlendMode
protected

Definition at line 139 of file qgsvectorlayerrenderer.h.

QgsFields QgsVectorLayerRenderer::mFields
protected

Definition at line 108 of file qgsvectorlayerrenderer.h.

QGis::GeometryType QgsVectorLayerRenderer::mGeometryType
protected

Definition at line 122 of file qgsvectorlayerrenderer.h.

QgsVectorLayerRendererInterruptionChecker QgsVectorLayerRenderer::mInterruptionChecker
protected

Definition at line 103 of file qgsvectorlayerrenderer.h.

bool QgsVectorLayerRenderer::mLabeling
protected

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

Definition at line 127 of file qgsvectorlayerrenderer.h.

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 133 of file qgsvectorlayerrenderer.h.

QgsVectorLayer* QgsVectorLayerRenderer::mLayer
protected

The rendered layer.

Definition at line 106 of file qgsvectorlayerrenderer.h.

int QgsVectorLayerRenderer::mLayerTransparency
protected

Definition at line 138 of file qgsvectorlayerrenderer.h.

QgsFeatureRendererV2* QgsVectorLayerRenderer::mRendererV2
protected

Definition at line 114 of file qgsvectorlayerrenderer.h.

QgsFeatureIds QgsVectorLayerRenderer::mSelectedFeatureIds
protected

Definition at line 110 of file qgsvectorlayerrenderer.h.

bool QgsVectorLayerRenderer::mSimplifyGeometry
protected

Definition at line 142 of file qgsvectorlayerrenderer.h.

QgsVectorSimplifyMethod QgsVectorLayerRenderer::mSimplifyMethod
protected

Definition at line 141 of file qgsvectorlayerrenderer.h.

QgsVectorLayerFeatureSource* QgsVectorLayerRenderer::mSource
protected

Definition at line 112 of file qgsvectorlayerrenderer.h.

bool QgsVectorLayerRenderer::mVertexMarkerOnlyForSelection
protected

Definition at line 119 of file qgsvectorlayerrenderer.h.

int QgsVectorLayerRenderer::mVertexMarkerSize
protected

Definition at line 120 of file qgsvectorlayerrenderer.h.

int QgsVectorLayerRenderer::mVertexMarkerStyle
protected

Definition at line 120 of file qgsvectorlayerrenderer.h.


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