1
/***************************************************************************
5
copyright : (C) 2005 by Radim Blazek
7
***************************************************************************/
8
/***************************************************************************
10
* This program is free software; you can redistribute it and/or modify *
11
* it under the terms of the GNU General Public License as published by *
12
* the Free Software Foundation; either version 2 of the License, or *
13
* (at your option) any later version. *
15
***************************************************************************/
16
#ifndef QGSMARKERCATALOGUE_H
17
#define QGSMARKERCATALOGUE_H
26
#include <qstringlist.h>
30
/** Catalogue of point symbols */
31
class QgsMarkerCatalogue{
35
~QgsMarkerCatalogue();
37
//! Access to canonical QgsMarkerCatalogue instance
38
static QgsMarkerCatalogue *instance();
40
/**List of available markers*/
43
/** Returns picture of the marker
44
* \param fullName full name, e.g. hard:circle, svg:/home/usr1/marker1.svg
46
QPicture marker ( QString fullName, int size, QPen pen, QBrush brush, int oversampling = 1, bool qtBug = true );
53
static QgsMarkerCatalogue *mMarkerCatalogue;
55
/** List of availabel markers*/
59
QPicture hardMarker ( QString name, int size, QPen pen, QBrush brush, int oversampling = 1, bool qtBug = true );
62
QPicture svgMarker ( QString name, int size, int oversampling = 1 );
65
#endif // QGSMARKERCATALOGUE_H