| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- Class List
- Class Index
- Class Hierarchy
- Class Members

Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType > Class Template Reference

A abstract class that represents a set of spatial temporal instances. More...

`#include <TeBaseSTInstanceSet.h>`

List of all members.

## Classes

class | propertyIterator
| This class implements an iterator concept over the instance set. More...

## Public Types

typedef vector< InstanceType > ::iterator | iterator
| An iterator that traverse each instance in the set.

## Public Member Functions

| TeBaseSTInstanceSet ()
| Constructor. It does not initialize the rTree.
| TeBaseSTInstanceSet (TeTheme *theme, const TeAttributeList &attrList=TeAttributeList())
| Constructor. It initializes the rTree based on theme box.
| TeBaseSTInstanceSet (TeLayer *layer, const TeAttributeList &attrList=TeAttributeList())
| Constructor. It initializes the rTree based on layer box.
| TeBaseSTInstanceSet (const TeBox &box, const TeAttributeList &attrList=TeAttributeList())
| Constructor. It initializes the rTree based on the given box.
| TeBaseSTInstanceSet (const TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType > &other)
| Copy constructor.
virtual | ~TeBaseSTInstanceSet ()
| Destructor.
virtual TeBaseSTInstanceSet & | operator= (const TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType > &other)
| Assignment operator.
virtual TimeType | getMinTime ()
| Gets minimal time.
virtual void | setMinTime (TimeType &t)
| Sets minimal time.
virtual TimeType | getMaxTime ()
| Gets maximal time.
virtual void | setMaxTime (TimeType &t)
| Sets maximal time.
virtual TeAttributeList & | getAttributeList ()
| Gets the attribute list, that is, the description of all attributes.
virtual void | setAttributeList (const TeAttributeList &attrs)
| Sets the attribute list, that is, the description of all attributes.
virtual int | getAttributeIndex (const string &attrName)
| Returns the index of an attribute named "attrName".
virtual TeTheme * | getTheme ()
| Gets theme pointer.
virtual void | setTheme (TeTheme *t)
| Sets theme pointer.
TeTheme * | theme ()
| Deprecated: Returns a theme pointer.
virtual TeLayer * | getLayer ()
| Gets layer pointer.
virtual void | setLayer (TeLayer *l)
| Sets layer pointer.
virtual vector< InstanceType > & | getSTInstances ()
| Gets a reference to the instance set.
virtual InstanceType * | getSTInstance (const unsigned int &index)
| Gets a pointer to the index-th ST instance.
virtual InstanceType * | getSTInstance (const string &objectId, const int &slice=-1)
| Gets a pointer to a ST instance of an object in a specific slice.
virtual InstanceType * | getSTInstance (const string &objectId, TimeType &time, const int &slice=-1)
| Gets a pointer to a ST instance of an object in a specific time and slice.
virtual void | getSTInstances (vector< InstanceType * > &set, const string &objectId, const int &slice=-1)
| Gets pointers to all ST instances of a specific object in a specific slice.
virtual void | getSTInstances (vector< InstanceType * > &set, const string &objectId, TimeType &time, const int &slice=-1)
| Gets pointers to all ST instances of a specific object in a specific time and slice.
virtual void | getSTInstances (vector< InstanceType * > &set, TimeType &time, const int &slice=-1)
| ! Gets pointers to all ST instances of a specific time
virtual void | getSTInstances (vector< InstanceType * > &set, const int &slice)
| Gets pointers to all ST instances of a specific slice.
virtual bool | insertSTInstance (InstanceType &object)
| Inserts a new ST instance in the set.
virtual int | numSTInstance ()
| Returns the number of instances.
virtual int | numSTInstance (const string &objectId)
| Returns the number of instances of an object or element.
virtual int | numSTInstance (const int &slice)
| Returns the number of instances in a specific slice.
virtual int | numSTInstance (TimeType &time)
| Returns the number of instances in a specific time.
virtual int | numElements ()
| Returns the number of elements or objects in the set.
virtual bool | setGeometry (const string &object_id, GeometryType &geom, const int &slice=-1)
| Sets a geometry of an object in a specific slice.
virtual bool | setGeometry (const string &object_id, GeometryType &geom, TimeType &time, const int &slice=-1)
| Sets a geometry of an object in a specific time and slice.
virtual bool | getGeometry (const string &object_id, GeometryType &geom, const int &slice=-1)
| Gets the geometry of an object in a specific slice.
virtual bool | getGeometry (const string &object_id, GeometryType &geom, TimeType &time, const int &slice=-1)
| Gets the geometry of an object in a specific time and slice.
virtual bool | getPropertyVector (const string &object_id, TePropertyVector &propVec, const int &slice=-1)
| Gets a vector of attributes or properties of a object that is valid in a slice.
virtual bool | getPropertyVector (const string &object_id, TePropertyVector &propVec, TimeType &time, const int &slice=-1)
| Gets a vector of attributes or properties of a object that is valid in a time and slice.
virtual bool | setProperties (const string &object_id, const vector< string > &values, const int &slice=-1)
| Sets a vector of attribute values of a object that is valid in a slice.
virtual bool | setProperties (const string &object_id, const vector< string > &values, TimeType &time, const int &slice=-1)
| Sets a vector of attribute values of a object that is valid in a time and slice.
virtual bool | getProperties (const string &object_id, vector< string > &values, const int &slice=-1)
| Gets a vector of attribute values of a object that is valid in a slice.
virtual bool | getProperties (const string &object_id, vector< string > &values, TimeType &time, const int &slice=-1)
| Gets a vector of attribute values of a object that is valid in a time and slice.
virtual bool | setAttributeValue (const string &object_id, const string &attr_name, const string &val, const int &slice=-1)
| Sets the value of the attribute named "attr_name" of an object that is valid in a slice.
virtual bool | setAttributeValue (const string &object_id, const string &attr_name, const string &val, TimeType &time, const int &slice=-1)
| Sets the value of the attribute named "attr_name" of an object that is valid in a time and slice.
virtual bool | setAttributeValue (const string &object_id, const int &i, const string &val, const int &slice=-1)
| Sets the value of the i-th attribute of an object that is valid in a slice.
virtual bool | setAttributeValue (const string &object_id, const int &i, const string &val, TimeType &time, const int &slice=-1)
| Sets the value of the i-th attribute of an object that is valid in a time and slice.
virtual bool | getAttributeValue (const string &object_id, const string &attr_name, string &val, const int &slice=-1)
| Get the value of the attribute named "attr_name" of an object that is valid in a slice.
virtual bool | getAttributeValue (const string &object_id, const string &attr_name, string &val, TimeType &time, const int &slice=-1)
| Get the value of the attribute named "attr_name" of an object that is valid in a time and slice.
virtual bool | getAttributeValue (const string &object_id, const int &i, string &val, const int &slice=-1)
| Gets the value of the i-th attribute of an object that is valid in a slice.
virtual bool | getAttributeValue (const string &object_id, const int &i, string &val, TimeType &time, const int &slice=-1)
| Gets the value of the i-th attribute of an object that is valid in a time and slice.
virtual bool | addProperty (TeAttributeRep &attr, const string &defaultValue)
| Adds a new attribute in the attribute list and adds it in all instances in the set using a default value.
virtual bool | addProperty (TeAttribute &attr)
| Adds a new attribute only in the attribute list.
virtual bool | addProperty (const string &object_id, TeProperty &prop, const int &slice=-1)
| Adds the property or sets its value in the object in a valid slice.
virtual bool | addProperty (const string &object_id, TeProperty &prop, TimeType &time, const int &slice=-1)
| Adds the property or sets its value in the object in a valid time and slice.
virtual void | removeProperty (TeAttributeRep &attr)
| Removes an attribute of the attribute list and removes it of all instances in the set.
virtual TeBox & | getBox ()
| Calculates the bounding box of all instances of all objects included in the set.
virtual void | setBox (const TeBox &b)
| Sets the bounding box of all instances of all objects included in the set.
virtual void | clear ()
| Clears the set.
void | clearInstances ()
virtual iterator | begin ()
| Returns an iterator to the first element of the set.
virtual iterator | end ()
| Returns an iterator to the one past last element of the set.
virtual bool | search (const TeBox &b, vector< InstanceType * > &result)
| Searchs the instances which bounding boxes intersect a specific bounding box, using the R Tree.
virtual bool | build (bool loadGeometries=false, bool loadAllAttributes=true, vector< string > attrNames=vector< string >(), int slide=-1)
| Fills the ST instance set from a layer or theme, using the given filled parameters.
virtual bool | build (TeGroupingAttr &groupAttr, bool loadGeometries=false, int slide=-1)
| Fills the ST instance set from a layer or theme, using the given filled parameters.
propertyIterator | begin (const string &attName)
| Returns a property iterator to the attribute named "attName" of the first instance in the set.
propertyIterator | begin (const int &attIndex)
| Returns a property iterator to the attIndex-th attribute of the first instance in the set.
propertyIterator | end (const string &attName)
| Returns a property iterator to the attribute named "attName" of the one past last element of the set.
propertyIterator | end (const int &attIndex)
| Returns a property iterator to the attIndex-th attribute of the one past last element of the set.

