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

#include <qgssymbollayerv2.h>

Inheritance diagram for QgsSymbolLayerV2:
Inheritance graph
[legend]

Public Member Functions

virtual void setColor (const QColor &color)
virtual QColor color () const
virtual ~QgsSymbolLayerV2 ()
virtual QString layerType () const =0
virtual void startRender (QgsSymbolV2RenderContext &context)=0
virtual void stopRender (QgsSymbolV2RenderContext &context)=0
virtual QgsSymbolLayerV2clone () const =0
virtual void toSld (QDomDocument &doc, QDomElement &element, QgsStringMap props) const
virtual QString ogrFeatureStyle (double mmScaleFactor, double mapUnitScaleFactor) const
virtual QgsStringMap properties () const =0
virtual void drawPreviewIcon (QgsSymbolV2RenderContext &context, QSize size)=0
virtual QgsSymbolV2subSymbol ()
virtual bool setSubSymbol (QgsSymbolV2 *symbol)
QgsSymbolV2::SymbolType type () const
void setLocked (bool locked)
bool isLocked () const
virtual void setOutputUnit (QgsSymbolV2::OutputUnit unit)
virtual QgsSymbolV2::OutputUnit outputUnit () const
void setRenderingPass (int renderingPass)
int renderingPass () const
virtual QSet< QString > usedAttributes () const
virtual const QgsExpressiondataDefinedProperty (const QString &property) const
virtual QString dataDefinedPropertyString (const QString &property) const
virtual void setDataDefinedProperty (const QString &property, const QString &expressionString)
virtual void removeDataDefinedProperty (const QString &property)
virtual void removeDataDefinedProperties ()

Protected Member Functions

 QgsSymbolLayerV2 (QgsSymbolV2::SymbolType type, bool locked=false)
virtual void prepareExpressions (const QgsVectorLayer *vl)
virtual QgsExpressionexpression (const QString &property)
void saveDataDefinedProperties (QgsStringMap &stringMap) const
 Saves data defined properties to string map.
void copyDataDefinedProperties (QgsSymbolLayerV2 *destLayer) const
 Copies data defined properties of this layer to another symbol layer.

Protected Attributes

QgsSymbolV2::SymbolType mType
bool mLocked
QColor mColor
int mRenderingPass
QMap< QString, QgsExpression * > mDataDefinedProperties

Static Protected Attributes

static const bool selectionIsOpaque = true
static const bool selectFillBorder = false
static const bool selectFillStyle = false

Detailed Description

Definition at line 44 of file qgssymbollayerv2.h.

Constructor & Destructor Documentation

virtual QgsSymbolLayerV2::~QgsSymbolLayerV2 ( )
inlinevirtual

Definition at line 52 of file qgssymbollayerv2.h.

QgsSymbolLayerV2::QgsSymbolLayerV2 ( QgsSymbolV2::SymbolType  type,
bool  locked = false 
)
inlineprotected

Definition at line 96 of file qgssymbollayerv2.h.

Member Function Documentation

virtual QgsSymbolLayerV2* QgsSymbolLayerV2::clone ( ) const
pure virtual
virtual QColor QgsSymbolLayerV2::color ( void  ) const
inlinevirtual
void QgsSymbolLayerV2::copyDataDefinedProperties ( QgsSymbolLayerV2 destLayer) const
protected
const QgsExpression * QgsSymbolLayerV2::dataDefinedProperty ( const QString &  property) const
virtual
QString QgsSymbolLayerV2::dataDefinedPropertyString ( const QString &  property) const
virtual

Definition at line 47 of file qgssymbollayerv2.cpp.

References dataDefinedProperty(), and QgsExpression::expression().

virtual void QgsSymbolLayerV2::drawPreviewIcon ( QgsSymbolV2RenderContext context,
QSize  size 
)
pure virtual
QgsExpression * QgsSymbolLayerV2::expression ( const QString &  property)
protectedvirtual
bool QgsSymbolLayerV2::isLocked ( ) const
inline

