Quantum GIS API Documentation  1.8
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
QgsSvgMarkerSymbolLayerV2 Class Reference

#include <qgsmarkersymbollayerv2.h>

Inheritance diagram for QgsSvgMarkerSymbolLayerV2:
Inheritance graph
[legend]
Collaboration diagram for QgsSvgMarkerSymbolLayerV2:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 QgsSvgMarkerSymbolLayerV2 (QString name=DEFAULT_SVGMARKER_NAME, double size=DEFAULT_SVGMARKER_SIZE, double angle=DEFAULT_SVGMARKER_ANGLE)
QString layerType () const
void startRender (QgsSymbolV2RenderContext &context)
void stopRender (QgsSymbolV2RenderContext &context)
void renderPoint (const QPointF &point, QgsSymbolV2RenderContext &context)
QgsStringMap properties () const
QgsSymbolLayerV2clone () const
void writeSldMarker (QDomDocument &doc, QDomElement &element, QgsStringMap props) const
QString path () const
void setPath (QString path)
QColor fillColor () const
void setFillColor (const QColor &c)
QColor outlineColor () const
void setOutlineColor (const QColor &c)
double outlineWidth () const
void setOutlineWidth (double w)

Static Public Member Functions

static QgsSymbolLayerV2create (const QgsStringMap &properties=QgsStringMap())
static QgsSymbolLayerV2createFromSld (QDomElement &element)
static QStringList listSvgFiles ()
 Return a list of all available svg files.
static QString symbolNameToPath (QString name)
 Get symbol's path from its name.
static QString symbolPathToName (QString path)
 Get symbols's name from its path.

Protected Member Functions

void loadSvg ()

Protected Attributes

QString mPath
QColor mFillColor
QColor mOutlineColor
double mOutlineWidth
double mOrigSize

Detailed Description

Definition at line 97 of file qgsmarkersymbollayerv2.h.


Constructor & Destructor Documentation


Member Function Documentation

QgsSymbolLayerV2 * QgsSvgMarkerSymbolLayerV2::createFromSld ( QDomElement &  element) [static]
QColor QgsSvgMarkerSymbolLayerV2::fillColor ( ) const [inline]

Definition at line 137 of file qgsmarkersymbollayerv2.h.

Referenced by create(), createFromSld(), and setPath().

QString QgsSvgMarkerSymbolLayerV2::layerType ( ) const [virtual]

Implements QgsSymbolLayerV2.

Definition at line 604 of file qgsmarkersymbollayerv2.cpp.

QStringList QgsSvgMarkerSymbolLayerV2::listSvgFiles ( ) [static]

Return a list of all available svg files.

Definition at line 774 of file qgsmarkersymbollayerv2.cpp.

References QgsApplication::svgPaths().

void QgsSvgMarkerSymbolLayerV2::loadSvg ( ) [protected]
QColor QgsSvgMarkerSymbolLayerV2::outlineColor ( ) const [inline]

Definition at line 140 of file qgsmarkersymbollayerv2.h.

Referenced by create(), and setPath().

double QgsSvgMarkerSymbolLayerV2::outlineWidth ( ) const [inline]

Definition at line 143 of file qgsmarkersymbollayerv2.h.

Referenced by create(), and setPath().

QString QgsSvgMarkerSymbolLayerV2::path ( ) const [inline]
void QgsSvgMarkerSymbolLayerV2::renderPoint ( const QPointF &  point,
QgsSymbolV2RenderContext context 
) [virtual]
void QgsSvgMarkerSymbolLayerV2::setFillColor ( const QColor &  c) [inline]

Definition at line 138 of file qgsmarkersymbollayerv2.h.

Referenced by clone(), create(), createFromSld(), and setPath().

void QgsSvgMarkerSymbolLayerV2::setOutlineColor ( const QColor &  c) [inline]

Definition at line 141 of file qgsmarkersymbollayerv2.h.

Referenced by clone(), create(), and setPath().

void QgsSvgMarkerSymbolLayerV2::setOutlineWidth ( double  w) [inline]

Definition at line 144 of file qgsmarkersymbollayerv2.h.

Referenced by clone(), create(), and setPath().

void QgsSvgMarkerSymbolLayerV2::setPath ( QString  path)

Implements QgsSymbolLayerV2.

Definition at line 609 of file qgsmarkersymbollayerv2.cpp.

References mOrigSize, and QgsMarkerSymbolLayerV2::mSize.

Implements QgsSymbolLayerV2.

Definition at line 615 of file qgsmarkersymbollayerv2.cpp.

QString QgsSvgMarkerSymbolLayerV2::symbolNameToPath ( QString  name) [static]

Get symbol's path from its name.

Definition at line 797 of file qgsmarkersymbollayerv2.cpp.

References QgsProject::instance(), QgsDebugMsg, and QgsApplication::svgPaths().

Referenced by QgsSVGFillSymbolLayer::create(), and QgsSvgMarkerSymbolLayerV2().

QString QgsSvgMarkerSymbolLayerV2::symbolPathToName ( QString  path) [static]

Get symbols's name from its path.

Definition at line 845 of file qgsmarkersymbollayerv2.cpp.

References path(), and QgsApplication::svgPaths().

Referenced by QgsSVGFillSymbolLayer::properties(), and properties().

void QgsSvgMarkerSymbolLayerV2::writeSldMarker ( QDomDocument &  doc,
QDomElement &  element,
QgsStringMap  props 
) const [virtual]

Member Data Documentation

Definition at line 157 of file qgsmarkersymbollayerv2.h.

Referenced by startRender().

QString QgsSvgMarkerSymbolLayerV2::mPath [protected]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines