mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-03 00:14:12 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			40 lines
		
	
	
		
			975 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			975 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
typedef QList<QgsRasterRange> QgsRasterRangeList;
 | 
						|
 | 
						|
/** \ingroup core
 | 
						|
 * Raster values range container. Represents range of values between min and max
 | 
						|
 * including min and max value.
 | 
						|
 */
 | 
						|
class QgsRasterRange
 | 
						|
{
 | 
						|
%TypeHeaderCode
 | 
						|
#include <qgsrasterrange.h>
 | 
						|
%End
 | 
						|
 | 
						|
  public:
 | 
						|
    /** \brief Constructor.
 | 
						|
     */
 | 
						|
    QgsRasterRange();
 | 
						|
 | 
						|
    /** \brief Constructor
 | 
						|
     *  @param theMin minimum value
 | 
						|
     *  @param theMax max value
 | 
						|
     */
 | 
						|
    QgsRasterRange( double theMin, double theMax );
 | 
						|
 | 
						|
    double min() const;
 | 
						|
    double max() const;
 | 
						|
 | 
						|
    double setMin( double theMin );
 | 
						|
    double setMax( double theMax );
 | 
						|
 | 
						|
    bool operator==( QgsRasterRange o ) const;
 | 
						|
 | 
						|
    /** \brief Test if 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
 | 
						|
     *  @note not available in python bindings
 | 
						|
     */
 | 
						|
    static bool contains( double value, const QgsRasterRangeList &rangeList );
 | 
						|
};
 |