QGIS API Documentation  2.4.0-Chugiak
 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 587 of file qgspallabeling.h.

Constructor & Destructor Documentation

QgsLabelComponent::QgsLabelComponent ( )
inline

Definition at line 590 of file qgspallabeling.h.

Member Function Documentation

const QgsPoint& QgsLabelComponent::center ( )
inline

Definition at line 626 of file qgspallabeling.h.

Referenced by QgsPalLabeling::drawLabelBackground().

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

Definition at line 635 of file qgspallabeling.h.

Referenced by QgsPalLabeling::drawLabelShadow().

const QgsPoint& QgsLabelComponent::origin ( )
inline

Definition at line 611 of file qgspallabeling.h.

Referenced by QgsPalLabeling::drawLabelShadow().

const QPicture* QgsLabelComponent::picture ( )
inline

Definition at line 638 of file qgspallabeling.h.

Referenced by QgsPalLabeling::drawLabelShadow().

double QgsLabelComponent::pictureBuffer ( ) const
inline

Definition at line 641 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 627 of file qgspallabeling.h.

Referenced by QgsPalLabeling::drawLabel().

void QgsLabelComponent::setDpiRatio ( double  ratio)
inline

Definition at line 645 of file qgspallabeling.h.

Referenced by QgsPalLabeling::drawLabel().

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

Definition at line 612 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 609 of file qgspallabeling.h.

Referenced by QgsPalLabeling::drawLabel().

void QgsLabelComponent::setUseCenter ( bool  use)
inline

Definition at line 630 of file qgspallabeling.h.

void QgsLabelComponent::setUseOrigin ( bool  use)
inline

Definition at line 615 of file qgspallabeling.h.

void QgsLabelComponent::setUseRotation ( bool  use)
inline

Definition at line 624 of file qgspallabeling.h.

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

Definition at line 608 of file qgspallabeling.h.

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

bool QgsLabelComponent::useCenter ( ) const
inline

Definition at line 629 of file qgspallabeling.h.

bool QgsLabelComponent::useOrigin ( ) const
inline

Definition at line 614 of file qgspallabeling.h.

Referenced by QgsPalLabeling::drawLabelShadow().

bool QgsLabelComponent::useRotation ( ) const
inline

Definition at line 623 of file qgspallabeling.h.

Member Data Documentation

QgsPoint QgsLabelComponent::mCenter
private

Definition at line 662 of file qgspallabeling.h.

double QgsLabelComponent::mDpiRatio
private

Definition at line 677 of file qgspallabeling.h.

QgsPoint QgsLabelComponent::mOffset
private

Definition at line 668 of file qgspallabeling.h.

QgsPoint QgsLabelComponent::mOrigin
private

Definition at line 652 of file qgspallabeling.h.

QPicture* QgsLabelComponent::mPicture
private

Definition at line 671 of file qgspallabeling.h.

double QgsLabelComponent::mPictureBuffer
private

Definition at line 674 of file qgspallabeling.h.

double QgsLabelComponent::mRotation
private

Definition at line 656 of file qgspallabeling.h.

double QgsLabelComponent::mRotationOffset
private

Definition at line 658 of file qgspallabeling.h.

QgsPoint QgsLabelComponent::mSize
private

Definition at line 666 of file qgspallabeling.h.

QString QgsLabelComponent::mText
private

Definition at line 650 of file qgspallabeling.h.

bool QgsLabelComponent::mUseCenter
private

Definition at line 664 of file qgspallabeling.h.

bool QgsLabelComponent::mUseOrigin
private

Definition at line 654 of file qgspallabeling.h.

bool QgsLabelComponent::mUseRotation
private

Definition at line 660 of file qgspallabeling.h.


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