QGIS API Documentation  2.8.2-Wien
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
QgsSymbolV2RenderContext Class Reference

#include <qgssymbolv2.h>

Public Member Functions

 QgsSymbolV2RenderContext (QgsRenderContext &c, QgsSymbolV2::OutputUnit u, qreal alpha=1.0, bool selected=false, int renderHints=0, const QgsFeature *f=0, const QgsFields *fields=0, const QgsMapUnitScale &mapUnitScale=QgsMapUnitScale())
 ~QgsSymbolV2RenderContext ()
qreal alpha () const
 Get alpha transparency 1 for opaque, 0 for invisible.
const QgsFeaturefeature () const
 Current feature being rendered - may be null.
const QgsFieldsfields () const
 Fields of the layer.
QgsMapUnitScale mapUnitScale () const
QgsSymbolV2RenderContextoperator= (const QgsSymbolV2RenderContext &)
double outputLineWidth (double width) const
double outputPixelSize (double size) const
QgsSymbolV2::OutputUnit outputUnit () const
QgsRenderContextrenderContext ()
const QgsRenderContextrenderContext () const
int renderHints () const
bool selected () const
void setAlpha (qreal alpha)
 Set alpha transparency 1 for opaque, 0 for invisible.
void setFeature (const QgsFeature *f)
void setMapUnitScale (const QgsMapUnitScale &scale)
void setOutputUnit (QgsSymbolV2::OutputUnit u)
void setRenderHints (int hints)
void setSelected (bool selected)

Detailed Description

Definition at line 185 of file qgssymbolv2.h.

Constructor & Destructor Documentation

QgsSymbolV2RenderContext::QgsSymbolV2RenderContext ( QgsRenderContext c,
QgsSymbolV2::OutputUnit  u,
qreal  alpha = 1.0,
bool  selected = false,
int  renderHints = 0,
const QgsFeature f = 0,
const QgsFields fields = 0,
const QgsMapUnitScale mapUnitScale = QgsMapUnitScale() 
)

Definition at line 428 of file qgssymbolv2.cpp.

QgsSymbolV2RenderContext::~QgsSymbolV2RenderContext ( )

Definition at line 434 of file qgssymbolv2.cpp.

Member Function Documentation

qreal QgsSymbolV2RenderContext::alpha ( ) const
inline

Get alpha transparency 1 for opaque, 0 for invisible.

Definition at line 201 of file qgssymbolv2.h.

const QgsFeature* QgsSymbolV2RenderContext::feature ( ) const
inline

Current feature being rendered - may be null.

Definition at line 213 of file qgssymbolv2.h.

const QgsFields* QgsSymbolV2RenderContext::fields ( void  ) const
inline

Fields of the layer.

Currently only available in startRender() calls to allow symbols with data-defined properties prepare the expressions (other times fields() returns null)

Note
added in 2.4

Definition at line 219 of file qgssymbolv2.h.

QgsMapUnitScale QgsSymbolV2RenderContext::mapUnitScale ( ) const
inline

Definition at line 197 of file qgssymbolv2.h.

QgsSymbolV2RenderContext & QgsSymbolV2RenderContext::operator= ( const QgsSymbolV2RenderContext )

Definition at line 450 of file qgssymbolv2.cpp.

double QgsSymbolV2RenderContext::outputLineWidth ( double  width) const

Definition at line 440 of file qgssymbolv2.cpp.

double QgsSymbolV2RenderContext::outputPixelSize ( double  size) const

Definition at line 445 of file qgssymbolv2.cpp.

QgsSymbolV2::OutputUnit QgsSymbolV2RenderContext::outputUnit ( ) const
inline

Definition at line 194 of file qgssymbolv2.h.

QgsRenderContext& QgsSymbolV2RenderContext::renderContext ( )
inline

Definition at line 191 of file qgssymbolv2.h.

const QgsRenderContext& QgsSymbolV2RenderContext::renderContext ( ) const
inline

Definition at line 192 of file qgssymbolv2.h.

int QgsSymbolV2RenderContext::renderHints ( ) const
inline

Definition at line 208 of file qgssymbolv2.h.

bool QgsSymbolV2RenderContext::selected ( ) const
inline

Definition at line 205 of file qgssymbolv2.h.

void QgsSymbolV2RenderContext::setAlpha ( qreal  alpha)
inline

Set alpha transparency 1 for opaque, 0 for invisible.

Definition at line 203 of file qgssymbolv2.h.

void QgsSymbolV2RenderContext::setFeature ( const QgsFeature f)
inline

Definition at line 211 of file qgssymbolv2.h.

void QgsSymbolV2RenderContext::setMapUnitScale ( const QgsMapUnitScale scale)
inline

Definition at line 198 of file qgssymbolv2.h.

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

Definition at line 195 of file qgssymbolv2.h.

void QgsSymbolV2RenderContext::setRenderHints ( int  hints)
inline

Definition at line 209 of file qgssymbolv2.h.

void QgsSymbolV2RenderContext::setSelected ( bool  selected)
inline

Definition at line 206 of file qgssymbolv2.h.


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