QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Public Member Functions | Static Public Member Functions | List of all members
QgsRasterRange Class Reference

Raster values range container. More...

#include <qgsrasterrange.h>

Public Member Functions

 QgsRasterRange ()
 Constructor. More...
 
 QgsRasterRange (double theMin, double theMax)
 Constructor. More...
 
double max () const
 
double min () const
 
bool operator== (QgsRasterRange o) const
 
double setMax (double theMax)
 
double setMin (double theMin)
 

Static Public Member Functions

static bool contains (double value, const QgsRasterRangeList &rangeList)
 Test if value is within the list of ranges. More...
 

Detailed Description

Raster values range container.

Represents range of values between min and max including min and max value.

Definition at line 31 of file qgsrasterrange.h.

Constructor & Destructor Documentation

◆ QgsRasterRange() [1/2]

QgsRasterRange::QgsRasterRange ( )

Constructor.

Definition at line 22 of file qgsrasterrange.cpp.

◆ QgsRasterRange() [2/2]

QgsRasterRange::QgsRasterRange ( double  theMin,
double  theMax 
)

Constructor.

Parameters
theMinminimum value
theMaxmax value

Definition at line 28 of file qgsrasterrange.cpp.

Member Function Documentation

◆ contains()

bool QgsRasterRange::contains ( double  value,
const QgsRasterRangeList rangeList 
)
static

Test if value is within the list of ranges.

Parameters
valuevalue
rangeListlist of ranges
Returns
true if value is in at least one of ranges
Note
not available in python bindings

Definition at line 34 of file qgsrasterrange.cpp.

◆ max()

double QgsRasterRange::max ( ) const
inline

Definition at line 45 of file qgsrasterrange.h.

◆ min()

double QgsRasterRange::min ( ) const
inline

Definition at line 44 of file qgsrasterrange.h.

◆ operator==()

bool QgsRasterRange::operator== ( QgsRasterRange  o) const
inline

Definition at line 50 of file qgsrasterrange.h.

◆ setMax()

double QgsRasterRange::setMax ( double  theMax)
inline

Definition at line 48 of file qgsrasterrange.h.

◆ setMin()

double QgsRasterRange::setMin ( double  theMin)
inline

Definition at line 47 of file qgsrasterrange.h.


The documentation for this class was generated from the following files: