Ilwis-Objects
1.0
GIS and Remote Sensing framework for data access and processing
|
The Range class base interface for all objects that need to define a range of values. More...
#include <range.h>
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 Range * | clone () 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 |
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 .
|
pure virtual |
copies the range to a new instance. This pointer has to be deleted by the caller
Implemented in Ilwis::TimeInterval, Ilwis::NamedIdentifierRange, Ilwis::Box< T >, Ilwis::Box< Ilwis::Pixel >, Ilwis::Box< Ilwis::Coordinate >, Ilwis::NumericItemRange, Ilwis::IndexedIdentifierRange, Ilwis::ContinousColorRange, and Ilwis::NumericRange.
|
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
Reimplemented in Ilwis::ValueRange< T >, and Ilwis::NumericRange.
|
pure virtual |
determines the validity of a range. This method must be implemented by each deravative
Implemented in Ilwis::TimeInterval, Ilwis::NamedIdentifierRange, Ilwis::Box< T >, Ilwis::Box< Ilwis::Pixel >, Ilwis::Box< Ilwis::Coordinate >, Ilwis::ItemRange, Ilwis::ColorPalette, Ilwis::IndexedIdentifierRange, Ilwis::NumericItemRange, Ilwis::ContinousColorRange, Ilwis::NumericRange, and Ilwis::ValueRange< T >.
|
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
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.
|
virtual |
valueType returns the type of values contained in the range
Reimplemented in Ilwis::Box< T >, Ilwis::Box< Ilwis::Pixel >, Ilwis::Box< Ilwis::Coordinate >, Ilwis::ColorPalette, and Ilwis::ContinousColorRange.