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

Raster identify results container. More...

#include <qgsrasteridentifyresult.h>

Collaboration diagram for QgsRasterIdentifyResult:
Collaboration graph

Public Member Functions

 QgsRasterIdentifyResult ()
 QgsRasterIdentifyResult (QgsRaster::IdentifyFormat theFormat, QMap< int, QVariant > theResults)
 Constructor. More...
 QgsRasterIdentifyResult (QgsError theError)
 Constructor. More...
virtual ~QgsRasterIdentifyResult ()
bool isValid () const
 Returns true if valid. More...
QgsRaster::IdentifyFormat format () const
 Get results format. More...
QMap< int, QVariant > results () const
 Get results. More...
void setParams (const QMap< QString, QVariant > &theParams)
 Set map of optional parameters. More...
QMap< QString, QVariant > params () const
 Get map of optional parameters. More...
QgsError error () const
 Get error. More...
void setError (const QgsError &theError)
 Set error. More...

Private Attributes

bool mValid
 Is valid. More...
QgsRaster::IdentifyFormat mFormat
 Results format. More...
QMap< int, QVariant > mResults
 Results. More...
QMap< QString, QVariant > mParams
 Additional params (e.g. More...
QgsError mError
 Error. More...

Detailed Description

Raster identify results container.

Definition at line 29 of file qgsrasteridentifyresult.h.

Constructor & Destructor Documentation

QgsRasterIdentifyResult::QgsRasterIdentifyResult ( )

Definition at line 25 of file qgsrasteridentifyresult.cpp.

QgsRasterIdentifyResult::QgsRasterIdentifyResult ( QgsRaster::IdentifyFormat  theFormat,
QMap< int, QVariant >  theResults 


Creates valid result.

theFormatthe result format
theResultsthe results

Definition at line 31 of file qgsrasteridentifyresult.cpp.

QgsRasterIdentifyResult::QgsRasterIdentifyResult ( QgsError  theError)


Creates invalid result with error.

theErrorthe error

Definition at line 38 of file qgsrasteridentifyresult.cpp.

QgsRasterIdentifyResult::~QgsRasterIdentifyResult ( )

Definition at line 45 of file qgsrasteridentifyresult.cpp.

Member Function Documentation

QgsError QgsRasterIdentifyResult::error ( ) const

Get error.

Definition at line 67 of file qgsrasteridentifyresult.h.

Referenced by QgsMapToolIdentify::identifyRasterLayer().

QgsRaster::IdentifyFormat QgsRasterIdentifyResult::format ( ) const

Get results format.

Definition at line 51 of file qgsrasteridentifyresult.h.

bool QgsRasterIdentifyResult::isValid ( ) const

Returns true if valid.

Definition at line 48 of file qgsrasteridentifyresult.h.

Referenced by QgsMapToolIdentify::identifyRasterLayer().

QMap<QString, QVariant> QgsRasterIdentifyResult::params ( ) const

Get map of optional parameters.

Definition at line 64 of file qgsrasteridentifyresult.h.

QMap<int, QVariant> QgsRasterIdentifyResult::results ( ) const

Get results.

Results are different for each format: QgsRaster::IdentifyFormatValue: map of values for each band, keys are band numbers (from 1). QgsRaster::IdentifyFormatFeature: map of QgsRasterFeatureList for each sublayer (WMS) QgsRaster::IdentifyFormatHtml: map of HTML strings for each sublayer (WMS).

Definition at line 58 of file qgsrasteridentifyresult.h.

Referenced by QgsMapToolIdentify::identifyRasterLayer().

void QgsRasterIdentifyResult::setError ( const QgsError theError)

Set error.

Definition at line 70 of file qgsrasteridentifyresult.h.

void QgsRasterIdentifyResult::setParams ( const QMap< QString, QVariant > &  theParams)

Set map of optional parameters.

Definition at line 61 of file qgsrasteridentifyresult.h.

Member Data Documentation

QgsError QgsRasterIdentifyResult::mError


Definition at line 88 of file qgsrasteridentifyresult.h.

QgsRaster::IdentifyFormat QgsRasterIdentifyResult::mFormat

Results format.

Definition at line 77 of file qgsrasteridentifyresult.h.

QMap<QString, QVariant> QgsRasterIdentifyResult::mParams

Additional params (e.g.

request url used by WMS)

Definition at line 85 of file qgsrasteridentifyresult.h.

Referenced by QgsMapToolIdentify::identifyRasterLayer().

QMap<int, QVariant> QgsRasterIdentifyResult::mResults


Definition at line 82 of file qgsrasteridentifyresult.h.

bool QgsRasterIdentifyResult::mValid

Is valid.

Definition at line 74 of file qgsrasteridentifyresult.h.

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