QGIS API Documentation
2.2.0-Valmiera
|
Labeling engine interface. More...
#include <qgsmaprenderer.h>
Public Member Functions | |
virtual | ~QgsLabelingEngineInterface () |
virtual void | init (QgsMapRenderer *mp)=0 |
called when we're going to start with rendering | |
virtual bool | willUseLayer (QgsVectorLayer *layer)=0 |
called to find out whether the layer is used for labeling | |
virtual void | clearActiveLayers ()=0 |
clears all PAL layer settings for registered layers | |
virtual void | clearActiveLayer (QgsVectorLayer *layer)=0 |
clears data defined objects from PAL layer settings for a registered layer | |
virtual int | prepareLayer (QgsVectorLayer *layer, QSet< int > &attrIndices, QgsRenderContext &ctx)=0 |
called when starting rendering of a layer | |
virtual QgsPalLayerSettings & | layer (const QString &layerName)=0 |
returns PAL layer settings for a registered layer | |
virtual int | addDiagramLayer (QgsVectorLayer *layer, QgsDiagramLayerSettings *s) |
adds a diagram layer to the labeling engine | |
virtual void | registerFeature (QgsVectorLayer *layer, QgsFeature &feat, const QgsRenderContext &context=QgsRenderContext())=0 |
called for every feature | |
virtual void | registerDiagramFeature (QgsVectorLayer *layer, QgsFeature &feat, const QgsRenderContext &context=QgsRenderContext()) |
called for every diagram feature | |
virtual void | drawLabeling (QgsRenderContext &context)=0 |
called when the map is drawn and labels should be placed | |
virtual void | exit ()=0 |
called when we're done with rendering | |
virtual QList< QgsLabelPosition > | labelsAtPosition (const QgsPoint &p)=0 |
return infos about labels at a given (map) position | |
virtual QList< QgsLabelPosition > | labelsWithinRect (const QgsRectangle &r)=0 |
return infos about labels within a given (map) rectangle | |
virtual QgsLabelingEngineInterface * | clone ()=0 |
called when passing engine among map renderers |
|
inlinevirtual |
Definition at line 72 of file qgsmaprenderer.h.
|
inlinevirtual |
adds a diagram layer to the labeling engine
Reimplemented in QgsPalLabeling.
Definition at line 91 of file qgsmaprenderer.h.
Referenced by QgsVectorLayer::prepareLabelingAndDiagrams().
|
pure virtual |
clears data defined objects from PAL layer settings for a registered layer
Implemented in QgsPalLabeling.
|
pure virtual |
clears all PAL layer settings for registered layers
Implemented in QgsPalLabeling.
|
pure virtual |
called when passing engine among map renderers
Implemented in QgsPalLabeling.
Referenced by QgsComposerMap::draw().
|
pure virtual |
called when the map is drawn and labels should be placed
Implemented in QgsPalLabeling.
Referenced by QgsMapRenderer::render().
|
pure virtual |
called when we're done with rendering
Implemented in QgsPalLabeling.
Referenced by QgsMapRenderer::render().
|
pure virtual |
called when we're going to start with rendering
Implemented in QgsPalLabeling.
Referenced by QgsMapRenderer::render().
|
pure virtual |
return infos about labels at a given (map) position
Implemented in QgsPalLabeling.
|
pure virtual |
return infos about labels within a given (map) rectangle
Implemented in QgsPalLabeling.
|
pure virtual |
returns PAL layer settings for a registered layer
Implemented in QgsPalLabeling.
Referenced by QgsVectorLayer::prepareLabelingAndDiagrams().
|
pure virtual |
called when starting rendering of a layer
Implemented in QgsPalLabeling.
Referenced by QgsVectorLayer::prepareLabelingAndDiagrams().
|
inlinevirtual |
called for every diagram feature
Reimplemented in QgsPalLabeling.
Definition at line 96 of file qgsmaprenderer.h.
Referenced by QgsVectorLayer::drawRendererV2(), and QgsVectorLayer::drawRendererV2Levels().
|
pure virtual |
called for every feature
Implemented in QgsPalLabeling.
Referenced by QgsVectorLayer::drawRendererV2(), and QgsVectorLayer::drawRendererV2Levels().
|
pure virtual |
called to find out whether the layer is used for labeling
Implemented in QgsPalLabeling.
Referenced by QgsMapRenderer::render().