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

Maintains current state of more grainular and temporal values when creating/painting component parts of an individual label (e.g. More...

#include <qgspallabeling.h>

Collaboration diagram for QgsLabelComponent:
Collaboration graph
[legend]

Public Member Functions

 QgsLabelComponent ()
const QString & text ()
void setText (const QString &text)
const QgsPointorigin ()
void setOrigin (QgsPoint point)
bool useOrigin () const
void setUseOrigin (bool use)
double rotation () const
void setRotation (double rotation)
double rotationOffset () const
void setRotationOffset (double rotation)
bool useRotation () const
void setUseRotation (bool use)
const QgsPointcenter ()
void setCenter (QgsPoint point)
bool useCenter () const
void setUseCenter (bool use)
const QgsPointsize ()
void setSize (QgsPoint point)
const QgsPointoffset ()
void setOffset (QgsPoint point)
const QPicture * picture ()
void setPicture (QPicture *picture)
double pictureBuffer () const
void setPictureBuffer (double buffer)
double dpiRatio () const
void setDpiRatio (double ratio)

Private Attributes

QString mText
QgsPoint mOrigin
bool mUseOrigin
double mRotation
double mRotationOffset
bool mUseRotation
QgsPoint mCenter
bool mUseCenter
QgsPoint mSize
QgsPoint mOffset
QPicture * mPicture
double mPictureBuffer
double mDpiRatio

Detailed Description

Maintains current state of more grainular and temporal values when creating/painting component parts of an individual label (e.g.

buffer, background, shadow, etc.).

Definition at line 563 of file qgspallabeling.h.

Constructor & Destructor Documentation

QgsLabelComponent::QgsLabelComponent ( )
inline

Definition at line 566 of file qgspallabeling.h.

Member Function Documentation

const QgsPoint& QgsLabelComponent::center ( )
inline

Definition at line 599 of file qgspallabeling.h.

Referenced by QgsPalLabeling::drawLabelBackground().

double QgsLabelComponent::dpiRatio ( ) const
inline
const QgsPoint& QgsLabelComponent::offset ( )
inline

Definition at line 608 of file qgspallabeling.h.

Referenced by QgsPalLabeling::drawLabelShadow().

const QgsPoint& QgsLabelComponent::origin ( )
inline

Definition at line 584 of file qgspallabeling.h.

Referenced by QgsPalLabeling::drawLabelShadow().

const QPicture* QgsLabelComponent::picture ( )
inline

Definition at line 611 of file qgspallabeling.h.

Referenced by QgsPalLabeling::drawLabelShadow().

double QgsLabelComponent::pictureBuffer ( ) const
inline

Definition at line 614 of file qgspallabeling.h.

Referenced by QgsPalLabeling::drawLabelShadow().

double QgsLabelComponent::rotation ( ) const
inline
double QgsLabelComponent::rotationOffset ( ) const
inline
void QgsLabelComponent::setCenter ( QgsPoint  point)
inline

Definition at line 600 of file qgspallabeling.h.

Referenced by QgsPalLabeling::drawLabel().

void QgsLabelComponent::setDpiRatio ( double  ratio)
inline

Definition at line 618 of file qgspallabeling.h.

Referenced by QgsPalLabeling::drawLabel().

void QgsLabelComponent::setOffset ( QgsPoint  point)
inline
void QgsLabelComponent::setOrigin ( QgsPoint  point)
inline

Definition at line 585 of file qgspallabeling.h.

Referenced by QgsPalLabeling::drawLabel(), and QgsPalLabeling::drawLabelBuffer().

void QgsLabelComponent::setPicture ( QPicture *  picture)
inline
void QgsLabelComponent::setPictureBuffer ( double  buffer)
inline
void QgsLabelComponent::setRotation ( double  rotation)
inline
void QgsLabelComponent::setRotationOffset ( double  rotation)
inline
void QgsLabelComponent::setSize ( QgsPoint  point)
inline
void QgsLabelComponent::setText ( const QString &  text)
inline

Definition at line 582 of file qgspallabeling.h.

Referenced by QgsPalLabeling::drawLabel().

void QgsLabelComponent::setUseCenter ( bool  use)
inline

Definition at line 603 of file qgspallabeling.h.

void QgsLabelComponent::setUseOrigin ( bool  use)
inline

Definition at line 588 of file qgspallabeling.h.

void QgsLabelComponent::setUseRotation ( bool  use)
inline

Definition at line 597 of file qgspallabeling.h.

const QgsPoint& QgsLabelComponent::size ( void  )
inline
const QString& QgsLabelComponent::text ( void  )
inline

Definition at line 581 of file qgspallabeling.h.

Referenced by QgsPalLabeling::drawLabel(), and QgsPalLabeling::drawLabelBuffer().

bool QgsLabelComponent::useCenter ( ) const
inline

Definition at line 602 of file qgspallabeling.h.

bool QgsLabelComponent::useOrigin ( ) const
inline

Definition at line 587 of file qgspallabeling.h.

Referenced by QgsPalLabeling::drawLabelShadow().

bool QgsLabelComponent::useRotation ( ) const
inline

Definition at line 596 of file qgspallabeling.h.

Member Data Documentation

QgsPoint QgsLabelComponent::mCenter
private

Definition at line 635 of file qgspallabeling.h.

double QgsLabelComponent::mDpiRatio
private

Definition at line 650 of file qgspallabeling.h.

QgsPoint QgsLabelComponent::mOffset
private

Definition at line 641 of file qgspallabeling.h.

QgsPoint QgsLabelComponent::mOrigin
private

Definition at line 625 of file qgspallabeling.h.

QPicture* QgsLabelComponent::mPicture
private

Definition at line 644 of file qgspallabeling.h.

double QgsLabelComponent::mPictureBuffer
private

Definition at line 647 of file qgspallabeling.h.

double QgsLabelComponent::mRotation
private

Definition at line 629 of file qgspallabeling.h.

double QgsLabelComponent::mRotationOffset
private

Definition at line 631 of file qgspallabeling.h.

QgsPoint QgsLabelComponent::mSize
private

Definition at line 639 of file qgspallabeling.h.

QString QgsLabelComponent::mText
private

Definition at line 623 of file qgspallabeling.h.

bool QgsLabelComponent::mUseCenter
private

Definition at line 637 of file qgspallabeling.h.

bool QgsLabelComponent::mUseOrigin
private

Definition at line 627 of file qgspallabeling.h.

bool QgsLabelComponent::mUseRotation
private

Definition at line 633 of file qgspallabeling.h.


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