Ilwis-Objects  1.0
GIS and Remote Sensing framework for data access and processing
 All Classes Functions Enumerations Pages
Public Member Functions | Static Public Member Functions | Friends | List of all members
Ilwis::NumericItem Class Reference
Inheritance diagram for Ilwis::NumericItem:
Ilwis::DomainItem Ilwis::Identity

Public Member Functions

 NumericItem ()
 
 NumericItem (const QString label, const NumericRange &vr)
 
bool isValid () const
 
QString name () const
 name returns the name of an object. All objects have names though names need not to be unique More...
 
DomainItemclone () const
 
IlwisTypes valueType () const
 
NumericRange range () const
 
void range (const NumericRange &valuerange)
 
void clear ()
 
- Public Member Functions inherited from Ilwis::DomainItem
 DomainItem (quint32 rawvalue=iUNDEF)
 
virtual void raw (quint32 r)
 
virtual quint32 raw () const
 
template<typename ItemType >
ItemType * toType ()
 
- Public Member Functions inherited from Ilwis::Identity
virtual void setCode (const QString &code)
 sets the code for this instance More...
 
QString code () const
 code returns the code of the identity. If no code is attached it will return sUNDEF ("?"). More...
 
quint64 id () const
 id returns a unsigned 64-bit number unique for the objects using the identity More...
 
void setName (const QString &n)
 setName sets the name of an object. All objects have names though names need not to be unique More...
 
virtual QString description () const
 
void setDescription (const QString &desc)
 

Static Public Member Functions

static Ilwis::NumericItemRangecreateRange ()
 
static IlwisTypes valueTypeS ()
 

Friends

class NumericItemRange
 

Additional Inherited Members

- Protected Member Functions inherited from Ilwis::Identity
 Identity (const QString &name, qint64 id=i64UNDEF, const QString &cde=sUNDEF, const QString &descr=sUNDEF)
 
void prepare (quint64 base=0)
 
void setId (quint64 newid)
 
- Protected Attributes inherited from Ilwis::DomainItem
quint32 _raw
 

Constructor & Destructor Documentation

NumericItem::NumericItem ( )

Constructor for an empty NumericItem

NumericItem::NumericItem ( const QString  label,
const NumericRange vr 
)

Constructor for a NumericItem with range vr.
vr must be valid. vr will be set as the range of this item.

Parameters
vrthe NumericRange of this item

Member Function Documentation

void NumericItem::clear ( )

Clears the item range on this item.

See Also
NumericRange
DomainItem * NumericItem::clone ( ) const
virtual

Clones this DomainItem
a clone should fully copy all the internal members of a item onto the new item

Returns
a clone of this

Implements Ilwis::DomainItem.

Ilwis::NumericItemRange * NumericItem::createRange ( )
static

Creates a empty new NumericItemRange and returns this

See Also
NumericItemRange
Returns
a empty new NumericItemRange
bool NumericItem::isValid ( ) const
virtual

Checks the validity of this DomainItem
when a item is valid depends on the implementation

Returns
true when valid

Implements Ilwis::DomainItem.

QString NumericItem::name ( ) const
virtual

name returns the name of an object. All objects have names though names need not to be unique

Returns

Reimplemented from Ilwis::Identity.

NumericRange NumericItem::range ( ) const

Query for the range of this NumericItem.
Returns the numeric range of this item, if the range is not set it will return null

Returns
the NumericRange of this
void NumericItem::range ( const NumericRange valuerange)

Sets a new NumericRange on this NumericItem.
The new range must be valid.

Parameters
valuerangethe new range

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