QGIS/python/core/auto_generated/raster/qgsrasteridentifyresult.sip.in

94 lines
2.5 KiB
Plaintext
Raw Normal View History

2017-06-01 15:39:31 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/raster/qgsrasteridentifyresult.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
2013-04-08 18:25:44 +02:00
class QgsRasterIdentifyResult
{
2017-06-01 15:39:31 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Raster identify results container.
2017-06-01 15:39:31 +02:00
%End
2013-04-08 18:25:44 +02:00
%TypeHeaderCode
2017-06-01 15:39:31 +02:00
#include "qgsrasteridentifyresult.h"
2013-04-08 18:25:44 +02:00
%End
public:
2013-04-08 18:25:44 +02:00
QgsRasterIdentifyResult();
%Docstring
2017-12-15 10:36:55 -04:00
Constructor for QgsRasterIdentifyResult.
%End
2013-04-08 18:25:44 +02:00
QgsRasterIdentifyResult( QgsRaster::IdentifyFormat format, const QMap<int, QVariant> &results );
2017-06-01 15:39:31 +02:00
%Docstring
Constructor. Creates valid result.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param format: the result format
:param results: the results
2017-06-01 15:39:31 +02:00
%End
2013-04-08 18:25:44 +02:00
QgsRasterIdentifyResult( const QgsError &error );
2017-06-01 15:39:31 +02:00
%Docstring
Constructor. Creates invalid result with error.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param error: the error
2017-06-01 15:39:31 +02:00
%End
2013-04-08 18:25:44 +02:00
virtual ~QgsRasterIdentifyResult();
bool isValid() const;
2017-06-01 15:39:31 +02:00
%Docstring
Returns true if valid
2017-06-01 15:39:31 +02:00
%End
2013-04-08 18:25:44 +02:00
QgsRaster::IdentifyFormat format() const;
2017-06-01 15:39:31 +02:00
%Docstring
Returns the results format.
2017-06-01 15:39:31 +02:00
%End
2013-04-08 18:25:44 +02:00
QMap<int, QVariant> results() const;
2017-06-01 15:39:31 +02:00
%Docstring
Returns the identify results. Results are different for each format:
2017-12-15 10:36:55 -04:00
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).
2017-06-01 15:39:31 +02:00
%End
2013-04-08 18:25:44 +02:00
void setParams( const QMap<QString, QVariant> &params );
2017-06-01 15:39:31 +02:00
%Docstring
Sets map of optional parameters
2017-06-01 15:39:31 +02:00
%End
2013-04-08 18:25:44 +02:00
QMap<QString, QVariant> params() const;
2017-06-01 15:39:31 +02:00
%Docstring
Gets map of optional parameters
2017-06-01 15:39:31 +02:00
%End
2013-04-08 18:25:44 +02:00
QgsError error() const;
2017-06-01 15:39:31 +02:00
%Docstring
Returns the last error
2017-06-01 15:39:31 +02:00
%End
2013-04-08 18:25:44 +02:00
void setError( const QgsError &error );
2017-06-01 15:39:31 +02:00
%Docstring
Sets the last error
2017-06-01 15:39:31 +02:00
%End
2013-04-08 18:25:44 +02:00
};
2017-06-01 15:39:31 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/raster/qgsrasteridentifyresult.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/