| QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
    | 
Raster identify results container. More...
#include <qgsrasteridentifyresult.h>
| Public Member Functions | |
| QgsRasterIdentifyResult ()=default | |
| Constructor for QgsRasterIdentifyResult.  More... | |
| QgsRasterIdentifyResult (const QgsError &error) | |
| Constructor.  More... | |
| QgsRasterIdentifyResult (Qgis::RasterIdentifyFormat format, const QMap< int, QVariant > &results) | |
| Constructor.  More... | |
| virtual | ~QgsRasterIdentifyResult ()=default | 
| QgsError | error () const | 
| Returns the last error.  More... | |
| Qgis::RasterIdentifyFormat | format () const | 
| Returns the results format.  More... | |
| bool | isValid () const | 
| Returns trueif valid.  More... | |
| QMap< QString, QVariant > | params () const | 
| Gets map of optional parameters.  More... | |
| QMap< int, QVariant > | results () const | 
| Returns the identify results.  More... | |
| void | setError (const QgsError &error) | 
| Sets the last error.  More... | |
| void | setParams (const QMap< QString, QVariant > ¶ms) | 
| Sets map of optional parameters.  More... | |
Raster identify results container.
Definition at line 30 of file qgsrasteridentifyresult.h.
| 
 | default | 
Constructor for QgsRasterIdentifyResult.
| QgsRasterIdentifyResult::QgsRasterIdentifyResult | ( | Qgis::RasterIdentifyFormat | format, | 
| const QMap< int, QVariant > & | results | ||
| ) | 
Constructor.
Creates valid result.
| format | the result format | 
| results | the results | 
Definition at line 25 of file qgsrasteridentifyresult.cpp.
| QgsRasterIdentifyResult::QgsRasterIdentifyResult | ( | const QgsError & | error | ) | 
Constructor.
Creates invalid result with error.
| error | the error | 
Definition at line 32 of file qgsrasteridentifyresult.cpp.
| 
 | virtualdefault | 
| 
 | inline | 
Returns the last error.
Definition at line 76 of file qgsrasteridentifyresult.h.
| 
 | inline | 
Returns the results format.
Definition at line 58 of file qgsrasteridentifyresult.h.
| 
 | inline | 
Returns true if valid. 
Definition at line 55 of file qgsrasteridentifyresult.h.
| 
 | inline | 
Gets map of optional parameters.
Definition at line 73 of file qgsrasteridentifyresult.h.
| 
 | inline | 
Returns the identify results.
Results are different for each format:
Definition at line 67 of file qgsrasteridentifyresult.h.
| 
 | inline | 
Sets the last error.
Definition at line 79 of file qgsrasteridentifyresult.h.
| 
 | inline | 
Sets map of optional parameters.
Definition at line 70 of file qgsrasteridentifyresult.h.