Quantum GIS API Documentation  master-ce49b66
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
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 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.
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 61 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 64 of file qgspallabeling.cpp.

References FID_TO_STRING.

Definition at line 80 of file qgspallabeling.cpp.


Member Function Documentation

Definition at line 158 of file qgspallabeling.cpp.

Referenced by QgsPalLabeling::drawLabeling().

Definition at line 170 of file qgspallabeling.cpp.

Referenced by QgsPalLabeling::drawLabeling().

GEOSGeometry* QgsPalGeometry::getGeosGeometry ( ) [inline]

Definition at line 90 of file qgspallabeling.cpp.

QFontMetricsF* QgsPalGeometry::getLabelFontMetrics ( ) [inline]

Definition at line 167 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 162 of file qgspallabeling.cpp.

Referenced by QgsPalLabeling::drawLabeling().

bool QgsPalGeometry::isPinned ( ) const [inline]

Definition at line 165 of file qgspallabeling.cpp.

Referenced by QgsPalLabeling::drawLabeling().

void QgsPalGeometry::releaseGeosGeometry ( GEOSGeometry *  ) [inline]

Definition at line 94 of file qgspallabeling.cpp.

void QgsPalGeometry::setDiagramAttributes ( const QgsAttributes attrs) [inline]

Definition at line 169 of file qgspallabeling.cpp.

Referenced by QgsPalLabeling::registerDiagramFeature().

void QgsPalGeometry::setIsDiagram ( bool  d) [inline]

Definition at line 161 of file qgspallabeling.cpp.

Referenced by QgsPalLabeling::registerDiagramFeature().

void QgsPalGeometry::setIsPinned ( bool  f) [inline]

Definition at line 164 of file qgspallabeling.cpp.

Referenced by QgsPalLayerSettings::registerFeature().

QString QgsPalGeometry::text ( void  ) [inline]

Definition at line 100 of file qgspallabeling.cpp.


Member Data Documentation

Definition at line 183 of file qgspallabeling.cpp.

Stores attribute values for data defined properties.

Definition at line 185 of file qgspallabeling.cpp.

Stores attribute values for diagram rendering.

Definition at line 188 of file qgspallabeling.cpp.

QFontMetricsF* QgsPalGeometry::mFontMetrics [protected]

Definition at line 180 of file qgspallabeling.cpp.

GEOSGeometry* QgsPalGeometry::mG [protected]

Definition at line 173 of file qgspallabeling.cpp.

Definition at line 176 of file qgspallabeling.cpp.

LabelInfo* QgsPalGeometry::mInfo [protected]

Definition at line 177 of file qgspallabeling.cpp.

bool QgsPalGeometry::mIsDiagram [protected]

Definition at line 178 of file qgspallabeling.cpp.

bool QgsPalGeometry::mIsPinned [protected]

Definition at line 179 of file qgspallabeling.cpp.

qreal QgsPalGeometry::mLetterSpacing [protected]

Definition at line 181 of file qgspallabeling.cpp.

QByteArray QgsPalGeometry::mStrId [protected]

Definition at line 175 of file qgspallabeling.cpp.

QString QgsPalGeometry::mText [protected]

Definition at line 174 of file qgspallabeling.cpp.

qreal QgsPalGeometry::mWordSpacing [protected]

Definition at line 182 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