TerraLib 4.1
TeSTInstance Class Reference

A class that represents an instance in a time of a spatial object. More...

#include <TeSTInstance.h>

Inheritance diagram for TeSTInstance:
TeBaseSTInstance< TeMultiGeometry, TeTimeInterval > TeSTStatInstance

List of all members.

Public Member Functions

 TeSTInstance ()
 Constructor.
 TeSTInstance (const string &object_id, TeProperty &prop)
 Deprecated: Constructor.
 TeSTInstance (const string &object_id, vector< string > &prop, TeAttributeList *attList=0, const int &s=-1)
 Constructor.
 TeSTInstance (const string &object_id, const TeMultiGeometry &geometries, const TeTimeInterval &time, const int &s=-1)
 Constructor.
 TeSTInstance (const string &object_id, vector< string > &prop, TeAttributeList *attList, TeMultiGeometry &geometries, int &slice, TeTimeInterval &time)
 Constructor.
virtual void clear ()
 Clear.
virtual bool isTimeValid ()
 Verifies if the its time is valid.
bool hasPolygons ()
 Deprecated: Verifies if the instance has polygons.
bool hasLines ()
 Deprecated: Verifies if the instance has lines.
bool hasPoints ()
 Deprecated: Verifies if the instance has points.
bool hasCells ()
 Deprecated: Verifies if the instance has cells.
bool hasTexts ()
 Deprecated: Return true if this has texts.
bool getGeometry (TePolygonSet &result)
 Deprecated: Gets a copy of the ST instance polygon set.
bool getGeometry (TeLineSet &result)
 Deprecated: Gets a copy of the ST instance line set.
bool getGeometry (TePointSet &result)
 Deprecated: Gets a copy of the ST instance point set.
bool getGeometry (TeCellSet &result)
 Deprecated: Gets a copy of the ST instance cell set.
bool getGeometry (TeTextSet &result)
 Deprecated: Gets a copy of the ST instance text set.
bool getGeometry (vector< TeGeometry * > &result)
 Deprecated: Gets a copy of the ST instance geometry vector.
bool getGeometry (TeMultiGeometry &result)
 Deprecated: Gets a copy of the ST instance multi geometry.
TePolygonSetgetPolygons ()
 Deprecated: Get a reference to the ST instance polygon geometry.
TeLineSetgetLines ()
 Deprecated: Get a reference to the ST instance line geometry.
TePointSetgetPoints ()
 Deprecated: Get a reference to the ST instance point geometry.
TeCellSetgetCells ()
 Deprecated: Get a reference to the ST instance cell geometry.
TeTextSetgetTexts ()
 Deprecated: Get a reference to the ST instance text geometry.
void setGeometry (const TePolygonSet &result)
 Deprecated: Sets a polygon set to the instance.
void setGeometry (const TeLineSet &result)
 Deprecated: Sets a line set to the instance.
void setGeometry (const TePointSet &result)
 Deprecated: Sets a point set to the instance.
void setGeometry (const TeCellSet &result)
 Deprecated: Sets a cell set to the instance.
void setGeometry (const TeTextSet &result)
 Deprecated: Sets a text set to the instance.
void setGeometry (const TeMultiGeometry &result)
 Deprecated: Sets a text set to the instance.
bool addGeometry (const TePolygon &poly)
 Deprecated: Adds a polygon to the instance.
bool addGeometry (const TeLine2D &line)
 Deprecated: Adds a line to the instance.
bool addGeometry (const TePoint &point)
 Deprecated: Adds a point to the instance.
bool addGeometry (const TeCell &cell)
 Deprecated: Adds a cell to the instance.
bool addGeometry (const TeText &cell)
 Deprecated: Adds a text to the instance.
virtual void centroid (TeCoord2D &centroid, TeGeomRep geomRep=TeGEOMETRYNONE)
 Returns a centroid of a geometry representation.
virtual void area (double &a, TeGeomRep geomRep=TeGEOMETRYNONE)
 Returns an area of a geometry representation.
virtual TeTimeInterval timeInterval ()
 Deprecated: Returns the valid time.
virtual void timeInterval (const TeTimeInterval &t)
 Deprecated: Sets the valid time interval.
virtual string getInitialDateTime (const string &mask="YYYYsMMsDDsHHsmmsSS")
 Returns the initial time (as a string) of the valid time interval.
virtual string getFinalDateTime (const string &mask="YYYYsMMsDDsHHsmmsSS")
 Returns the final time (as a string) of the valid time interval.

Detailed Description

A class that represents an instance in a time of a spatial object.

A spatio-temporal instance (STInstance) is composite of an attribute set and geometries of a spatial element or object that are valid in a specific time. This class specializes the base class TeBaseSTInstance representing the geometries as multigeometries (TeMultiGeometry) and the valid time as a time interval (TeTimeInterval).

See also:
TeBaseSTInstance TeMultiGeometry TeTimeInterval
Examples:

createSTElementSetFromLayer.cpp, createSTElementSetFromShapeFile.cpp, createSTElementSetFromTheme.cpp, proxMatrixAndSpatialStatistics.cpp, querierFromLayer.cpp, querierFromTheme.cpp, querierGroupChronon.cpp, querierGroupElement.cpp, querierGroupSpatialRest.cpp, querierWithSpatialRestBox.cpp, and querierWithSpatialRestGeometry.cpp.


Constructor & Destructor Documentation

TeSTInstance::TeSTInstance ( ) [inline]

Constructor.

TeSTInstance::TeSTInstance ( const string object_id,
TeProperty prop 
)

Deprecated: Constructor.

TeSTInstance::TeSTInstance ( const string object_id,
vector< string > &  prop,
TeAttributeList attList = 0,
const int &  s = -1 
) [inline]

