QGIS API Documentation  2.2.0-Valmiera
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
QgsProjectFileTransform Class Reference

#include <qgsprojectfiletransform.h>

Collaboration diagram for QgsProjectFileTransform:
Collaboration graph
[legend]

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 []

Detailed Description

Definition at line 36 of file qgsprojectfiletransform.h.

Constructor & Destructor Documentation

QgsProjectFileTransform::~QgsProjectFileTransform ( )
inline

Definition at line 41 of file qgsprojectfiletransform.h.

QgsProjectFileTransform::QgsProjectFileTransform ( QDomDocument &  domDocument,
QgsProjectVersion  version 
)
inline

Create an instance from a Dom and a supplied version

Parameters
domDocumentThe Dom document to use as content
versionVersion number

Definition at line 47 of file qgsprojectfiletransform.h.

Member Function Documentation

void QgsProjectFileTransform::convertRasterProperties ( QDomDocument &  doc,
QDomNode &  parentNode,
QDomElement &  rasterPropertiesElem,
QgsRasterLayer rlayer 
)
static
void QgsProjectFileTransform::dump ( )
int QgsProjectFileTransform::rasterBandNumber ( const QDomElement &  rasterPropertiesElem,
const QString &  bandName,
QgsRasterLayer rlayer 
)
staticprivate

Definition at line 812 of file qgsprojectfiletransform.cpp.

Referenced by convertRasterProperties().

void QgsProjectFileTransform::transform0100to0110 ( )
private

Definition at line 260 of file qgsprojectfiletransform.cpp.

References mDom, outlineWidth, and widthScaleFactor.

void QgsProjectFileTransform::transform0110to1000 ( )
private
void QgsProjectFileTransform::transform081to090 ( )
private

Definition at line 95 of file qgsprojectfiletransform.cpp.

References mDom, and QgsDebugMsg.

void QgsProjectFileTransform::transform091to0100 ( )
private

Definition at line 201 of file qgsprojectfiletransform.cpp.

References mDom, and QgsDebugMsg.

void QgsProjectFileTransform::transform1100to1200 ( )
private

Definition at line 364 of file qgsprojectfiletransform.cpp.

References mDom, QgsDebugMsg, and QgsPropertyValue::writeXML().

void QgsProjectFileTransform::transform1400to1500 ( )
private

Definition at line 398 of file qgsprojectfiletransform.cpp.

References mDom.

void QgsProjectFileTransform::transform1800to1900 ( )
private
void QgsProjectFileTransform::transformContrastEnhancement ( QDomDocument &  doc,
const QDomElement &  rasterproperties,
QDomElement &  rendererElem 
)
staticprivate

Definition at line 834 of file qgsprojectfiletransform.cpp.

Referenced by convertRasterProperties().

void QgsProjectFileTransform::transformNull ( )
inlineprivate

Definition at line 80 of file qgsprojectfiletransform.h.

void QgsProjectFileTransform::transformRasterTransparency ( QDomDocument &  doc,
const QDomElement &  orig,
QDomElement &  rendererElem 
)
staticprivate

Definition at line 927 of file qgsprojectfiletransform.cpp.

bool QgsProjectFileTransform::updateRevision ( QgsProjectVersion  version)

Member Data Documentation

QgsProjectVersion QgsProjectFileTransform::mCurrentVersion
private

Definition at line 75 of file qgsprojectfiletransform.h.

Referenced by dump(), and updateRevision().

QDomDocument QgsProjectFileTransform::mDom
private
QgsProjectFileTransform::transform QgsProjectFileTransform::transformers
staticprivate
Initial value:
{
{PFV( 0, 8, 0 ), PFV( 0, 8, 1 ), &QgsProjectFileTransform::transformNull},
{PFV( 0, 9, 0 ), PFV( 0, 9, 1 ), &QgsProjectFileTransform::transformNull},
{PFV( 0, 9, 2 ), PFV( 0, 11, 0 ), &QgsProjectFileTransform::transformNull},
{PFV( 1, 0, 0 ), PFV( 1, 1, 0 ), &QgsProjectFileTransform::transformNull},
{PFV( 1, 0, 2 ), PFV( 1, 1, 0 ), &QgsProjectFileTransform::transformNull},
{PFV( 1, 2, 0 ), PFV( 1, 3, 0 ), &QgsProjectFileTransform::transformNull},
{PFV( 1, 3, 0 ), PFV( 1, 4, 0 ), &QgsProjectFileTransform::transformNull},
{PFV( 1, 5, 0 ), PFV( 1, 6, 0 ), &QgsProjectFileTransform::transformNull},
{PFV( 1, 6, 0 ), PFV( 1, 7, 0 ), &QgsProjectFileTransform::transformNull},
{PFV( 1, 7, 0 ), PFV( 1, 8, 0 ), &QgsProjectFileTransform::transformNull},
}

Definition at line 72 of file qgsprojectfiletransform.h.

Referenced by updateRevision().


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