Quantum GIS API Documentation  1.7.4
Static Public Member Functions
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

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().

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines