QGIS API Documentation  master-59fd5e0
QgsPalGeometry Class Reference

List of all members.

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 QgsAttributesdiagramAttributes ()
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

Detailed Description

Definition at line 63 of file qgspallabeling.cpp.


Constructor & Destructor Documentation

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.

Definition at line 83 of file qgspallabeling.cpp.


Member Function Documentation

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().

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]
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().

QString QgsPalGeometry::text ( void  ) [inline]

Definition at line 103 of file qgspallabeling.cpp.


Member Data Documentation

Definition at line 190 of file qgspallabeling.cpp.

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.

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.

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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines