QGIS API Documentation
2.8.2-Wien
|
#include <qgsdxfpallabeling.h>
Public Member Functions | |
QgsDxfPalLabeling (QgsDxfExport *dxf, const QgsRectangle &bbox, double scale, QGis::UnitType mapUnits) | |
~QgsDxfPalLabeling () | |
void | drawLabel (pal::LabelPosition *label, QgsRenderContext &context, QgsPalLayerSettings &tmpLyr, DrawLabelType drawType, double dpiRatio=1.0) override |
drawLabel | |
QgsRenderContext & | renderContext () |
Public Member Functions inherited from QgsPalLabeling | |
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 | |
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 () |
Definition at line 27 of file qgsdxfpallabeling.h.
QgsDxfPalLabeling::QgsDxfPalLabeling | ( | QgsDxfExport * | dxf, |
const QgsRectangle & | bbox, | ||
double | scale, | ||
QGis::UnitType | mapUnits | ||
) |
Definition at line 28 of file qgsdxfpallabeling.cpp.
QgsDxfPalLabeling::~QgsDxfPalLabeling | ( | ) |
Definition at line 56 of file qgsdxfpallabeling.cpp.
|
overridevirtual |
drawLabel
Reimplemented from QgsPalLabeling.
Definition at line 63 of file qgsdxfpallabeling.cpp.
|
inline |
Definition at line 33 of file qgsdxfpallabeling.h.