QgsSymbologyV2Conversion Class Reference

#include <qgssymbologyv2conversion.h>

List of all members.

Static Public Member Functions

static QgsSymbolV2symbolV1toV2 (const QgsSymbol *s)
 return a symbol in new symbology as close as possible to old symbol
static QgsSymbolsymbolV2toV1 (QgsSymbolV2 *s)
 return a symbol in old symbology as close as possible to new symbol
static void rendererV1toV2 (QgsVectorLayer *layer)
 convert layer from old symbology to new symbology
static void rendererV2toV1 (QgsVectorLayer *layer)
 convert layer from new symbology to old symbology

Detailed Description

Definition at line 8 of file qgssymbologyv2conversion.h.

Member Function Documentation

QgsSymbolV2 * QgsSymbologyV2Conversion::symbolV1toV2 ( const QgsSymbol s  )  [static]

return a symbol in new symbology as close as possible to old symbol

not all properties will be preserved

Definition at line 19 of file qgssymbologyv2conversion.cpp.

References MathUtils::angle(), QgsSymbol::brush(), QgsSymbol::color(), QgsSymbol::fillColor(), QGis::Line, QgsSymbol::lineWidth(), QgsSymbol::pen(), QGis::Point, QgsSymbol::pointSize(), QgsSymbol::pointSymbolName(), QGis::Polygon, and QgsSymbol::type().

Referenced by rendererV1toV2().

QgsSymbol * QgsSymbologyV2Conversion::symbolV2toV1 ( QgsSymbolV2 s  )  [static]

void QgsSymbologyV2Conversion::rendererV1toV2 ( QgsVectorLayer layer  )  [static]

void QgsSymbologyV2Conversion::rendererV2toV1 ( QgsVectorLayer layer  )  [static]

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

Generated on Sat Feb 4 19:17:54 2012 for Quantum GIS API Documentation by  doxygen 1.5.6