QGIS API Documentation  2.6.0-Brighton
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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)
void setGeometryCachePointer (QgsGeometryCache *cache)
 where to save the cached geometries
- 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.
QString layerID () const
 Get access to the ID of the layer rendered by this class.

Protected Attributes

QgsRenderContextmContext
QgsFields mFields
QgsFeatureIds mSelectedFeatureIds
QgsVectorLayerFeatureSourcemSource
QgsFeatureRendererV2mRendererV2
bool mCacheFeatures
QgsGeometryCachemCache
bool mDrawVertexMarkers
bool mVertexMarkerOnlyForSelection
int mVertexMarkerStyle
int mVertexMarkerSize
QGis::GeometryType mGeometryType
QStringList mAttrNames
bool mLabeling
bool mDiagrams
int mLayerTransparency
QPainter::CompositionMode mFeatureBlendMode
QgsVectorSimplifyMethod mSimplifyMethod
bool mSimplifyGeometry
- Protected Attributes inherited from QgsMapLayerRenderer
QStringList mErrors
QString mLayerID

Detailed Description

Implementation of threaded rendering for vector layers.

Note
added in 2.4

Constructor & Destructor Documentation

QgsVectorLayerRenderer::QgsVectorLayerRenderer ( QgsVectorLayer layer,
QgsRenderContext context 
)
QgsVectorLayerRenderer::~QgsVectorLayerRenderer ( )

Member Function Documentation

bool QgsVectorLayerRenderer::render ( )
virtual

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

Implements QgsMapLayerRenderer.

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

Member Data Documentation

QStringList QgsVectorLayerRenderer::mAttrNames
protected
QgsGeometryCache* QgsVectorLayerRenderer::mCache
protected
bool QgsVectorLayerRenderer::mCacheFeatures
protected
QgsRenderContext& QgsVectorLayerRenderer::mContext
protected
bool QgsVectorLayerRenderer::mDiagrams
protected
bool QgsVectorLayerRenderer::mDrawVertexMarkers
protected
QPainter::CompositionMode QgsVectorLayerRenderer::mFeatureBlendMode
protected
QgsFields QgsVectorLayerRenderer::mFields
protected
QGis::GeometryType QgsVectorLayerRenderer::mGeometryType
protected
bool QgsVectorLayerRenderer::mLabeling
protected
int QgsVectorLayerRenderer::mLayerTransparency
protected
QgsFeatureRendererV2* QgsVectorLayerRenderer::mRendererV2
protected
QgsFeatureIds QgsVectorLayerRenderer::mSelectedFeatureIds
protected
bool QgsVectorLayerRenderer::mSimplifyGeometry
protected
QgsVectorSimplifyMethod QgsVectorLayerRenderer::mSimplifyMethod
protected
QgsVectorLayerFeatureSource* QgsVectorLayerRenderer::mSource
protected
bool QgsVectorLayerRenderer::mVertexMarkerOnlyForSelection
protected
int QgsVectorLayerRenderer::mVertexMarkerSize
protected
int QgsVectorLayerRenderer::mVertexMarkerStyle
protected

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