Ilwis-Objects  1.0
GIS and Remote Sensing framework for data access and processing
 All Classes Functions Enumerations Pages
Public Member Functions | Protected Attributes | List of all members
Ilwis::Range Class Referenceabstract

The Range class base interface for all objects that need to define a range of values. More...

#include <range.h>

Inheritance diagram for Ilwis::Range:
Ilwis::Box< Ilwis::Coordinate > Ilwis::Box< Ilwis::Pixel > Ilwis::Box< T > Ilwis::ColorRange Ilwis::ItemRange Ilwis::NumericRange Ilwis::ValueRange< T > Ilwis::ColorPalette Ilwis::ContinousColorRange Ilwis::ColorPalette Ilwis::IndexedIdentifierRange Ilwis::NamedIdentifierRange Ilwis::NumericItemRange Ilwis::TimeInterval Ilwis::ThematicRange

Public Member Functions

virtual bool isValid () const =0
 
virtual QString toString () const =0
 
virtual IlwisTypes valueType () const
 valueType returns the type of values contained in the range More...
 
virtual IlwisTypes determineType () const
 determineType determines the minimal range needed type for this 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
 

Protected Attributes

IlwisTypes _vt
 
QString _interpolation
 

Detailed Description

The Range class base interface for all objects that need to define a range of values.

*Examples of dervatives of this class are numerical ranges, thematical collections, time intervals. The class itself has not that usefull an interface but pointers to this class can be used as a *a general container for more specialized ranges .

Member Function Documentation

virtual Range* Ilwis::Range::clone ( ) const
pure virtual
virtual IlwisTypes Ilwis::Range::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 in Ilwis::ValueRange< T >, and Ilwis::NumericRange.

virtual bool Ilwis::Range::isValid ( ) const
pure virtual
virtual QString Ilwis::Range::toString ( ) const
pure virtual

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

Implemented in Ilwis::Box< T >, Ilwis::Box< Ilwis::Pixel >, Ilwis::Box< Ilwis::Coordinate >, Ilwis::NamedIdentifierRange, Ilwis::IndexedIdentifierRange, Ilwis::ValueRange< T >, Ilwis::NumericRange, Ilwis::NumericItemRange, and Ilwis::ContinousColorRange.

IlwisTypes Range::valueType ( ) const
virtual

valueType returns the type of values contained in the range

Returns
an ilwistype

Reimplemented in Ilwis::Box< T >, Ilwis::Box< Ilwis::Pixel >, Ilwis::Box< Ilwis::Coordinate >, Ilwis::ColorPalette, and Ilwis::ContinousColorRange.


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