QGIS API Documentation  2.7.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 ()
 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
 
bool mCacheFeatures
 
QgsRenderContextmContext
 
bool mDiagrams
 
bool mDrawVertexMarkers
 
QPainter::CompositionMode mFeatureBlendMode
 
QgsFields mFields
 
QGis::GeometryType mGeometryType
 
bool mLabeling
 
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

Definition at line 50 of file qgsvectorlayerrenderer.h.

Constructor & Destructor Documentation

QgsVectorLayerRenderer::QgsVectorLayerRenderer ( QgsVectorLayer layer,
QgsRenderContext context 
)

Definition at line 38 of file qgsvectorlayerrenderer.cpp.

QgsVectorLayerRenderer::~QgsVectorLayerRenderer ( )

Definition at line 102 of file qgsvectorlayerrenderer.cpp.

Member Function Documentation

bool QgsVectorLayerRenderer::render ( )
virtual

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

Implements QgsMapLayerRenderer.

Definition at line 109 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 230 of file qgsvectorlayerrenderer.cpp.

Member Data Documentation

QStringList QgsVectorLayerRenderer::mAttrNames
protected

Definition at line 104 of file qgsvectorlayerrenderer.h.

QgsGeometryCache* QgsVectorLayerRenderer::mCache
protected

Definition at line 96 of file qgsvectorlayerrenderer.h.

bool QgsVectorLayerRenderer::mCacheFeatures
protected

Definition at line 95 of file qgsvectorlayerrenderer.h.

QgsRenderContext& QgsVectorLayerRenderer::mContext
protected

Definition at line 85 of file qgsvectorlayerrenderer.h.

bool QgsVectorLayerRenderer::mDiagrams
protected

Definition at line 107 of file qgsvectorlayerrenderer.h.

bool QgsVectorLayerRenderer::mDrawVertexMarkers
protected

Definition at line 98 of file qgsvectorlayerrenderer.h.

QPainter::CompositionMode QgsVectorLayerRenderer::mFeatureBlendMode
protected

Definition at line 110 of file qgsvectorlayerrenderer.h.

QgsFields QgsVectorLayerRenderer::mFields
protected

Definition at line 87 of file qgsvectorlayerrenderer.h.

QGis::GeometryType QgsVectorLayerRenderer::mGeometryType
protected

Definition at line 102 of file qgsvectorlayerrenderer.h.

bool QgsVectorLayerRenderer::mLabeling
protected

Definition at line 106 of file qgsvectorlayerrenderer.h.

int QgsVectorLayerRenderer::mLayerTransparency
protected

Definition at line 109 of file qgsvectorlayerrenderer.h.

QgsFeatureRendererV2* QgsVectorLayerRenderer::mRendererV2
protected

Definition at line 93 of file qgsvectorlayerrenderer.h.

QgsFeatureIds QgsVectorLayerRenderer::mSelectedFeatureIds
protected

Definition at line 89 of file qgsvectorlayerrenderer.h.

bool QgsVectorLayerRenderer::mSimplifyGeometry
protected

Definition at line 113 of file qgsvectorlayerrenderer.h.

QgsVectorSimplifyMethod QgsVectorLayerRenderer::mSimplifyMethod
protected

Definition at line 112 of file qgsvectorlayerrenderer.h.

QgsVectorLayerFeatureSource* QgsVectorLayerRenderer::mSource
protected

Definition at line 91 of file qgsvectorlayerrenderer.h.

bool QgsVectorLayerRenderer::mVertexMarkerOnlyForSelection
protected

Definition at line 99 of file qgsvectorlayerrenderer.h.

int QgsVectorLayerRenderer::mVertexMarkerSize
protected

Definition at line 100 of file qgsvectorlayerrenderer.h.

int QgsVectorLayerRenderer::mVertexMarkerStyle
protected

Definition at line 100 of file qgsvectorlayerrenderer.h.


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