/************************************************************************ * This file has been generated automatically from * * * * src/core/raster/qgsrasterrange.h * * * * Do not edit manually ! Edit header and run scripts/sipify.pl again * ************************************************************************/ typedef QList QgsRasterRangeList; class QgsRasterRange { %Docstring Raster values range container. Represents range of values between min and max including min and max value. %End %TypeHeaderCode #include "qgsrasterrange.h" %End public: QgsRasterRange(); %Docstring Default constructor, both min and max value for the range will be set to NaN. %End QgsRasterRange( double min, double max ); %Docstring Constructor for a range with the given ``min`` and ``max`` values. %End double min() const; %Docstring Returns the minimum value for the range. .. seealso:: :py:func:`setMin` %End double max() const; %Docstring Returns the maximum value for the range. .. seealso:: :py:func:`setMax` %End double setMin( double min ); %Docstring Sets the minimum value for the range. .. seealso:: :py:func:`min` %End double setMax( double max ); %Docstring Sets the maximum value for the range. .. seealso:: :py:func:`max` %End bool operator==( QgsRasterRange o ) const; static bool contains( double value, const QgsRasterRangeList &rangeList ); %Docstring Tests if a ``value`` is within the list of ranges :param value: value :param rangeList: list of ranges :return: true if value is in at least one of ranges %End }; /************************************************************************ * This file has been generated automatically from * * * * src/core/raster/qgsrasterrange.h * * * * Do not edit manually ! Edit header and run scripts/sipify.pl again * ************************************************************************/