|
QGIS API Documentation
2.8.2-Wien
|
#include <qgspallabeling.h>

Public Types | |
| enum | DrawLabelType { LabelText = 0, LabelBuffer, LabelShape, LabelSVG, LabelShadow } |
| enum | Search { Chain, Popmusic_Tabu, Popmusic_Chain, Popmusic_Tabu_Chain, Falp } |
Public Member Functions | |
| QgsPalLabeling () | |
| ~QgsPalLabeling () | |
| virtual int | addDiagramLayer (QgsVectorLayer *layer, const QgsDiagramLayerSettings *s) override |
| adds a diagram layer to the labeling engine | |
| const QList< QgsLabelCandidate > & | candidates () |
| virtual void | clearActiveLayer (const QString &layerID) override |
| clears data defined objects from PAL layer settings for a registered layer | |
| virtual void | clearActiveLayers () override |
| clears all PAL layer settings for registered layers | |
| void | clearEngineSettings () |
| virtual QgsLabelingEngineInterface * | clone () override |
| called when passing engine among map renderers | |
| virtual void | drawLabel (pal::LabelPosition *label, QgsRenderContext &context, QgsPalLayerSettings &tmpLyr, DrawLabelType drawType, double dpiRatio=1.0) |
| drawLabel | |
| void | drawLabelCandidateRect (pal::LabelPosition *lp, QPainter *painter, const QgsMapToPixel *xform) |
| virtual void | drawLabeling (QgsRenderContext &context) override |
| called when the map is drawn and labels should be placed | |
| virtual void | exit () override |
| called when we're done with rendering | |
| virtual Q_DECL_DEPRECATED void | init (QgsMapRenderer *mr) override |
| called when we're going to start with rendering | |
| virtual void | init (const QgsMapSettings &mapSettings) override |
| called when we're going to start with rendering | |
| bool | isDrawingOutlineLabels () const |
| bool | isShowingAllLabels () const |
| bool | isShowingCandidates () const |
| bool | isShowingPartialsLabels () const |
| bool | isShowingShadowRectangles () const |
| Q_DECL_DEPRECATED bool | isStoredWithProject () const |
| virtual Q_DECL_DEPRECATED QList< QgsLabelPosition > | labelsAtPosition (const QgsPoint &p) override |
| return infos about labels at a given (map) position | |
| virtual Q_DECL_DEPRECATED QList< QgsLabelPosition > | labelsWithinRect (const QgsRectangle &r) override |
| return infos about labels within a given (map) rectangle | |
| QgsPalLayerSettings & | layer (const QString &layerName) override |
| returns PAL layer settings for a registered layer | |
| void | loadEngineSettings () |
| load/save engine settings to project file | |
| void | numCandidatePositions (int &candPoint, int &candLine, int &candPolygon) |
| virtual int | prepareLayer (QgsVectorLayer *layer, QStringList &attrNames, QgsRenderContext &ctx) override |
| hook called when drawing layer before issuing select() | |
| virtual void | registerDiagramFeature (const QString &layerID, QgsFeature &feat, const QgsRenderContext &context=QgsRenderContext()) override |
| called for every diagram feature | |
| virtual void | registerFeature (const QString &layerID, QgsFeature &feat, const QgsRenderContext &context=QgsRenderContext(), QString dxfLayer=QString::null) override |
| hook called when drawing for every feature in a layer | |
| void | saveEngineSettings () |
| Search | searchMethod () const |
| void | setDrawingOutlineLabels (bool outline) |
| void | setNumCandidatePositions (int candPoint, int candLine, int candPolygon) |
| void | setSearchMethod (Search s) |
| void | setShowingAllLabels (bool showing) |
| void | setShowingCandidates (bool showing) |
| void | setShowingPartialsLabels (bool showing) |
| void | setShowingShadowRectangles (bool showing) |
| Q_DECL_DEPRECATED void | setStoredWithProject (bool store) |
| QgsLabelingResults * | takeResults () |
| Return pointer to recently computed results (in drawLabeling()) and pass the ownership of results to the caller. | |
| virtual bool | willUseLayer (QgsVectorLayer *layer) override |
| called to find out whether the layer is used for labeling | |
Public Member Functions inherited from QgsLabelingEngineInterface | |
| virtual | ~QgsLabelingEngineInterface () |
Static Public Member Functions | |
| static void | drawLabelBackground (QgsRenderContext &context, QgsLabelComponent component, const QgsPalLayerSettings &tmpLyr) |
| static void | drawLabelBuffer (QgsRenderContext &context, const QgsLabelComponent &component, const QgsPalLayerSettings &tmpLyr) |
| static void | drawLabelShadow (QgsRenderContext &context, const QgsLabelComponent &component, const QgsPalLayerSettings &tmpLyr) |
| static bool | staticWillUseLayer (QgsVectorLayer *layer) |
| called to find out whether the layer is used for labeling | |
| static bool | staticWillUseLayer (const QString &layerID) |
Protected Member Functions | |
| void | dataDefinedDropShadow (QgsPalLayerSettings &tmpLyr, const QMap< QgsPalLayerSettings::DataDefinedProperties, QVariant > &ddValues) |
| void | dataDefinedShapeBackground (QgsPalLayerSettings &tmpLyr, const QMap< QgsPalLayerSettings::DataDefinedProperties, QVariant > &ddValues) |
| void | dataDefinedTextBuffer (QgsPalLayerSettings &tmpLyr, const QMap< QgsPalLayerSettings::DataDefinedProperties, QVariant > &ddValues) |
| void | dataDefinedTextFormatting (QgsPalLayerSettings &tmpLyr, const QMap< QgsPalLayerSettings::DataDefinedProperties, QVariant > &ddValues) |
| void | dataDefinedTextStyle (QgsPalLayerSettings &tmpLyr, const QMap< QgsPalLayerSettings::DataDefinedProperties, QVariant > &ddValues) |
| void | deleteTemporaryData () |
Protected Attributes | |
| QHash< QString, QgsDiagramLayerSettings > | mActiveDiagramLayers |
| QHash< QString, QgsPalLayerSettings > | mActiveLayers |
| QList< QgsLabelCandidate > | mCandidates |
| int | mCandLine |
| int | mCandPoint |
| int | mCandPolygon |
| bool | mDrawOutlineLabels |
| QgsPalLayerSettings | mInvalidLayerSettings |
| const QgsMapSettings * | mMapSettings |
| pal::Pal * | mPal |
| QgsLabelingResults * | mResults |
| Search | mSearch |
| bool | mShowingAllLabels |
| bool | mShowingCandidates |
| bool | mShowingPartialsLabels |
| bool | mShowingShadowRects |
Definition at line 704 of file qgspallabeling.h.
Definition at line 707 of file qgspallabeling.h.
Definition at line 724 of file qgspallabeling.h.
| QgsPalLabeling::QgsPalLabeling | ( | ) |
Definition at line 3094 of file qgspallabeling.cpp.
| QgsPalLabeling::~QgsPalLabeling | ( | ) |
Definition at line 3121 of file qgspallabeling.cpp.
|
overridevirtual |
adds a diagram layer to the labeling engine
Reimplemented from QgsLabelingEngineInterface.
Definition at line 3383 of file qgspallabeling.cpp.
|
inline |
Definition at line 731 of file qgspallabeling.h.
|
overridevirtual |
clears data defined objects from PAL layer settings for a registered layer
Implements QgsLabelingEngineInterface.
Definition at line 3167 of file qgspallabeling.cpp.
|
overridevirtual |
clears all PAL layer settings for registered layers
Implements QgsLabelingEngineInterface.
Definition at line 3157 of file qgspallabeling.cpp.
| void QgsPalLabeling::clearEngineSettings | ( | ) |
Definition at line 5047 of file qgspallabeling.cpp.
|
overridevirtual |
called when passing engine among map renderers
Implements QgsLabelingEngineInterface.
Definition at line 5060 of file qgspallabeling.cpp.
|
protected |
Definition at line 3845 of file qgspallabeling.cpp.
|
protected |
Definition at line 3734 of file qgspallabeling.cpp.
|
protected |
Definition at line 3677 of file qgspallabeling.cpp.
|
protected |
Definition at line 3624 of file qgspallabeling.cpp.
|
protected |
Definition at line 3599 of file qgspallabeling.cpp.
|
protected |
Definition at line 4127 of file qgspallabeling.cpp.
|
virtual |
drawLabel
Reimplemented in QgsDxfPalLabeling.
Definition at line 4255 of file qgspallabeling.cpp.
|
static |
Definition at line 4564 of file qgspallabeling.cpp.
|
static |
Definition at line 4509 of file qgspallabeling.cpp.
| void QgsPalLabeling::drawLabelCandidateRect | ( | pal::LabelPosition * | lp, |
| QPainter * | painter, | ||
| const QgsMapToPixel * | xform | ||
| ) |
Definition at line 4205 of file qgspallabeling.cpp.
|
overridevirtual |
called when the map is drawn and labels should be placed
Implements QgsLabelingEngineInterface.
Definition at line 3918 of file qgspallabeling.cpp.
|
static |
Definition at line 4861 of file qgspallabeling.cpp.
|
overridevirtual |
called when we're done with rendering
Implements QgsLabelingEngineInterface.
Definition at line 3579 of file qgspallabeling.cpp.
|
overridevirtual |
called when we're going to start with rendering
Implements QgsLabelingEngineInterface.
Definition at line 3541 of file qgspallabeling.cpp.
|
overridevirtual |
called when we're going to start with rendering
Implements QgsLabelingEngineInterface.
Definition at line 3546 of file qgspallabeling.cpp.
|
inline |
Definition at line 743 of file qgspallabeling.h.
|
inline |
Definition at line 736 of file qgspallabeling.h.
|
inline |
Definition at line 729 of file qgspallabeling.h.
|
inline |
Definition at line 739 of file qgspallabeling.h.
|
inline |
Definition at line 733 of file qgspallabeling.h.
|
inline |
Definition at line 814 of file qgspallabeling.h.
|
overridevirtual |
return infos about labels at a given (map) position
Implements QgsLabelingEngineInterface.
Definition at line 4159 of file qgspallabeling.cpp.
|
overridevirtual |
return infos about labels within a given (map) rectangle
Implements QgsLabelingEngineInterface.
Definition at line 4164 of file qgspallabeling.cpp.
|
overridevirtual |
returns PAL layer settings for a registered layer
Implements QgsLabelingEngineInterface.
Definition at line 3586 of file qgspallabeling.cpp.
| void QgsPalLabeling::loadEngineSettings | ( | ) |
load/save engine settings to project file
Definition at line 5009 of file qgspallabeling.cpp.
| void QgsPalLabeling::numCandidatePositions | ( | int & | candPoint, |
| int & | candLine, | ||
| int & | candPolygon | ||
| ) |
Definition at line 4181 of file qgspallabeling.cpp.
|
overridevirtual |
hook called when drawing layer before issuing select()
Implements QgsLabelingEngineInterface.
Definition at line 3181 of file qgspallabeling.cpp.
|
overridevirtual |
called for every diagram feature
Reimplemented from QgsLabelingEngineInterface.
Definition at line 3413 of file qgspallabeling.cpp.
|
overridevirtual |
hook called when drawing for every feature in a layer
Implements QgsLabelingEngineInterface.
Definition at line 3407 of file qgspallabeling.cpp.
| void QgsPalLabeling::saveEngineSettings | ( | ) |
Definition at line 5034 of file qgspallabeling.cpp.
| QgsPalLabeling::Search QgsPalLabeling::searchMethod | ( | ) | const |
Definition at line 4200 of file qgspallabeling.cpp.
|
inline |
Definition at line 744 of file qgspallabeling.h.
| void QgsPalLabeling::setNumCandidatePositions | ( | int | candPoint, |
| int | candLine, | ||
| int | candPolygon | ||
| ) |
Definition at line 4188 of file qgspallabeling.cpp.
| void QgsPalLabeling::setSearchMethod | ( | QgsPalLabeling::Search | s | ) |
Definition at line 4195 of file qgspallabeling.cpp.
|
inline |
Definition at line 737 of file qgspallabeling.h.
|
inline |
Definition at line 730 of file qgspallabeling.h.
|
inline |
Definition at line 740 of file qgspallabeling.h.
|
inline |
Definition at line 734 of file qgspallabeling.h.
|
inline |
Definition at line 816 of file qgspallabeling.h.
|
static |
called to find out whether the layer is used for labeling
Definition at line 3146 of file qgspallabeling.cpp.
|
static |
Definition at line 3137 of file qgspallabeling.cpp.
| QgsLabelingResults * QgsPalLabeling::takeResults | ( | ) |
Return pointer to recently computed results (in drawLabeling()) and pass the ownership of results to the caller.
Definition at line 4169 of file qgspallabeling.cpp.
|
overridevirtual |
called to find out whether the layer is used for labeling
Implements QgsLabelingEngineInterface.
Definition at line 3132 of file qgspallabeling.cpp.
|
protected |
Definition at line 844 of file qgspallabeling.h.
|
protected |
Definition at line 842 of file qgspallabeling.h.
|
protected |
Definition at line 854 of file qgspallabeling.h.
|
protected |
Definition at line 848 of file qgspallabeling.h.
|
protected |
Definition at line 848 of file qgspallabeling.h.
|
protected |
Definition at line 848 of file qgspallabeling.h.
|
protected |
Definition at line 859 of file qgspallabeling.h.
|
protected |
Definition at line 845 of file qgspallabeling.h.
|
protected |
Definition at line 847 of file qgspallabeling.h.
|
protected |
Definition at line 851 of file qgspallabeling.h.
|
protected |
Definition at line 861 of file qgspallabeling.h.
|
protected |
Definition at line 849 of file qgspallabeling.h.
|
protected |
Definition at line 856 of file qgspallabeling.h.
|
protected |
Definition at line 855 of file qgspallabeling.h.
|
protected |
Definition at line 858 of file qgspallabeling.h.
|
protected |
Definition at line 857 of file qgspallabeling.h.
1.8.1.2