## Protected Member Functions

virtual bool | buildImpl (TeQuerier *querier, const int &slide=-1)=0
| Builds the set using a given querier and a specific slice.

## Protected Attributes

vector< InstanceType > | instances_
| Set of spatio temporal instances.
TimeType | minTime_
| Minimal time associated to spatial temporal instances.
TimeType | maxTime_
| Maximal time associated to spatial temporal instances.
TeSharedPtr< TeAttributeList > | attrList_
| Description of all attributes.
TeTheme * | theme_
| A pointer to a theme.
TeLayer * | layer_
| A pointer to a layer.
TeBox | box_
| A bounding box that contains all geometries of the spatial temporal instances.
map< string, vector< int > > | objectIdToInstances_
| A map from object identity to its associated instances in the set.
map< TimeType, vector< int > > | timeToInstances_
| A map from time to its associated instances in the set.
map< int, vector< int > > | sliceToInstances_
| A map from slice to its associated instances in the set.
TeSAM::TeRTree< int > * | rTree_
| A struture to index the geometries: RTree.

## Detailed Description

### template<typename GeometryType, typename TimeType, typename InstanceType>
class TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >

A abstract class that represents a set of spatial temporal instances.

This abstract class implements a generic spatio-temporal instance set. It must be specialized according to the instance type (its geometry type, its time type and its own type).

