QGIS API Documentation  2.6.0-Brighton
 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 *=0, const QgsMapUnitScale &mapUnitScale=QgsMapUnitScale())
 ~QgsSymbolV2RenderContext ()
QgsRenderContextrenderContext ()
const QgsRenderContextrenderContext () const
QgsSymbolV2::OutputUnit outputUnit () const
void setOutputUnit (QgsSymbolV2::OutputUnit u)
QgsMapUnitScale mapUnitScale () const
void setMapUnitScale (const QgsMapUnitScale &scale)
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)
void setFeature (const QgsFeature *f)
const QgsFeaturefeature () const
 Current feature being rendered - may be null.
const QgsFieldsfields () const
 Fields of the layer.
double outputLineWidth (double width) const
double outputPixelSize (double size) const
QgsSymbolV2RenderContextoperator= (const QgsSymbolV2RenderContext &)

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() 
)
QgsSymbolV2RenderContext::~QgsSymbolV2RenderContext ( )

Member Function Documentation

qreal QgsSymbolV2RenderContext::alpha ( ) const
inline

Get alpha transparency 1 for opaque, 0 for invisible.

const QgsFeature* QgsSymbolV2RenderContext::feature ( ) const
inline

Current feature being rendered - may be null.

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
QgsMapUnitScale QgsSymbolV2RenderContext::mapUnitScale ( ) const
inline
QgsSymbolV2RenderContext & QgsSymbolV2RenderContext::operator= ( const QgsSymbolV2RenderContext )
double QgsSymbolV2RenderContext::outputLineWidth ( double  width) const
double QgsSymbolV2RenderContext::outputPixelSize ( double  size) const
QgsSymbolV2::OutputUnit QgsSymbolV2RenderContext::outputUnit ( ) const
inline
QgsRenderContext& QgsSymbolV2RenderContext::renderContext ( )
inline
const QgsRenderContext& QgsSymbolV2RenderContext::renderContext ( ) const
inline
int QgsSymbolV2RenderContext::renderHints ( ) const
inline
bool QgsSymbolV2RenderContext::selected ( ) const
inline
void QgsSymbolV2RenderContext::setAlpha ( qreal  alpha)
inline

Set alpha transparency 1 for opaque, 0 for invisible.

void QgsSymbolV2RenderContext::setFeature ( const QgsFeature f)
inline
void QgsSymbolV2RenderContext::setMapUnitScale ( const QgsMapUnitScale scale)
inline
void QgsSymbolV2RenderContext::setOutputUnit ( QgsSymbolV2::OutputUnit  u)
inline
void QgsSymbolV2RenderContext::setRenderHints ( int  hints)
inline
void QgsSymbolV2RenderContext::setSelected ( bool  selected)
inline

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