#include <qgspalgeometry.h>
Public Member Functions |
| 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
|
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.
|
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 () |
virtual | ~PalGeometry () |
Detailed Description
Definition at line 10 of file qgspalgeometry.h.
Constructor & Destructor Documentation
QgsPalGeometry::QgsPalGeometry |
( |
QgsFeatureId |
id, |
|
|
QString |
text, |
|
|
GEOSGeometry * |
g, |
|
|
qreal |
ltrSpacing = 0.0 , |
|
|
qreal |
wordSpacing = 0.0 , |
|
|
bool |
curvedLabeling = false |
|
) |
| |
|
inline |
QgsPalGeometry::~QgsPalGeometry |
( |
| ) |
|
|
inline |
Member Function Documentation
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 40 of file qgspalgeometry.h.
QFontMetricsF* QgsPalGeometry::getLabelFontMetrics |
( |
| ) |
|
|
inline |
pal::LabelInfo* QgsPalGeometry::info |
( |
QFontMetricsF * |
fm, |
|
|
const QgsMapToPixel * |
xform, |
|
|
double |
fontScale, |
|
|
double |
maxinangle, |
|
|
double |
maxoutangle |
|
) |
| |
|
inline |
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 44 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 |
Member Data Documentation
bool QgsPalGeometry::mCurvedLabeling |
|
protected |
Stores attribute values for data defined properties.
Definition at line 149 of file qgspalgeometry.h.
QFont QgsPalGeometry::mDefinedFont |
|
protected |
Stores attribute values for diagram rendering.
Definition at line 152 of file qgspalgeometry.h.
QString QgsPalGeometry::mDxfLayer |
|
protected |
QFontMetricsF* QgsPalGeometry::mFontMetrics |
|
protected |
GEOSGeometry* QgsPalGeometry::mG |
|
protected |
bool QgsPalGeometry::mIsDiagram |
|
protected |
bool QgsPalGeometry::mIsPinned |
|
protected |
qreal QgsPalGeometry::mLetterSpacing |
|
protected |
QByteArray QgsPalGeometry::mStrId |
|
protected |
QString QgsPalGeometry::mText |
|
protected |
qreal QgsPalGeometry::mWordSpacing |
|
protected |
The documentation for this class was generated from the following file: