Quantum GIS API Documentation  1.7.4
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
QString path () const
void setPath (QString path)

Static Public Member Functions

static QgsSymbolLayerV2create (const QgsStringMap &properties=QgsStringMap())
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
QPicture mPicture
QPicture mSelPicture
double mOrigSize

Detailed Description

Definition at line 80 of file qgsmarkersymbollayerv2.h.


Constructor & Destructor Documentation


Member Function Documentation

QString QgsSvgMarkerSymbolLayerV2::layerType ( ) const [virtual]

Implements QgsSymbolLayerV2.

Definition at line 472 of file qgsmarkersymbollayerv2.cpp.

QStringList QgsSvgMarkerSymbolLayerV2::listSvgFiles ( ) [static]

Return a list of all available svg files.

Definition at line 558 of file qgsmarkersymbollayerv2.cpp.

References QgsApplication::svgPaths().

void QgsSvgMarkerSymbolLayerV2::loadSvg ( ) [protected]
QString QgsSvgMarkerSymbolLayerV2::path ( ) const [inline]
void QgsSvgMarkerSymbolLayerV2::renderPoint ( const QPointF &  point,
QgsSymbolV2RenderContext context 
) [virtual]
void QgsSvgMarkerSymbolLayerV2::setPath ( QString  path) [inline]

Definition at line 115 of file qgsmarkersymbollayerv2.h.

Implements QgsSymbolLayerV2.

Definition at line 505 of file qgsmarkersymbollayerv2.cpp.

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

Get symbol's path from its name.

Definition at line 581 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 629 of file qgsmarkersymbollayerv2.cpp.

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

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


Member Data Documentation

Definition at line 124 of file qgsmarkersymbollayerv2.h.

Referenced by renderPoint(), and startRender().

QString QgsSvgMarkerSymbolLayerV2::mPath [protected]

Definition at line 122 of file qgsmarkersymbollayerv2.h.

Referenced by renderPoint(), and startRender().

Definition at line 123 of file qgsmarkersymbollayerv2.h.

Referenced by renderPoint(), and startRender().


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