QGIS API Documentation  2.0.1-Dufour
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
QgsPalGeometry Class Reference

Public Member Functions

 QgsPalGeometry (QgsFeatureId id, QString text, GEOSGeometry *g, qreal ltrSpacing=0.0, qreal wordSpacing=0.0, bool curvedLabeling=false)
 ~QgsPalGeometry ()
const GEOSGeometry * getGeosGeometry ()
void releaseGeosGeometry (const GEOSGeometry *)
const char * strId ()
QString text ()
pal::LabelInfo * info (QFontMetricsF *fm, const QgsMapToPixel *xform, double fontScale, double maxinangle, double maxoutangle)
const QMap
< QgsPalLayerSettings::DataDefinedProperties,
QVariant > & 
dataDefinedValues () const
void addDataDefinedValue (QgsPalLayerSettings::DataDefinedProperties p, QVariant v)
void setIsDiagram (bool d)
bool isDiagram () const
void setIsPinned (bool f)
bool isPinned () const
void setDefinedFont (QFont f)
QFont definedFont ()
QFontMetricsF * getLabelFontMetrics ()
void setDiagramAttributes (const QgsAttributes &attrs)
const QgsAttributesdiagramAttributes ()

Protected Attributes

GEOSGeometry * mG
QString mText
QByteArray mStrId
QgsFeatureId mId
LabelInfo * mInfo
bool mIsDiagram
bool mIsPinned
QFont mDefinedFont
QFontMetricsF * mFontMetrics
qreal mLetterSpacing
qreal mWordSpacing
bool mCurvedLabeling
QMap
< QgsPalLayerSettings::DataDefinedProperties,
QVariant > 
mDataDefinedValues
 Stores attribute values for data defined properties.
QgsAttributes mDiagramAttributes
 Stores attribute values for diagram rendering.

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.

QgsPalGeometry::~QgsPalGeometry ( )
inline

Definition at line 83 of file qgspallabeling.cpp.

Member Function Documentation

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

const 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 ( const 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
QString QgsPalGeometry::text ( void  )
inline

Definition at line 103 of file qgspallabeling.cpp.

Member Data Documentation

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.


The documentation for this class was generated from the following file: