QGIS API Documentation  2.6.0-Brighton
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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.
 QgsRasterRange (double theMin, double theMax)
 Constructor.
 ~QgsRasterRange ()
double min () const
double max () const
double setMin (double theMin)
double setMax (double theMax)
bool operator== (const QgsRasterRange &o) const

Static Public Member Functions

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

Detailed Description

Raster values range container.

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

Constructor & Destructor Documentation

QgsRasterRange::QgsRasterRange ( )

Constructor.

QgsRasterRange::QgsRasterRange ( double  theMin,
double  theMax 
)

Constructor.

Parameters
theMinminimum value
theMaxmax value
QgsRasterRange::~QgsRasterRange ( )

Member Function Documentation

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
double QgsRasterRange::max ( ) const
inline
double QgsRasterRange::min ( ) const
inline
bool QgsRasterRange::operator== ( const QgsRasterRange o) const
inline
double QgsRasterRange::setMax ( double  theMax)
inline
double QgsRasterRange::setMin ( double  theMin)
inline

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