See also:
  TeBaseSTInstance TeTheme TeLayer

## Member Typedef Documentation

template<typename GeometryType, typename TimeType, typename InstanceType>

typedef vector<InstanceType>::iterator TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::iterator

An iterator that traverse each instance in the set.

## Constructor & Destructor Documentation

template<typename GeometryType , typename TimeType , typename InstanceType >

TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::TeBaseSTInstanceSet | ( |  | ) |

Constructor. It does not initialize the rTree.

template<typename GeometryType , typename TimeType , typename InstanceType >

TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::TeBaseSTInstanceSet | ( | TeTheme * | theme,
|  | const TeAttributeList & | attrList = `TeAttributeList()`
| ) |  |

Constructor. It initializes the rTree based on theme box.

template<typename GeometryType , typename TimeType , typename InstanceType >

TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::TeBaseSTInstanceSet | ( | TeLayer * | layer,
|  | const TeAttributeList & | attrList = `TeAttributeList()`
| ) |  |

Constructor. It initializes the rTree based on layer box.

template<typename GeometryType , typename TimeType , typename InstanceType >

TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::TeBaseSTInstanceSet | ( | const TeBox & | box,
|  | const TeAttributeList & | attrList = `TeAttributeList()`
| ) |  |

Constructor. It initializes the rTree based on the given box.

template<typename GeometryType, typename TimeType, typename InstanceType>

TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::TeBaseSTInstanceSet | ( | const TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType > & | other | ) |

Copy constructor.

template<typename GeometryType , typename TimeType , typename InstanceType >

TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::~TeBaseSTInstanceSet | ( |  | ) | `[virtual]`

Destructor.

## Member Function Documentation

template<typename GeometryType , typename TimeType , typename InstanceType >

bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::addProperty | ( | TeAttributeRep & | attr,
|  | const string & | defaultValue
| ) |  | `[virtual]`

Adds a new attribute in the attribute list and adds it in all instances in the set using a default value.

template<typename GeometryType , typename TimeType , typename InstanceType >

bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::addProperty | ( | TeAttribute & | attr | ) | `[virtual]`

Adds a new attribute only in the attribute list.

template<typename GeometryType , typename TimeType , typename InstanceType >

bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::addProperty | ( | const string & | object_id,
|  | TeProperty & | prop,
|  | const int & | slice = `-1`
| ) |  | `[virtual]`

Adds the property or sets its value in the object in a valid slice.

