1
/***************************************************************************
2
qgsmarkersymbol.h - description
5
copyright : (C) 2004 by Marco Hugentobler
6
email : mhugent@geo.unizh.ch
7
***************************************************************************/
9
/***************************************************************************
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
16
***************************************************************************/
17
/* $Id: qgsmarkersymbol.h 4502 2006-01-08 01:18:20Z timlinux $ */
19
#ifndef QGSMARKERSYMBOL_H
20
#define QGSMARKERSYMBOL_H
22
#include "qgssymbol.h"
23
#include <q3picture.h>
25
/**Representation of a marker symbol*/
26
class QgsMarkerSymbol : public QgsSymbol
32
virtual ~QgsMarkerSymbol();
33
/**Loads the QPainter commands from an svg file
34
@param svgpath the pathe to the svg file which stores the picture*/
35
void setPicture(const QString& svgpath);
36
/**Sets the scale factor*/
37
void setScaleFactor(double factor);
38
/**Returns the path of the picture object*/
39
const QString& picture() const;
40
/**Returns the scale factor*/
42
/**Writes the contents of the symbol to a configuration file
43
@ return true in case of success*/
44
virtual bool writeXML( QDomNode & item, QDomDocument & document );
46
/**Path to the SVG image*/
48
/**Scale factor. 1 keeps the size as it is, 2 doubles the size, etc.*/
52
inline QgsMarkerSymbol::QgsMarkerSymbol()
53
: QgsSymbol(), mSvgPath(""), mScaleFactor(1)
56
inline QgsMarkerSymbol::~QgsMarkerSymbol()
59
inline void QgsMarkerSymbol::setScaleFactor(double factor)
64
inline const QString& QgsMarkerSymbol::picture() const
69
inline double QgsMarkerSymbol::scaleFactor()