|
QGIS API Documentation
master-59fd5e0
|
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 () |
| GEOSGeometry * | getGeosGeometry () |
| QFontMetricsF * | getLabelFontMetrics () |
| pal::LabelInfo * | info (QFontMetricsF *fm, const QgsMapToPixel *xform, double fontScale, double maxinangle, double maxoutangle) |
| bool | isDiagram () const |
| bool | isPinned () const |
| void | releaseGeosGeometry (GEOSGeometry *) |
| void | setDefinedFont (QFont f) |
| void | setDiagramAttributes (const QgsAttributes &attrs) |
| void | setIsDiagram (bool d) |
| void | setIsPinned (bool f) |
| const char * | strId () |
| QString | text () |
Protected Attributes | |
| bool | mCurvedLabeling |
| QMap < QgsPalLayerSettings::DataDefinedProperties, QVariant > | mDataDefinedValues |
| Stores attribute values for data defined properties. | |
| QFont | mDefinedFont |
| QgsAttributes | mDiagramAttributes |
| Stores attribute values for diagram rendering. | |
| QFontMetricsF * | mFontMetrics |
| GEOSGeometry * | mG |
| QgsFeatureId | mId |
| LabelInfo * | mInfo |
| bool | mIsDiagram |
| bool | mIsPinned |
| qreal | mLetterSpacing |
| QByteArray | mStrId |
| QString | mText |
| qreal | mWordSpacing |
Definition at line 63 of file qgspallabeling.cpp.
| QgsPalGeometry::QgsPalGeometry | ( | QgsFeatureId | id, |
| QString | text, | ||
| GEOSGeometry * | g, | ||
| qreal | ltrSpacing = 0.0, |
||
| qreal | wordSpacing = 0.0, |
||
| bool | curvedLabeling = false |
||
| ) | [inline] |
Definition at line 66 of file qgspallabeling.cpp.
References FID_TO_STRING.
| QgsPalGeometry::~QgsPalGeometry | ( | ) | [inline] |
Definition at line 83 of file qgspallabeling.cpp.
| void QgsPalGeometry::addDataDefinedValue | ( | QgsPalLayerSettings::DataDefinedProperties | p, |
| QVariant | v | ||
| ) | [inline] |
Definition at line 162 of file qgspallabeling.cpp.
Referenced by QgsPalLayerSettings::registerFeature().
| const QMap< QgsPalLayerSettings::DataDefinedProperties, QVariant >& QgsPalGeometry::dataDefinedValues | ( | ) | const [inline] |
Definition at line 161 of file qgspallabeling.cpp.
Referenced by QgsPalLabeling::drawLabeling().
| QFont QgsPalGeometry::definedFont | ( | ) | [inline] |
Definition at line 171 of file qgspallabeling.cpp.
Referenced by QgsPalLabeling::drawLabeling().
| const QgsAttributes& QgsPalGeometry::diagramAttributes | ( | ) | [inline] |
Definition at line 176 of file qgspallabeling.cpp.
Referenced by QgsPalLabeling::drawLabeling().
| GEOSGeometry* QgsPalGeometry::getGeosGeometry | ( | ) | [inline] |
Definition at line 93 of file qgspallabeling.cpp.
| QFontMetricsF* QgsPalGeometry::getLabelFontMetrics | ( | ) | [inline] |
Definition at line 173 of file qgspallabeling.cpp.
| pal::LabelInfo* QgsPalGeometry::info | ( | QFontMetricsF * | fm, |
| const QgsMapToPixel * | xform, | ||
| double | fontScale, | ||
| double | maxinangle, | ||
| double | maxoutangle | ||
| ) | [inline] |
Definition at line 105 of file qgspallabeling.cpp.
References QgsMapToPixel::toMapCoordinates(), QgsMapToPixel::toMapCoordinatesF(), QgsPoint::x(), and QgsPoint::y().
Referenced by QgsPalLayerSettings::registerFeature().
| bool QgsPalGeometry::isDiagram | ( | ) | const [inline] |
Definition at line 165 of file qgspallabeling.cpp.
Referenced by QgsPalLabeling::drawLabeling().
| bool QgsPalGeometry::isPinned | ( | ) | const [inline] |
Definition at line 168 of file qgspallabeling.cpp.
Referenced by QgsPalLabeling::drawLabeling().
| void QgsPalGeometry::releaseGeosGeometry | ( | GEOSGeometry * | ) | [inline] |
Definition at line 97 of file qgspallabeling.cpp.
| void QgsPalGeometry::setDefinedFont | ( | QFont | f | ) | [inline] |
Definition at line 170 of file qgspallabeling.cpp.
Referenced by QgsPalLayerSettings::registerFeature().
| void QgsPalGeometry::setDiagramAttributes | ( | const QgsAttributes & | attrs | ) | [inline] |
Definition at line 175 of file qgspallabeling.cpp.
Referenced by QgsPalLabeling::registerDiagramFeature().
| void QgsPalGeometry::setIsDiagram | ( | bool | d | ) | [inline] |
Definition at line 164 of file qgspallabeling.cpp.
Referenced by QgsPalLabeling::registerDiagramFeature().
| void QgsPalGeometry::setIsPinned | ( | bool | f | ) | [inline] |
Definition at line 167 of file qgspallabeling.cpp.
Referenced by QgsPalLayerSettings::registerFeature().
| const char* QgsPalGeometry::strId | ( | ) | [inline] |
Definition at line 102 of file qgspallabeling.cpp.
Referenced by QgsPalLabeling::drawLabeling(), QgsPalLabeling::registerDiagramFeature(), and QgsPalLayerSettings::registerFeature().
| QString QgsPalGeometry::text | ( | void | ) | [inline] |
Definition at line 103 of file qgspallabeling.cpp.
bool QgsPalGeometry::mCurvedLabeling [protected] |
Definition at line 190 of file qgspallabeling.cpp.
QMap< QgsPalLayerSettings::DataDefinedProperties, QVariant > QgsPalGeometry::mDataDefinedValues [protected] |
Stores attribute values for data defined properties.
Definition at line 192 of file qgspallabeling.cpp.
QFont QgsPalGeometry::mDefinedFont [protected] |
Definition at line 186 of file qgspallabeling.cpp.
QgsAttributes QgsPalGeometry::mDiagramAttributes [protected] |
Stores attribute values for diagram rendering.
Definition at line 195 of file qgspallabeling.cpp.
QFontMetricsF* QgsPalGeometry::mFontMetrics [protected] |
Definition at line 187 of file qgspallabeling.cpp.
GEOSGeometry* QgsPalGeometry::mG [protected] |
Definition at line 179 of file qgspallabeling.cpp.
QgsFeatureId QgsPalGeometry::mId [protected] |
Definition at line 182 of file qgspallabeling.cpp.
LabelInfo* QgsPalGeometry::mInfo [protected] |
Definition at line 183 of file qgspallabeling.cpp.
bool QgsPalGeometry::mIsDiagram [protected] |
Definition at line 184 of file qgspallabeling.cpp.
bool QgsPalGeometry::mIsPinned [protected] |
Definition at line 185 of file qgspallabeling.cpp.
qreal QgsPalGeometry::mLetterSpacing [protected] |
Definition at line 188 of file qgspallabeling.cpp.
QByteArray QgsPalGeometry::mStrId [protected] |
Definition at line 181 of file qgspallabeling.cpp.
QString QgsPalGeometry::mText [protected] |
Definition at line 180 of file qgspallabeling.cpp.
qreal QgsPalGeometry::mWordSpacing [protected] |
Definition at line 189 of file qgspallabeling.cpp.