QGIS API Documentation
2.2.0-Valmiera
|
Raster identify results container. More...
#include <qgsrasteridentifyresult.h>
Public Member Functions | |
QgsRasterIdentifyResult () | |
QgsRasterIdentifyResult (QgsRaster::IdentifyFormat theFormat, QMap< int, QVariant > theResults) | |
Constructor. | |
QgsRasterIdentifyResult (QgsError theError) | |
Constructor. | |
virtual | ~QgsRasterIdentifyResult () |
bool | isValid () const |
Returns true if valid. | |
QgsRaster::IdentifyFormat | format () const |
Get results format. | |
QMap< int, QVariant > | results () const |
Get results. | |
void | setParams (const QMap< QString, QVariant > &theParams) |
Set map of optional parameters. | |
QMap< QString, QVariant > | params () const |
Get map of optional parameters. | |
QgsError | error () const |
Get error. | |
void | setError (const QgsError &theError) |
Set error. |
Private Attributes | |
bool | mValid |
Is valid. | |
QgsRaster::IdentifyFormat | mFormat |
Results format. | |
QMap< int, QVariant > | mResults |
Results. | |
QMap< QString, QVariant > | mParams |
Additional params (e.g. | |
QgsError | mError |
Error. |
Raster identify results container.
Definition at line 29 of file qgsrasteridentifyresult.h.
QgsRasterIdentifyResult::QgsRasterIdentifyResult | ( | ) |
Definition at line 25 of file qgsrasteridentifyresult.cpp.
QgsRasterIdentifyResult::QgsRasterIdentifyResult | ( | QgsRaster::IdentifyFormat | theFormat, |
QMap< int, QVariant > | theResults | ||
) |
Constructor.
Creates valid result.
theFormat | the result format |
theResults | the results |
Definition at line 31 of file qgsrasteridentifyresult.cpp.
QgsRasterIdentifyResult::QgsRasterIdentifyResult | ( | QgsError | theError | ) |
Constructor.
Creates invalid result with error.
theError | the error |
Definition at line 38 of file qgsrasteridentifyresult.cpp.
|
virtual |
Definition at line 45 of file qgsrasteridentifyresult.cpp.
|
inline |
Get error.
Definition at line 67 of file qgsrasteridentifyresult.h.
Referenced by QgsMapToolIdentify::identifyRasterLayer().
|
inline |
Get results format.
Definition at line 51 of file qgsrasteridentifyresult.h.
|
inline |
Returns true if valid.
Definition at line 48 of file qgsrasteridentifyresult.h.
Referenced by QgsMapToolIdentify::identifyRasterLayer().
|
inline |
Get map of optional parameters.
Definition at line 64 of file qgsrasteridentifyresult.h.
|
inline |
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().
|
inline |
Set error.
Definition at line 70 of file qgsrasteridentifyresult.h.
|
inline |
Set map of optional parameters.
Definition at line 61 of file qgsrasteridentifyresult.h.
|
private |
Error.
Definition at line 88 of file qgsrasteridentifyresult.h.
|
private |
Results format.
Definition at line 77 of file qgsrasteridentifyresult.h.
|
private |
Additional params (e.g.
request url used by WMS)
Definition at line 85 of file qgsrasteridentifyresult.h.
Referenced by QgsMapToolIdentify::identifyRasterLayer().
|
private |
Results.
Definition at line 82 of file qgsrasteridentifyresult.h.
|
private |
Is valid.
Definition at line 74 of file qgsrasteridentifyresult.h.