Definition at line 77 of file qgssymbollayerv2.h.

Referenced by QgsSymbolLayerV2Utils::saveSymbol().

virtual QString QgsSymbolLayerV2::layerType ( ) const
pure virtual
virtual QString QgsSymbolLayerV2::ogrFeatureStyle ( double  mmScaleFactor,
double  mapUnitScaleFactor 
) const
inlinevirtual
virtual QgsSymbolV2::OutputUnit QgsSymbolLayerV2::outputUnit ( ) const
inlinevirtual
void QgsSymbolLayerV2::prepareExpressions ( const QgsVectorLayer vl)
protectedvirtual
virtual QgsStringMap QgsSymbolLayerV2::properties ( ) const
pure virtual
void QgsSymbolLayerV2::removeDataDefinedProperties ( )
virtual

Definition at line 69 of file qgssymbollayerv2.cpp.

References mDataDefinedProperties.

Referenced by copyDataDefinedProperties().

void QgsSymbolLayerV2::removeDataDefinedProperty ( const QString &  property)
virtual

Definition at line 59 of file qgssymbollayerv2.cpp.

References mDataDefinedProperties.

Referenced by setDataDefinedProperty().

int QgsSymbolLayerV2::renderingPass ( ) const
inline
void QgsSymbolLayerV2::saveDataDefinedProperties ( QgsStringMap stringMap) const
protected
virtual void QgsSymbolLayerV2::setColor ( const QColor &  color)
inlinevirtual
void QgsSymbolLayerV2::setDataDefinedProperty ( const QString &  property,
const QString &  expressionString 
)
virtual
void QgsSymbolLayerV2::setLocked ( bool  locked)
inline
virtual void QgsSymbolLayerV2::setOutputUnit ( QgsSymbolV2::OutputUnit  unit)
inlinevirtual
void QgsSymbolLayerV2::setRenderingPass ( int  renderingPass)
inline
virtual bool QgsSymbolLayerV2::setSubSymbol ( QgsSymbolV2 symbol)
inlinevirtual
virtual void QgsSymbolLayerV2::startRender ( QgsSymbolV2RenderContext context)
pure virtual
virtual void QgsSymbolLayerV2::stopRender ( QgsSymbolV2RenderContext context)
pure virtual
virtual QgsSymbolV2* QgsSymbolLayerV2::subSymbol ( )
inlinevirtual
virtual void QgsSymbolLayerV2::toSld ( QDomDocument &  doc,
QDomElement &  element,
QgsStringMap  props 
) const
inlinevirtual
QgsSymbolV2::SymbolType QgsSymbolLayerV2::type ( ) const
inline
QSet< QString > QgsSymbolLayerV2::usedAttributes ( ) const
virtual

Member Data Documentation

QColor QgsSymbolLayerV2::mColor
protected
QMap< QString, QgsExpression* > QgsSymbolLayerV2::mDataDefinedProperties
protected
bool QgsSymbolLayerV2::mLocked
protected

Definition at line 100 of file qgssymbollayerv2.h.

int QgsSymbolLayerV2::mRenderingPass
protected

Definition at line 102 of file qgssymbollayerv2.h.

QgsSymbolV2::SymbolType QgsSymbolLayerV2::mType
protected

Definition at line 99 of file qgssymbollayerv2.h.

const bool QgsSymbolLayerV2::selectFillBorder = false
staticprotected

Definition at line 108 of file qgssymbollayerv2.h.

Referenced by QgsImageFillSymbolLayer::renderPolygon().

const bool QgsSymbolLayerV2::selectFillStyle = false
staticprotected

Definition at line 109 of file qgssymbollayerv2.h.

Referenced by QgsSimpleFillSymbolLayerV2::startRender().

const bool QgsSymbolLayerV2::selectionIsOpaque = true
staticprotected

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