Quantum GIS API Documentation  1.7.5-Wroclaw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Slots | Signals | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
QgsMarkerCatalogue Class Reference

Catalogue of point symbols. More...

#include <qgsmarkercatalogue.h>

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

Public Slots

void refreshList ()
 

Signals

void markersRefreshed ()
 

Public Member Functions

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

Static Public Member Functions

static QgsMarkerCatalogueinstance ()
 Access to canonical QgsMarkerCatalogue instance. More...
 
static bool 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. More...
 

Private Member Functions

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

Private Attributes

QStringList mList
 List of availabel markers. More...
 

Static Private Attributes

static QgsMarkerCataloguemMarkerCatalogue = 0
 

Detailed Description

Catalogue of point symbols.

Definition at line 30 of file qgsmarkercatalogue.h.

Constructor & Destructor Documentation

QgsMarkerCatalogue::~QgsMarkerCatalogue ( )

Destructor.

Definition at line 100 of file qgsmarkercatalogue.cpp.

QgsMarkerCatalogue::QgsMarkerCatalogue ( )
private

Constructor.

Definition at line 48 of file qgsmarkercatalogue.cpp.

References refreshList().

Referenced by instance().

Member Function Documentation

bool QgsMarkerCatalogue::fontMarker ( QPainter *  thepPainter,
QString  name,
double  size 
)
private

Definition at line 237 of file qgsmarkercatalogue.cpp.

Referenced by imageMarker().

void QgsMarkerCatalogue::hardMarker ( QPainter *  thepPainter,
int  imageSize,
QString  name,
double  size,
QPen  pen,
QBrush  brush 
)
private

Hard coded.

Definition at line 282 of file qgsmarkercatalogue.cpp.

References DEG2RAD, and QgsDebugMsgLevel.

Referenced by imageMarker(), and pictureMarker().

QImage QgsMarkerCatalogue::imageMarker ( QString  fullName,
double  size,
QPen  pen,
QBrush  brush,
double  opacity = 1.0 
)

Returns pixmap of the marker.

Parameters
fullNamefull name, e.g. hard:circle, svg:/home/usr1/marker1.svg
sizesize of image
penpen to use
brushbrush to use
opacityopacity to use

Definition at line 114 of file qgsmarkercatalogue.cpp.

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

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

QgsMarkerCatalogue * QgsMarkerCatalogue::instance ( )
static
QStringList QgsMarkerCatalogue::list ( )

List of available markers.

Definition at line 95 of file qgsmarkercatalogue.cpp.

References mList.

void QgsMarkerCatalogue::markersRefreshed ( )
signal

Referenced by refreshList().

QPicture QgsMarkerCatalogue::pictureMarker ( QString  fullName,
double  size,
QPen  pen,
QBrush  brush,
double  opacity = 1.0 
)

Returns qpicture of the marker.

Parameters
fullNamefull name, e.g. hard:circle, svg:/home/usr1/marker1.svg
sizesize of marker
penpen to use
brushbrush to use
opacityopacity to use

Definition at line 191 of file qgsmarkercatalogue.cpp.

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

void QgsMarkerCatalogue::refreshList ( )
slot

Definition at line 53 of file qgsmarkercatalogue.cpp.

References markersRefreshed(), mList, QgsDebugMsg, and QgsApplication::svgPaths().

Referenced by QgsMarkerCatalogue().

bool 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 271 of file qgsmarkercatalogue.cpp.

Referenced by imageMarker(), and pictureMarker().

Member Data Documentation

QStringList QgsMarkerCatalogue::mList
private

List of availabel markers.

Definition at line 79 of file qgsmarkercatalogue.h.

Referenced by list(), and refreshList().

QgsMarkerCatalogue * QgsMarkerCatalogue::mMarkerCatalogue = 0
staticprivate

Definition at line 76 of file qgsmarkercatalogue.h.

Referenced by instance().


The documentation for this class was generated from the following files: