Ilwis-Objects  1.0
GIS and Remote Sensing framework for data access and processing
 All Classes Functions Enumerations Pages
Public Member Functions | List of all members
Ilwis::ValueRange< T > Class Template Reference
Inheritance diagram for Ilwis::ValueRange< T >:
Ilwis::Range

Public Member Functions

 ValueRange (T mi, T ma)
 
 ValueRange (const ValueRange< T > &vr)
 
bool isValid () const
 
bool contains (T v, bool inclusive=true) const
 
max () const
 
min () const
 
void setMin (T v)
 
void setMax (T v)
 
ValueRangeoperator+= (T v)
 
bool operator== (const ValueRange &vr)
 
QString toString () const
 
void set (const ValueRange< T > &vr)
 
IlwisTypes findBaseType () const
 
IlwisTypes determineType () const
 determineType determines the minimal range needed type for this range. More...
 
- Public Member Functions inherited from Ilwis::Range
virtual IlwisTypes valueType () const
 valueType returns the type of values contained in the range More...
 
virtual Rangeclone () const =0
 
template<typename T >
T * merge (const QSharedPointer< T > &range1, const QSharedPointer< T > &range2, RenumberMap *rnm=0)
 
virtual QVariant ensure (const QVariant &v, bool inclusive=true) const
 
virtual bool contains (const QVariant &v, bool inclusive=true) const =0
 
virtual bool isContinuous () const
 
void interpolation (const QString &ip)
 
virtual QString interpolation () const
 
virtual QVariant impliedValue (const QVariant &v) const
 

Additional Inherited Members

- Protected Attributes inherited from Ilwis::Range
IlwisTypes _vt
 
QString _interpolation
 

Member Function Documentation

template<class T = double>
IlwisTypes Ilwis::ValueRange< T >::determineType ( ) const
inlinevirtual

determineType determines the minimal range needed type for this range.

*For example a range of numbers can be in the 32 bits range while the range contains only the numbers between 0-255, so the minimal range would be itUINT8

Returns
an ilwistype

Reimplemented from Ilwis::Range.

template<class T = double>
bool Ilwis::ValueRange< T >::isValid ( ) const
inlinevirtual

determines the validity of a range. This method must be implemented by each deravative

Returns
true for a valid range

Implements Ilwis::Range.

template<class T = double>
QString Ilwis::ValueRange< T >::toString ( ) const
inlinevirtual

translates the string into a string representation. As each type of range has a different string representation this method has to be reimplemented by each derivative

Returns
a string

Implements Ilwis::Range.


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