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

#include <coordinatedomain.h>

Inheritance diagram for Ilwis::CoordinateDomain:
Ilwis::Domain Ilwis::IlwisObject Ilwis::Identity

Public Member Functions

 CoordinateDomain ()
 
 CoordinateDomain (const Resource &resource)
 Constructor for a CoordinateDomain based on a Resource requires a valid name and id.
calls the parent constructor, which will check for a parent domain and remove this from its children.
after that it will check for:
if it is of the itCOVERAGE type both the coordinatesystem and the envelope will be set
if it is of the itCOORDSYSTEM type only the coordinatesystem will be set. More...
 
void setRange (Range *vr)
 
Domain::Containement contains (const QVariant &value) const
 
bool isCompatibleWith (const IDomain &dom) const
 
QVariant impliedValue (const QVariant &v) const
 
IlwisTypes valueType () const
 
IlwisTypes ilwisType () const
 
ICoordinateSystem coordinateSystem () const
 
void range (Range *)
 
- Public Member Functions inherited from Ilwis::Domain
 Domain ()
 
 Domain (const Resource &resource)
 
bool isStrict () const
 
void setStrict (bool yesno)
 
IDomain parent () const
 
virtual void setParent (const IDomain &dm)
 
template<typename T = Range>
QSharedPointer< T > range2range () const
 
- Public Member Functions inherited from Ilwis::IlwisObject
 IlwisObject ()
 
 IlwisObject (const Resource &source)
 
virtual bool prepare ()
 
void setName (const QString &nm)
 
void setCode (const QString &cd)
 
QDateTime modifiedTime () const
 returns the moment when the object was last modified More...
 
void setModifiedTime (const Time &time)
 sets the last modified time of the object More...
 
Time createTime () const
 
void setCreateTime (const Time &time)
 
virtual QString toString ()
 translates the defintion of an object to a string representation More...
 
virtual void setConnector (ConnectorInterface *connector, int mode=cmINPUT|cmOUTPUT)
 connects an ilwisobject to an input or output source More...
 
virtual bool isEqual (const Ilwis::IlwisObject *obj) const
 isEqual compares the properties of ilwisobjects to test for equality. More...
 
virtual bool isValid () const
 isValid Tests the validity of an ilwisobject. More...
 
virtual bool isReadOnly () const
 isReadOnly tells if the source/target of the ilwisobject maybe modifiable. More...
 
virtual void setReadOnly (bool yesno)
 
virtual bool hasChanged () const
 
virtual void changed (bool yesno)
 
virtual bool prepare (const QString &def)
 prepare More...
 
bool fromInternal (const QSqlRecord &rec)
 
bool isAnonymous () const
 
virtual Resource source (int mode=cmINPUT) const
 source the location of the source that represents the physical read origin of this object More...
 
virtual bool store (int mode=smMETADATA|smBINARYDATA)
 target the location of the source that represents the physical write target of this object More...
 
void connectTo (const QUrl &url, const QString &format, const QString &fnamespace, ConnectorMode cmode)
 
virtual IlwisObjectclone ()
 
virtual bool merge (const IlwisObject *obj, int options=0)
 
bool isSystemObject () const
 
bool isInternalObject () const
 
- Public Member Functions inherited from Ilwis::Identity
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...
 
virtual QString name () const
 name returns the name of an object. All objects have names though names need not to be unique 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)
 

Protected Member Functions

SPRange getRange () const
 
- Protected Member Functions inherited from Ilwis::Domain
void addChildDomain (quint64 idchild)
 
bool removeChildDomain (quint64 idchild)
 
- Protected Member Functions inherited from Ilwis::IlwisObject
QScopedPointer
< ConnectorInterface > & 
connector (int mode=cmINPUT|cmOUTPUT)
 
const QScopedPointer
< ConnectorInterface > & 
connector (int mode=cmINPUT|cmOUTPUT) const
 
bool setValid (bool yesno)
 
void copyTo (IlwisObject *obj)
 
- 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)
 

Additional Inherited Members

- Public Types inherited from Ilwis::Domain
enum  Containement { cSELF =1, cPARENT =2, cDECLARED =3, cNONE =0 }
 
- Static Public Member Functions inherited from Ilwis::Domain
static IlwisTypes ilwType (const QVariant &v)
 
static IlwisTypes ilwType (const QString &impliedValue)
 
- Protected Attributes inherited from Ilwis::Domain
std::map< quint64, quint32 > _childDomains
 

Detailed Description

The CoordinateDomain class implements a coordinate based type of domain all coordinates are in x y z unless specified otherwise

Constructor & Destructor Documentation

CoordinateDomain::CoordinateDomain ( )

Constructor for an empty CoordinateDomain

CoordinateDomain::CoordinateDomain ( const Resource resource)

Constructor for a CoordinateDomain based on a Resource requires a valid name and id.
calls the parent constructor, which will check for a parent domain and remove this from its children.
after that it will check for:
if it is of the itCOVERAGE type both the coordinatesystem and the envelope will be set
if it is of the itCOORDSYSTEM type only the coordinatesystem will be set.

See Also
Resource
Domain
IlwisObject
Parameters
resourceThe Resource

Member Function Documentation

Domain::Containement CoordinateDomain::contains ( const QVariant &  value) const
virtual

Checks if this domain contains a certain coordinate can both be 2D and 3D
2D -> row col
3D -> row col height

Parameters
valueThe coordinate to be checked
Returns
cSELF if the coordinate is contained in this domain or cNONE if it is not

Implements Ilwis::Domain.

ICoordinateSystem CoordinateDomain::coordinateSystem ( ) const

Query to the ICoordinateSystem of this domain
can be null when it is not yet set

Returns
the ICoordinateSystem
IlwisTypes CoordinateDomain::ilwisType ( ) const
virtual

Gives the IlwisTypes of this object

See Also
IlwisObject
Returns
the IlwisTypes of this IlwisObject

Implements Ilwis::IlwisObject.

QVariant CoordinateDomain::impliedValue ( const QVariant &  v) const
virtual

Query to the value of this coordinate variant to a string
prints the coordinate in x y z

Parameters
vThe coordinate in Qvariant form
Returns
The coordinate in String form

Reimplemented from Ilwis::Domain.

bool CoordinateDomain::isCompatibleWith ( const IDomain dom) const
virtual

Checks if this domain is compatible with another domain.
it is not compatible if the other domain is not valid,or when the other is not a CoordinateDomain
compatibility requires both to have the same coodinate system.

Parameters
domThe other domain
Returns
True when compatible

Implements Ilwis::Domain.

void CoordinateDomain::range ( Range )
virtual

empty function only here to fill the interface

Implements Ilwis::Domain.

void CoordinateDomain::setRange ( Range vr)

Changes the range of this domain
copies this pointer to the range.

Parameters
vrthe new range

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