Constructor.

TeSTInstance::TeSTInstance ( const string object_id,
const TeMultiGeometry geometries,
const TeTimeInterval time,
const int &  s = -1 
) [inline]

Constructor.

TeSTInstance::TeSTInstance ( const string object_id,
vector< string > &  prop,
TeAttributeList attList,
TeMultiGeometry geometries,
int &  slice,
TeTimeInterval time 
) [inline]

Constructor.


Member Function Documentation

bool TeSTInstance::addGeometry ( const TePolygon poly)

Deprecated: Adds a polygon to the instance.

bool TeSTInstance::addGeometry ( const TeLine2D line)

Deprecated: Adds a line to the instance.

bool TeSTInstance::addGeometry ( const TePoint point)

Deprecated: Adds a point to the instance.

bool TeSTInstance::addGeometry ( const TeCell cell)

Deprecated: Adds a cell to the instance.

bool TeSTInstance::addGeometry ( const TeText cell)

Deprecated: Adds a text to the instance.

void TeSTInstance::area ( double &  a,
TeGeomRep  geomRep = TeGEOMETRYNONE 
) [virtual]

Returns an area of a geometry representation.

void TeSTInstance::centroid ( TeCoord2D centroid,
TeGeomRep  geomRep = TeGEOMETRYNONE 
) [virtual]

Returns a centroid of a geometry representation.

void TeSTInstance::clear ( void  ) [virtual]
TeCellSet & TeSTInstance::getCells ( )

Deprecated: Get a reference to the ST instance cell geometry.

virtual string TeSTInstance::getFinalDateTime ( const string mask = "YYYYsMMsDDsHHsmmsSS") [inline, virtual]

Returns the final time (as a string) of the valid time interval.

bool TeSTInstance::getGeometry ( TePolygonSet result)

Deprecated: Gets a copy of the ST instance polygon set.

Examples:
createSTElementSetFromTheme.cpp, querierFromTheme.cpp, querierGroupSpatialRest.cpp, and querierWithSpatialRestGeometry.cpp.
bool TeSTInstance::getGeometry ( TeLineSet result)

Deprecated: Gets a copy of the ST instance line set.

bool TeSTInstance::getGeometry ( TePointSet result)

Deprecated: Gets a copy of the ST instance point set.

bool TeSTInstance::getGeometry ( TeCellSet result)

Deprecated: Gets a copy of the ST instance cell set.

bool TeSTInstance::getGeometry ( TeTextSet result)

Deprecated: Gets a copy of the ST instance text set.

bool TeSTInstance::getGeometry ( vector< TeGeometry * > &  result)

Deprecated: Gets a copy of the ST instance geometry vector.

bool TeSTInstance::getGeometry ( TeMultiGeometry result)

Deprecated: Gets a copy of the ST instance multi geometry.

virtual string TeSTInstance::getInitialDateTime ( const string mask = "YYYYsMMsDDsHHsmmsSS") [inline, virtual]

Returns the initial time (as a string) of the valid time interval.

Examples:
querierWithSpatialRestGeometry.cpp.
TeLineSet & TeSTInstance::getLines ( )

Deprecated: Get a reference to the ST instance line geometry.

Examples:
createSTElementSetFromShapeFile.cpp.
TePointSet & TeSTInstance::getPoints ( )

Deprecated: Get a reference to the ST instance point geometry.

Examples:
createSTElementSetFromShapeFile.cpp.
TePolygonSet & TeSTInstance::getPolygons ( )

Deprecated: Get a reference to the ST instance polygon geometry.

Examples:
createSTElementSetFromShapeFile.cpp.
TeTextSet & TeSTInstance::getTexts ( )

Deprecated: Get a reference to the ST instance text geometry.

bool TeSTInstance::hasCells ( )

Deprecated: Verifies if the instance has cells.

bool TeSTInstance::hasLines ( )

Deprecated: Verifies if the instance has lines.

Examples:
createSTElementSetFromShapeFile.cpp.
bool TeSTInstance::hasPoints ( )

Deprecated: Verifies if the instance has points.

Examples:
createSTElementSetFromShapeFile.cpp, createSTElementSetFromTheme.cpp, and querierFromTheme.cpp.
bool TeSTInstance::hasPolygons ( )

Deprecated: Verifies if the instance has polygons.

Examples:
createSTElementSetFromShapeFile.cpp, and querierFromTheme.cpp.
bool TeSTInstance::hasTexts ( )

Deprecated: Return true if this has texts.

bool TeSTInstance::isTimeValid ( ) [virtual]

Verifies if the its time is valid.

Reimplemented from TeBaseSTInstance< TeMultiGeometry, TeTimeInterval >.

void TeSTInstance::setGeometry ( const TeCellSet result)

Deprecated: Sets a cell set to the instance.

void TeSTInstance::setGeometry ( const TeMultiGeometry result) [virtual]

Deprecated: Sets a text set to the instance.

Reimplemented from TeBaseSTInstance< TeMultiGeometry, TeTimeInterval >.

void TeSTInstance::setGeometry ( const TeLineSet result)

Deprecated: Sets a line set to the instance.

void TeSTInstance::setGeometry ( const TeTextSet result)

Deprecated: Sets a text set to the instance.

void TeSTInstance::setGeometry ( const TePointSet result)

Deprecated: Sets a point set to the instance.

void TeSTInstance::setGeometry ( const TePolygonSet result)

Deprecated: Sets a polygon set to the instance.

virtual void TeSTInstance::timeInterval ( const TeTimeInterval t) [inline, virtual]

Deprecated: Sets the valid time interval.

virtual TeTimeInterval TeSTInstance::timeInterval ( ) [inline, virtual]

Deprecated: Returns the valid time.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines