QgsMarkerCatalogue Class Reference

#include <qgsmarkercatalogue.h>

Collaboration diagram for QgsMarkerCatalogue:

Collaboration graph
[legend]
List of all members.

Detailed Description

Catalogue of point symbols.

Definition at line 30 of file qgsmarkercatalogue.h.

Public Member Functions

 ~QgsMarkerCatalogue ()
 Destructor.
QStringList list ()
 List of available markers.
QImage imageMarker (QString fullName, double size, QPen pen, QBrush brush, bool qtBug=true)
 Returns pixmap of the marker.
QPicture pictureMarker (QString fullName, double size, QPen pen, QBrush brush, bool qtBug=true)
 Returns qpicture of the marker.

Static Public Member Functions

static QgsMarkerCatalogueinstance ()
 Access to canonical QgsMarkerCatalogue instance.
static void svgMarker (QPainter *thepPainter, QString name, double size)
 Returns a pixmap given a file name of a svg marker NOTE: this method needs to be public static for QgsMarkerDialog::visualizeMarkers.

Private Member Functions

 QgsMarkerCatalogue ()
 Constructor.
void hardMarker (QPainter *thepPainter, int imageSize, QString name, double size, QPen pen, QBrush brush, bool qtBug=true)
 Hard coded.

Private Attributes

QStringList mList
 List of availabel markers.

Static Private Attributes

static QgsMarkerCataloguemMarkerCatalogue


Constructor & Destructor Documentation

QgsMarkerCatalogue::~QgsMarkerCatalogue (  ) 

Destructor.

Definition at line 94 of file qgsmarkercatalogue.cpp.

QgsMarkerCatalogue::QgsMarkerCatalogue (  )  [private]

Constructor.

Definition at line 48 of file qgsmarkercatalogue.cpp.

References mList, and QgsApplication::svgPath().

Referenced by instance().


Member Function Documentation

QgsMarkerCatalogue * QgsMarkerCatalogue::instance (  )  [static]

Access to canonical QgsMarkerCatalogue instance.

Definition at line 98 of file qgsmarkercatalogue.cpp.

References mMarkerCatalogue, and QgsMarkerCatalogue().

Referenced by QgsSymbol::cache(), QgsSymbol::cache2(), QgsSymbol::getPointSymbolAsImage(), and QgsContinuousColorRenderer::renderFeature().

QStringList QgsMarkerCatalogue::list (  ) 

List of available markers.

Definition at line 89 of file qgsmarkercatalogue.cpp.

References mList.

QImage QgsMarkerCatalogue::imageMarker ( QString  fullName,
double  size,
QPen  pen,
QBrush  brush,
bool  qtBug = true 
)

Returns pixmap of the marker.

Parameters:
fullName full name, e.g. hard:circle, svg:/home/usr1/marker1.svg

Definition at line 108 of file qgsmarkercatalogue.cpp.

References hardMarker(), QgsDebugMsg, and svgMarker().

Referenced by QgsSymbol::cache(), QgsSymbol::cache2(), QgsSymbol::getPointSymbolAsImage(), and QgsContinuousColorRenderer::renderFeature().

QPicture QgsMarkerCatalogue::pictureMarker ( QString  fullName,
double  size,
QPen  pen,
QBrush  brush,
bool  qtBug = true 
)

Returns qpicture of the marker.

Parameters:
fullName full name, e.g. hard:circle, svg:/home/usr1/marker1.svg

Definition at line 168 of file qgsmarkercatalogue.cpp.

References hardMarker(), and svgMarker().

void QgsMarkerCatalogue::svgMarker ( QPainter *  thepPainter,
QString  name,
double  size 
) [static]

Returns a pixmap given a file name of a svg marker NOTE: this method needs to be public static for QgsMarkerDialog::visualizeMarkers.

Definition at line 209 of file qgsmarkercatalogue.cpp.

Referenced by imageMarker(), and pictureMarker().

void QgsMarkerCatalogue::hardMarker ( QPainter *  thepPainter,
int  imageSize,
QString  name,
double  size,
QPen  pen,
QBrush  brush,
bool  qtBug = true 
) [private]

Hard coded.

Definition at line 216 of file qgsmarkercatalogue.cpp.

References DEG2RAD, and QgsDebugMsg.

Referenced by imageMarker(), and pictureMarker().


Member Data Documentation

QgsMarkerCatalogue * QgsMarkerCatalogue::mMarkerCatalogue [static, private]

Definition at line 61 of file qgsmarkercatalogue.h.

Referenced by instance().

QStringList QgsMarkerCatalogue::mList [private]

List of availabel markers.

Definition at line 64 of file qgsmarkercatalogue.h.

Referenced by list(), and QgsMarkerCatalogue().


The documentation for this class was generated from the following files:
Generated on Wed Jan 7 01:51:26 2009 for Quantum GIS API Documentation by  doxygen 1.5.1