If there is already the property in the attribute list, sets the value of the instances of an object valid in a specific slice. If there is no this property in the attribute list, adds it in the attribute list and in all instances in the set. After that, sets the value of the instances of an object valid in a specific slice.

template<typename GeometryType , typename TimeType, typename InstanceType >

bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::addProperty | ( | const string & | object_id,
|  | TeProperty & | prop,
|  | TimeType & | time,
|  | const int & | slice = `-1`
| ) |  | `[virtual]`

Adds the property or sets its value in the object in a valid time and slice.

If there is already the property in the attribute list, sets the value of the instances of an object valid in a specific time and slice. If there is no this property in the attribute list, adds it in the attribute list and in all instances in the set. After that, sets the value of the instances of an object valid in a specific time and slice.

template<typename GeometryType, typename TimeType, typename InstanceType>

virtual iterator TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::begin | ( |  | ) | `[inline, virtual]`

Returns an iterator to the first element of the set.

template<typename GeometryType, typename TimeType, typename InstanceType>

propertyIterator TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::begin | ( | const string & | attName | ) | `[inline]`

Returns a property iterator to the attribute named "attName" of the first instance in the set.

template<typename GeometryType, typename TimeType, typename InstanceType>

propertyIterator TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::begin | ( | const int & | attIndex | ) | `[inline]`

Returns a property iterator to the attIndex-th attribute of the first instance in the set.

template<typename GeometryType , typename TimeType , typename InstanceType >

bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::build | ( | bool | loadGeometries = `false`,
|  | bool | loadAllAttributes = `true`,
|  | vector< string > | attrNames = `vector<string>()`,
|  | int | slide = `-1`
| ) |  | `[virtual]`

Fills the ST instance set from a layer or theme, using the given filled parameters.

template<typename GeometryType , typename TimeType , typename InstanceType >

bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::build | ( | TeGroupingAttr & | groupAttr,
|  | bool | loadGeometries = `false`,
|  | int | slide = `-1`
| ) |  | `[virtual]`

Fills the ST instance set from a layer or theme, using the given filled parameters.

template<typename GeometryType, typename TimeType, typename InstanceType>

virtual bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::buildImpl | ( | TeQuerier * | querier,
|  | const int & | slide = `-1`
| ) |  | `[protected, pure virtual]`

Builds the set using a given querier and a specific slice.

Implemented in TeSTElementSet, and TeSTEventSet.

template<typename GeometryType , typename TimeType , typename InstanceType >

void TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::clear | ( |  | ) | `[virtual]`

Clears the set.

Reimplemented in TeSTEventSet.

template<typename GeometryType , typename TimeType , typename InstanceType >

void TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::clearInstances | ( |  | ) |

template<typename GeometryType, typename TimeType, typename InstanceType>

propertyIterator TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::end | ( | const int & | attIndex | ) | `[inline]`

Returns a property iterator to the attIndex-th attribute of the one past last element of the set.

template<typename GeometryType, typename TimeType, typename InstanceType>

propertyIterator TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::end | ( | const string & | attName | ) | `[inline]`

Returns a property iterator to the attribute named "attName" of the one past last element of the set.

template<typename GeometryType, typename TimeType, typename InstanceType>

virtual iterator TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::end | ( |  | ) | `[inline, virtual]`

Returns an iterator to the one past last element of the set.

template<typename GeometryType , typename TimeType , typename InstanceType >

int TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getAttributeIndex | ( | const string & | attrName | ) | `[virtual]`

Returns the index of an attribute named "attrName".

template<typename GeometryType, typename TimeType, typename InstanceType>

virtual TeAttributeList& TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getAttributeList | ( |  | ) | `[inline, virtual]`

Gets the attribute list, that is, the description of all attributes.

template<typename GeometryType , typename TimeType , typename InstanceType >

bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getAttributeValue | ( | const string & | object_id,
|  | const string & | attr_name,
|  | string & | val,
|  | const int & | slice = `-1`
| ) |  | `[virtual]`

Get the value of the attribute named "attr_name" of an object that is valid in a slice.

template<typename GeometryType , typename TimeType, typename InstanceType >

bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getAttributeValue | ( | const string & | object_id,
|  | const int & | i,
|  | string & | val,
|  | const int & | slice = `-1`
| ) |  | `[virtual]`

Gets the value of the i-th attribute of an object that is valid in a slice.

template<typename GeometryType , typename TimeType, typename InstanceType >

bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getAttributeValue | ( | const string & | object_id,
|  | const string & | attr_name,
|  | string & | val,
|  | TimeType & | time,
|  | const int & | slice = `-1`
| ) |  | `[virtual]`

Get the value of the attribute named "attr_name" of an object that is valid in a time and slice.

template<typename GeometryType , typename TimeType, typename InstanceType >

bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getAttributeValue | ( | const string & | object_id,
|  | const int & | i,
|  | string & | val,
|  | TimeType & | time,
|  | const int & | slice = `-1`
| ) |  | `[virtual]`

Gets the value of the i-th attribute of an object that is valid in a time and slice.

template<typename GeometryType , typename TimeType , typename InstanceType >

TeBox & TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getBox | ( |  | ) | `[virtual]`

Calculates the bounding box of all instances of all objects included in the set.

template<typename GeometryType, typename TimeType, typename InstanceType >

bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getGeometry | ( | const string & | object_id,
|  | GeometryType & | geom,
|  | TimeType & | time,
|  | const int & | slice = `-1`
| ) |  | `[virtual]`

Gets the geometry of an object in a specific time and slice.

template<typename GeometryType, typename TimeType , typename InstanceType >

bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getGeometry | ( | const string & | object_id,
|  | GeometryType & | geom,
|  | const int & | slice = `-1`
| ) |  | `[virtual]`

Gets the geometry of an object in a specific slice.

template<typename GeometryType, typename TimeType, typename InstanceType>

virtual TeLayer* TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getLayer | ( |  | ) | `[inline, virtual]`

Gets layer pointer.

template<typename GeometryType, typename TimeType, typename InstanceType>

virtual TimeType TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getMaxTime | ( |  | ) | `[inline, virtual]`

Gets maximal time.

template<typename GeometryType, typename TimeType, typename InstanceType>

virtual TimeType TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getMinTime | ( |  | ) | `[inline, virtual]`

Gets minimal time.

template<typename GeometryType , typename TimeType , typename InstanceType >

bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getProperties | ( | const string & | object_id,
|  | vector< string > & | values,
|  | const int & | slice = `-1`
| ) |  | `[virtual]`

Gets a vector of attribute values of a object that is valid in a slice.

template<typename GeometryType , typename TimeType, typename InstanceType >

bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getProperties | ( | const string & | object_id,
|  | vector< string > & | values,
|  | TimeType & | time,
|  | const int & | slice = `-1`
| ) |  | `[virtual]`

Gets a vector of attribute values of a object that is valid in a time and slice.

template<typename GeometryType , typename TimeType , typename InstanceType >

bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getPropertyVector | ( | const string & | object_id,
|  | TePropertyVector & | propVec,
|  | const int & | slice = `-1`
| ) |  | `[virtual]`

Gets a vector of attributes or properties of a object that is valid in a slice.

template<typename GeometryType , typename TimeType, typename InstanceType >

bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getPropertyVector | ( | const string & | object_id,
|  | TePropertyVector & | propVec,
|  | TimeType & | time,
|  | const int & | slice = `-1`
| ) |  | `[virtual]`

Gets a vector of attributes or properties of a object that is valid in a time and slice.

template<typename GeometryType , typename TimeType , typename InstanceType >

InstanceType * TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstance | ( | const unsigned int & | index | ) | `[virtual]`

Gets a pointer to the index-th ST instance.

template<typename GeometryType , typename TimeType , typename InstanceType >

InstanceType * TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstance | ( | const string & | objectId,
|  | const int & | slice = `-1`
| ) |  | `[virtual]`

Gets a pointer to a ST instance of an object in a specific slice.

template<typename GeometryType , typename TimeType, typename InstanceType >

InstanceType * TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstance | ( | const string & | objectId,
|  | TimeType & | time,
|  | const int & | slice = `-1`
| ) |  | `[virtual]`

Gets a pointer to a ST instance of an object in a specific time and slice.

template<typename GeometryType , typename TimeType , typename InstanceType>

void TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstances | ( | vector< InstanceType * > & | set,
|  | const string & | objectId,
|  | const int & | slice = `-1`
| ) |  | `[virtual]`

Gets pointers to all ST instances of a specific object in a specific slice.

template<typename GeometryType , typename TimeType, typename InstanceType>

void TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstances | ( | vector< InstanceType * > & | set,
|  | const string & | objectId,
|  | TimeType & | time,
|  | const int & | slice = `-1`
| ) |  | `[virtual]`

Gets pointers to all ST instances of a specific object in a specific time and slice.

template<typename GeometryType , typename TimeType, typename InstanceType>

void TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstances | ( | vector< InstanceType * > & | set,
|  | TimeType & | time,
|  | const int & | slice = `-1`
| ) |  | `[virtual]`

! Gets pointers to all ST instances of a specific time

template<typename GeometryType , typename TimeType, typename InstanceType>

void TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstances | ( | vector< InstanceType * > & | set,
|  | const int & | slice
| ) |  | `[virtual]`

Gets pointers to all ST instances of a specific slice.

template<typename GeometryType, typename TimeType, typename InstanceType>

virtual vector<InstanceType>& TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstances | ( |  | ) | `[inline, virtual]`

Gets a reference to the instance set.

template<typename GeometryType, typename TimeType, typename InstanceType>

virtual TeTheme* TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getTheme | ( |  | ) | `[inline, virtual]`

Gets theme pointer.

template<typename GeometryType , typename TimeType , typename InstanceType>

bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::insertSTInstance | ( | InstanceType & | object | ) | `[virtual]`

Inserts a new ST instance in the set.

template<typename GeometryType, typename TimeType, typename InstanceType>

virtual int TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::numElements | ( |  | ) | `[inline, virtual]`

Returns the number of elements or objects in the set.

template<typename GeometryType , typename TimeType , typename InstanceType >

int TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::numSTInstance | ( |  | ) | `[virtual]`

Returns the number of instances.

template<typename GeometryType , typename TimeType , typename InstanceType >

int TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::numSTInstance | ( | const string & | objectId | ) | `[virtual]`

Returns the number of instances of an object or element.

template<typename GeometryType , typename TimeType , typename InstanceType >

int TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::numSTInstance | ( | const int & | slice | ) | `[virtual]`

Returns the number of instances in a specific slice.

template<typename GeometryType , typename TimeType, typename InstanceType >

int TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::numSTInstance | ( | TimeType & | time | ) | `[virtual]`

Returns the number of instances in a specific time.

template<typename GeometryType, typename TimeType, typename InstanceType>

TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType > & TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::operator= | ( | const TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType > & | other | ) | `[virtual]`

Assignment operator.

template<typename GeometryType , typename TimeType , typename InstanceType >

void TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::removeProperty | ( | TeAttributeRep & | attr | ) | `[virtual]`

Removes an attribute of the attribute list and removes it of all instances in the set.

template<typename GeometryType , typename TimeType , typename InstanceType>

bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::search | ( | const TeBox & | b,
|  | vector< InstanceType * > & | result
| ) |  | `[virtual]`

Searchs the instances which bounding boxes intersect a specific bounding box, using the R Tree.

Reimplemented in TeSTEventSet.

template<typename GeometryType , typename TimeType , typename InstanceType >

void TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::setAttributeList | ( | const TeAttributeList & | attrs | ) | `[virtual]`

Sets the attribute list, that is, the description of all attributes.

template<typename GeometryType , typename TimeType, typename InstanceType >

bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::setAttributeValue | ( | const string & | object_id,
|  | const string & | attr_name,
|  | const string & | val,
|  | TimeType & | time,
|  | const int & | slice = `-1`
| ) |  | `[virtual]`

Sets the value of the attribute named "attr_name" of an object that is valid in a time and slice.

template<typename GeometryType , typename TimeType, typename InstanceType >

bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::setAttributeValue | ( | const string & | object_id,
|  | const int & | i,
|  | const string & | val,
|  | TimeType & | time,
|  | const int & | slice = `-1`
| ) |  | `[virtual]`

Sets the value of the i-th attribute of an object that is valid in a time and slice.

template<typename GeometryType , typename TimeType , typename InstanceType >

bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::setAttributeValue | ( | const string & | object_id,
|  | const string & | attr_name,
|  | const string & | val,
|  | const int & | slice = `-1`
| ) |  | `[virtual]`

Sets the value of the attribute named "attr_name" of an object that is valid in a slice.

template<typename GeometryType , typename TimeType, typename InstanceType >

bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::setAttributeValue | ( | const string & | object_id,
|  | const int & | i,
|  | const string & | val,
|  | const int & | slice = `-1`
| ) |  | `[virtual]`

