Quantum GIS API Documentation  1.7.5-Wroclaw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Private Attributes
QgsSymbolV2RenderContext Class Reference

#include <qgssymbolv2.h>

Collaboration diagram for QgsSymbolV2RenderContext:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 QgsSymbolV2RenderContext (QgsRenderContext &c, QgsSymbolV2::OutputUnit u, qreal alpha=1.0, bool selected=false, int renderHints=0)
 ~QgsSymbolV2RenderContext ()
QgsRenderContextrenderContext ()
QgsSymbolV2::OutputUnit outputUnit () const
void setOutputUnit (QgsSymbolV2::OutputUnit u)
qreal alpha () const
 Get alpha transparency 1 for opaque, 0 for invisible.
void setAlpha (qreal alpha)
 Set alpha transparency 1 for opaque, 0 for invisible.
bool selected () const
void setSelected (bool selected)
int renderHints () const
void setRenderHints (int hints)
double outputLineWidth (double width) const
double outputPixelSize (double size) const
QgsSymbolV2RenderContextoperator= (const QgsSymbolV2RenderContext &)

Static Public Member Functions

static QColor selectionColor ()

Private Attributes

QgsRenderContextmRenderContext
QgsSymbolV2::OutputUnit mOutputUnit
qreal mAlpha
bool mSelected
int mRenderHints

Detailed Description

Definition at line 126 of file qgssymbolv2.h.


Constructor & Destructor Documentation

QgsSymbolV2RenderContext::QgsSymbolV2RenderContext ( QgsRenderContext c,
QgsSymbolV2::OutputUnit  u,
qreal  alpha = 1.0,
bool  selected = false,
int  renderHints = 0 
)

Definition at line 270 of file qgssymbolv2.cpp.

QgsSymbolV2RenderContext::~QgsSymbolV2RenderContext ( )

Definition at line 276 of file qgssymbolv2.cpp.


Member Function Documentation

qreal QgsSymbolV2RenderContext::alpha ( ) const
inline
QgsSymbolV2RenderContext & QgsSymbolV2RenderContext::operator= ( const QgsSymbolV2RenderContext )

Definition at line 297 of file qgssymbolv2.cpp.

double QgsSymbolV2RenderContext::outputLineWidth ( double  width) const
double QgsSymbolV2RenderContext::outputPixelSize ( double  size) const
QgsSymbolV2::OutputUnit QgsSymbolV2RenderContext::outputUnit ( ) const
inline
QgsRenderContext& QgsSymbolV2RenderContext::renderContext ( )
inline
int QgsSymbolV2RenderContext::renderHints ( ) const
inline
bool QgsSymbolV2RenderContext::selected ( void  ) const
inline
QColor QgsSymbolV2RenderContext::selectionColor ( )
static
void QgsSymbolV2RenderContext::setAlpha ( qreal  alpha)
inline

Set alpha transparency 1 for opaque, 0 for invisible.

Definition at line 141 of file qgssymbolv2.h.

void QgsSymbolV2RenderContext::setOutputUnit ( QgsSymbolV2::OutputUnit  u)
inline

Definition at line 136 of file qgssymbolv2.h.

void QgsSymbolV2RenderContext::setRenderHints ( int  hints)
inline
Note:
added in 1.5

Definition at line 149 of file qgssymbolv2.h.

void QgsSymbolV2RenderContext::setSelected ( bool  selected)
inline

Definition at line 144 of file qgssymbolv2.h.


Member Data Documentation

qreal QgsSymbolV2RenderContext::mAlpha
private

Definition at line 163 of file qgssymbolv2.h.

QgsSymbolV2::OutputUnit QgsSymbolV2RenderContext::mOutputUnit
private

Definition at line 162 of file qgssymbolv2.h.

Referenced by outputLineWidth(), and outputPixelSize().

QgsRenderContext& QgsSymbolV2RenderContext::mRenderContext
private

Definition at line 161 of file qgssymbolv2.h.

Referenced by outputLineWidth(), and outputPixelSize().

int QgsSymbolV2RenderContext::mRenderHints
private

Definition at line 165 of file qgssymbolv2.h.

bool QgsSymbolV2RenderContext::mSelected
private

Definition at line 164 of file qgssymbolv2.h.


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