QGIS/python/core/raster/qgsrasterminmaxorigin.sip.in

179 lines
4.1 KiB
Plaintext
Raw Normal View History

2017-06-01 15:39:31 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/raster/qgsrasterminmaxorigin.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsRasterMinMaxOrigin
{
2017-06-01 15:39:31 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
This class describes the origin of min/max values. It does not store by
itself the min/max values.
2017-06-01 15:39:31 +02:00
.. versionadded:: 3.0
%End
%TypeHeaderCode
2017-06-01 15:39:31 +02:00
#include "qgsrasterminmaxorigin.h"
%End
public:
2017-06-01 15:39:31 +02:00
static const double CUMULATIVE_CUT_LOWER;
static const double CUMULATIVE_CUT_UPPER;
static const double DEFAULT_STDDEV_FACTOR;
enum Limits
{
2017-06-02 12:03:19 +02:00
None /PyName=None_/,
MinMax,
StdDev,
CumulativeCut
};
enum Extent
{
2017-06-01 15:39:31 +02:00
//! Whole
WholeRaster,
//! Current
CurrentCanvas,
//! Constantly
UpdatedCanvas
};
enum StatAccuracy
{
2017-06-01 15:39:31 +02:00
//! Exact
Exact,
//! Approximated
Estimated
};
QgsRasterMinMaxOrigin();
2017-06-01 15:39:31 +02:00
%Docstring
Default constructor.
%End
bool operator ==( const QgsRasterMinMaxOrigin &other ) const;
2017-06-02 12:03:19 +02:00
QgsRasterMinMaxOrigin::Limits limits() const;
2017-06-01 15:39:31 +02:00
%Docstring
Return limits.
%End
2017-06-02 12:03:19 +02:00
QgsRasterMinMaxOrigin::Extent extent() const;
2017-06-01 15:39:31 +02:00
%Docstring
Return extent.
%End
2017-06-02 12:03:19 +02:00
QgsRasterMinMaxOrigin::StatAccuracy statAccuracy() const;
2017-06-01 15:39:31 +02:00
%Docstring
Return statistic accuracy.
%End
double cumulativeCutLower() const;
2017-06-01 15:39:31 +02:00
%Docstring
Return lower bound of cumulative cut method (between 0 and 1).
%End
double cumulativeCutUpper() const;
2017-06-01 15:39:31 +02:00
%Docstring
Return upper bound of cumulative cut method (between 0 and 1).
%End
double stdDevFactor() const;
2017-06-01 15:39:31 +02:00
%Docstring
Return factor f so that the min/max range is [ mean - f * stddev , mean + f * stddev ]
%End
2017-06-02 12:03:19 +02:00
void setLimits( QgsRasterMinMaxOrigin::Limits limits );
2017-06-01 15:39:31 +02:00
%Docstring
Set limits.
%End
2017-06-02 12:03:19 +02:00
void setExtent( QgsRasterMinMaxOrigin::Extent extent );
2017-06-01 15:39:31 +02:00
%Docstring
Set extent.
%End
2017-06-02 12:03:19 +02:00
void setStatAccuracy( QgsRasterMinMaxOrigin::StatAccuracy accuracy );
2017-06-01 15:39:31 +02:00
%Docstring
Set statistics accuracy.
%End
2017-06-01 15:39:31 +02:00
void setCumulativeCutLower( double val );
%Docstring
Set lower bound of cumulative cut method (between 0 and 1).
%End
2017-06-01 15:39:31 +02:00
void setCumulativeCutUpper( double val );
%Docstring
Set upper bound of cumulative cut method (between 0 and 1).
%End
2017-06-01 15:39:31 +02:00
void setStdDevFactor( double val );
%Docstring
Set factor f so that the min/max range is [ mean - f * stddev , mean + f * stddev ]
%End
void writeXml( QDomDocument &doc, QDomElement &parentElem ) const;
2017-06-01 15:39:31 +02:00
%Docstring
Serialize object.
%End
void readXml( const QDomElement &elem );
2017-06-01 15:39:31 +02:00
%Docstring
Deserialize object.
%End
2017-06-01 15:39:31 +02:00
static QString limitsString( Limits limits );
%Docstring
Return a string to serialize Limits
%End
static Limits limitsFromString( const QString &limits );
%Docstring
Deserialize Limits
%End
2017-06-02 12:03:19 +02:00
static QString extentString( QgsRasterMinMaxOrigin::Extent extent );
2017-06-01 15:39:31 +02:00
%Docstring
Return a string to serialize Extent
%End
2017-06-02 12:03:19 +02:00
static QgsRasterMinMaxOrigin::Extent extentFromString( const QString &extent );
2017-06-01 15:39:31 +02:00
%Docstring
Deserialize Extent
%End
2017-06-02 12:03:19 +02:00
static QString statAccuracyString( QgsRasterMinMaxOrigin::StatAccuracy accuracy );
2017-06-01 15:39:31 +02:00
%Docstring
Return a string to serialize StatAccuracy
%End
2017-06-02 12:03:19 +02:00
static QgsRasterMinMaxOrigin::StatAccuracy statAccuracyFromString( const QString &accuracy );
2017-06-01 15:39:31 +02:00
%Docstring
Deserialize StatAccuracy
%End
};
2017-06-01 15:39:31 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/raster/qgsrasterminmaxorigin.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/