Sets the value of the i-th attribute of an object that is valid in a slice.

template<typename GeometryType, typename TimeType, typename InstanceType>

virtual void TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::setBox | ( | const TeBox & | b | ) | `[inline, virtual]`

Sets the bounding box of all instances of all objects included in the set.

template<typename GeometryType, typename TimeType , typename InstanceType >

bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::setGeometry | ( | const string & | object_id,
|  | GeometryType & | geom,
|  | const int & | slice = `-1`
| ) |  | `[virtual]`

Sets a geometry of an object in a specific slice.

template<typename GeometryType, typename TimeType, typename InstanceType >

bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::setGeometry | ( | const string & | object_id,
|  | GeometryType & | geom,
|  | TimeType & | time,
|  | const int & | slice = `-1`
| ) |  | `[virtual]`

Sets a geometry of an object in a specific time and slice.

template<typename GeometryType, typename TimeType, typename InstanceType>

virtual void TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::setLayer | ( | TeLayer * | l | ) | `[inline, virtual]`

Sets layer pointer.

template<typename GeometryType, typename TimeType, typename InstanceType>

virtual void TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::setMaxTime | ( | TimeType & | t | ) | `[inline, virtual]`

Sets maximal time.

template<typename GeometryType, typename TimeType, typename InstanceType>

virtual void TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::setMinTime | ( | TimeType & | t | ) | `[inline, virtual]`

Sets minimal time.

template<typename GeometryType , typename TimeType, typename InstanceType >

bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::setProperties | ( | const string & | object_id,
|  | const vector< string > & | values,
|  | TimeType & | time,
|  | const int & | slice = `-1`
| ) |  | `[virtual]`

Sets a vector of attribute values of a object that is valid in a time and slice.

template<typename GeometryType , typename TimeType , typename InstanceType >

bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::setProperties | ( | const string & | object_id,
|  | const vector< string > & | values,
|  | const int & | slice = `-1`
| ) |  | `[virtual]`

Sets a vector of attribute values of a object that is valid in a slice.

template<typename GeometryType, typename TimeType, typename InstanceType>

virtual void TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::setTheme | ( | TeTheme * | t | ) | `[inline, virtual]`

Sets theme pointer.

template<typename GeometryType, typename TimeType, typename InstanceType>

TeTheme* TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::theme | ( |  | ) | `[inline]`

Deprecated: Returns a theme pointer.

## Member Data Documentation

template<typename GeometryType, typename TimeType, typename InstanceType>

TeSharedPtr<TeAttributeList> TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::attrList_`[protected]`

Description of all attributes.

template<typename GeometryType, typename TimeType, typename InstanceType>

TeBox TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::box_`[protected]`

A bounding box that contains all geometries of the spatial temporal instances.

template<typename GeometryType, typename TimeType, typename InstanceType>

vector<InstanceType> TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::instances_`[protected]`

Set of spatio temporal instances.

template<typename GeometryType, typename TimeType, typename InstanceType>

TeLayer* TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::layer_`[protected]`

A pointer to a layer.

template<typename GeometryType, typename TimeType, typename InstanceType>

TimeType TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::maxTime_`[protected]`

Maximal time associated to spatial temporal instances.

template<typename GeometryType, typename TimeType, typename InstanceType>

TimeType TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::minTime_`[protected]`

Minimal time associated to spatial temporal instances.

template<typename GeometryType, typename TimeType, typename InstanceType>

map<string, vector<int> > TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::objectIdToInstances_`[protected]`

A map from object identity to its associated instances in the set.

template<typename GeometryType, typename TimeType, typename InstanceType>

TeSAM::TeRTree<int>* TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::rTree_`[protected]`

A struture to index the geometries: RTree.

template<typename GeometryType, typename TimeType, typename InstanceType>

map<int, vector<int> > TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::sliceToInstances_`[protected]`

A map from slice to its associated instances in the set.

template<typename GeometryType, typename TimeType, typename InstanceType>

TeTheme* TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::theme_`[protected]`

A pointer to a theme.

template<typename GeometryType, typename TimeType, typename InstanceType>

map<TimeType, vector<int> > TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::timeToInstances_`[protected]`

A map from time to its associated instances in the set.

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

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/kernel/TeBaseSTInstanceSet.h

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines