QGIS API Documentation
2.0.1-Dufour
|
#include <qgsprojectfiletransform.h>
Classes | |
struct | transform |
Public Member Functions | |
~QgsProjectFileTransform () | |
QgsProjectFileTransform (QDomDocument &domDocument, QgsProjectVersion version) | |
bool | updateRevision (QgsProjectVersion version) |
void | dump () |
Static Public Member Functions | |
static void | convertRasterProperties (QDomDocument &doc, QDomNode &parentNode, QDomElement &rasterPropertiesElem, QgsRasterLayer *rlayer) |
Private Member Functions | |
void | transformNull () |
void | transform081to090 () |
void | transform091to0100 () |
void | transform0100to0110 () |
void | transform0110to1000 () |
void | transform1100to1200 () |
void | transform1400to1500 () |
void | transform1800to1900 () |
Static Private Member Functions | |
static int | rasterBandNumber (const QDomElement &rasterPropertiesElem, const QString bandName, QgsRasterLayer *rlayer) |
static void | transformContrastEnhancement (QDomDocument &doc, const QDomElement &rasterproperties, QDomElement &rendererElem) |
static void | transformRasterTransparency (QDomDocument &doc, const QDomElement &orig, QDomElement &rendererElem) |
Private Attributes | |
QDomDocument | mDom |
QgsProjectVersion | mCurrentVersion |
Static Private Attributes | |
static transform | transformers [] |
Definition at line 36 of file qgsprojectfiletransform.h.
|
inline |
Definition at line 41 of file qgsprojectfiletransform.h.
|
inline |
Create an instance from a Dom and a supplied version
domDocument | The Dom document to use as content |
version | Version number |
Definition at line 47 of file qgsprojectfiletransform.h.
|
static |
Definition at line 597 of file qgsprojectfiletransform.cpp.
References QgsRasterInterface::bandStatistics(), QgsRasterLayer::dataProvider(), QgsRasterBandStats::maximumValue, QgsRasterBandStats::minimumValue, QgsDebugMsg, rasterBandNumber(), and transformContrastEnhancement().
Referenced by QgsRasterLayer::readSymbology(), and transform1800to1900().
void QgsProjectFileTransform::dump | ( | ) |
Prints the contents via QgsDebugMsg()
Definition at line 79 of file qgsprojectfiletransform.cpp.
References QgsProjectVersion::majorVersion(), mCurrentVersion, mDom, QgsProjectVersion::minorVersion(), QgsDebugMsg, and QgsProjectVersion::subVersion().
|
staticprivate |
Definition at line 807 of file qgsprojectfiletransform.cpp.
Referenced by convertRasterProperties().
|
private |
Definition at line 260 of file qgsprojectfiletransform.cpp.
References mDom, outlineWidth, and widthScaleFactor.
|
private |
Definition at line 301 of file qgsprojectfiletransform.cpp.
References QgsFields::at(), QgsFields::count(), QgsVectorLayer::dataProvider(), QgsVectorDataProvider::fields(), QgsMapLayer::isValid(), and mDom.
|
private |
Definition at line 95 of file qgsprojectfiletransform.cpp.
References mDom, and QgsDebugMsg.
|
private |
Definition at line 201 of file qgsprojectfiletransform.cpp.
References mDom, and QgsDebugMsg.
|
private |
Definition at line 364 of file qgsprojectfiletransform.cpp.
References mDom, QgsDebugMsg, and QgsPropertyValue::writeXML().
|
private |
Definition at line 398 of file qgsprojectfiletransform.cpp.
References mDom.
|
private |
Definition at line 459 of file qgsprojectfiletransform.cpp.
References convertRasterProperties(), mDom, QgsDebugMsg, and QgsMapLayer::readLayerXML().
|
staticprivate |
Definition at line 829 of file qgsprojectfiletransform.cpp.
Referenced by convertRasterProperties().
|
inlineprivate |
Definition at line 80 of file qgsprojectfiletransform.h.
|
staticprivate |
Definition at line 922 of file qgsprojectfiletransform.cpp.
bool QgsProjectFileTransform::updateRevision | ( | QgsProjectVersion | version | ) |
Definition at line 58 of file qgsprojectfiletransform.cpp.
References mCurrentVersion, mDom, QgsProjectFileTransform::transform::to, transformers, and QgsProjectFileTransform::transform::transformFunc.
|
private |
Definition at line 75 of file qgsprojectfiletransform.h.
Referenced by dump(), and updateRevision().
|
private |
Definition at line 74 of file qgsprojectfiletransform.h.
Referenced by dump(), transform0100to0110(), transform0110to1000(), transform081to090(), transform091to0100(), transform1100to1200(), transform1400to1500(), transform1800to1900(), and updateRevision().
|
staticprivate |
Definition at line 72 of file qgsprojectfiletransform.h.
Referenced by updateRevision().