#include <qgspalgeometry.h>
|
| | QgsPalGeometry (QgsFeatureId id, QString text, GEOSGeometry *g, qreal ltrSpacing=0.0, qreal wordSpacing=0.0, bool curvedLabeling=false) |
| |
| | ~QgsPalGeometry () |
| |
| void | addDataDefinedValue (QgsPalLayerSettings::DataDefinedProperties p, QVariant v) |
| |
const QMap
< QgsPalLayerSettings::DataDefinedProperties,
QVariant > & | dataDefinedValues () const |
| |
| QFont | definedFont () |
| |
| const QgsAttributes & | diagramAttributes () |
| |
| QString | dxfLayer () const |
| |
| void | feature (QgsFeature &feature) |
| |
| const GEOSGeometry * | getGeosGeometry () override |
| | get the GEOSGeometry of the feature This method is called by Pal each time it needs a geom's coordinates More...
|
| |
| QFontMetricsF * | getLabelFontMetrics () |
| |
| pal::LabelInfo * | info (QFontMetricsF *fm, const QgsMapToPixel *xform, double fontScale, double maxinangle, double maxoutangle) |
| |
| bool | isDiagram () const |
| |
| bool | isPinned () const |
| |
| void | releaseGeosGeometry (const GEOSGeometry *) override |
| | Called by Pal when it doesn't need the coordinates anymore. More...
|
| |
| void | setDefinedFont (QFont f) |
| |
| void | setDiagramAttributes (const QgsAttributes &attrs) |
| |
| void | setDxfLayer (QString dxfLayer) |
| |
| void | setIsDiagram (bool d) |
| |
| void | setIsPinned (bool f) |
| |
| const char * | strId () |
| |
| QString | text () |
| |
| QString | text (int partId) const |
| | Returns the text component corresponding to a specified label part. More...
|
| |
| virtual | ~PalGeometry () |
| |
Definition at line 11 of file qgspalgeometry.h.
| QgsPalGeometry::QgsPalGeometry |
( |
QgsFeatureId |
id, |
|
|
QString |
text, |
|
|
GEOSGeometry * |
g, |
|
|
qreal |
ltrSpacing = 0.0, |
|
|
qreal |
wordSpacing = 0.0, |
|
|
bool |
curvedLabeling = false |
|
) |
| |
|
inline |
| QgsPalGeometry::~QgsPalGeometry |
( |
| ) |
|
|
inline |
| QFont QgsPalGeometry::definedFont |
( |
| ) |
|
|
inline |
| QString QgsPalGeometry::dxfLayer |
( |
| ) |
const |
|
inline |
| void QgsPalGeometry::feature |
( |
QgsFeature & |
feature | ) |
|
|
inline |
| const GEOSGeometry* QgsPalGeometry::getGeosGeometry |
( |
| ) |
|
|
inlineoverridevirtual |
get the GEOSGeometry of the feature This method is called by Pal each time it needs a geom's coordinates
- Returns
- GEOSGeometry * a pointer the geos geom
Implements pal::PalGeometry.
Definition at line 41 of file qgspalgeometry.h.
| bool QgsPalGeometry::isDiagram |
( |
| ) |
const |
|
inline |
| bool QgsPalGeometry::isPinned |
( |
| ) |
const |
|
inline |
| void QgsPalGeometry::releaseGeosGeometry |
( |
const GEOSGeometry * |
the_geom | ) |
|
|
inlineoverridevirtual |
Called by Pal when it doesn't need the coordinates anymore.
- Parameters
-
| the_geom | is the geoms geom from PalGeometry::getfeomGeometry() |
Implements pal::PalGeometry.
Definition at line 45 of file qgspalgeometry.h.
| void QgsPalGeometry::setDefinedFont |
( |
QFont |
f | ) |
|
|
inline |
| void QgsPalGeometry::setDiagramAttributes |
( |
const QgsAttributes & |
attrs | ) |
|
|
inline |
| void QgsPalGeometry::setDxfLayer |
( |
QString |
dxfLayer | ) |
|
|
inline |
| void QgsPalGeometry::setIsDiagram |
( |
bool |
d | ) |
|
|
inline |
| void QgsPalGeometry::setIsPinned |
( |
bool |
f | ) |
|
|
inline |
| const char* QgsPalGeometry::strId |
( |
| ) |
|
|
inline |
| QString QgsPalGeometry::text |
( |
void |
| ) |
|
|
inline |
| QString QgsPalGeometry::text |
( |
int |
partId | ) |
const |
|
inline |
Returns the text component corresponding to a specified label part.
- Parameters
-
| partId | Set to -1 for labels which are not broken into parts (eg, non-curved labels), or the required part index for labels which are broken into parts (curved labels) |
- Note
- added in QGIS 2.10
Definition at line 58 of file qgspalgeometry.h.
| bool QgsPalGeometry::mCurvedLabeling |
|
protected |
Stores attribute values for data defined properties.
Definition at line 173 of file qgspalgeometry.h.
| QFont QgsPalGeometry::mDefinedFont |
|
protected |
Stores attribute values for diagram rendering.
Definition at line 176 of file qgspalgeometry.h.
| GEOSGeometry* QgsPalGeometry::mG |
|
protected |
| bool QgsPalGeometry::mIsDiagram |
|
protected |
| bool QgsPalGeometry::mIsPinned |
|
protected |
| qreal QgsPalGeometry::mLetterSpacing |
|
protected |
| qreal QgsPalGeometry::mWordSpacing |
|
protected |
The documentation for this class was generated from the following file: