#include <TeSTElementSet.h>

createProximityMatrix.cpp, createSTElementSetFromLayer.cpp, createSTElementSetFromShapeFile.cpp, createSTElementSetFromTheme.cpp, and proxMatrixAndSpatialStatistics.cpp.
Definition at line 51 of file TeSTElementSet.h.
Public Types | |
| typedef vector < TeSTInstance > ::iterator | iterator |
| An iterator that traverse each instance in the set. | |
Public Member Functions | |
| virtual bool | addProperty (const string &object_id, TeProperty &prop, TeTimeInterval &time, const int &slice=-1) |
| Adds the property or sets its value in the object in a valid time and slice. | |
| 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 (TeAttribute &attr) |
| Adds a new attribute only in the attribute list. | |
| 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. | |
| propertyIterator | begin (const int &attIndex) |
| Returns a property iterator to the attIndex-th attribute of the first instance in the set. | |
| propertyIterator | begin (const string &attName) |
| Returns a property iterator to the attribute named "attName" of the first instance in the set. | |
| virtual iterator | begin () |
| Returns an iterator to the first element of the set. | |
| 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. | |
| 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 void | clear () |
| Clears the set. | |
| void | clearInstances () |
| propertyIterator | end (const int &attIndex) |
| Returns a property iterator to the attIndex-th attribute of the one past last element of 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. | |
| virtual iterator | end () |
| Returns an iterator to the one past last element of the set. | |
| virtual int | getAttributeIndex (const string &attrName) |
| Returns the index of an attribute named "attrName". | |
| virtual TeAttributeList & | getAttributeList () |
| Gets the attribute list, that is, the description of all attributes. | |
| virtual bool | getAttributeValue (const string &object_id, const int &i, string &val, TeTimeInterval &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 | 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 string &attr_name, string &val, TeTimeInterval &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 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 TeBox & | getBox () |
| Calculates the bounding box of all instances of all objects included in the set. | |
| virtual bool | getGeometry (const string &object_id, TeMultiGeometry &geom, TeTimeInterval &time, const int &slice=-1) |
| Gets the geometry of an object in a specific time and slice. | |
| virtual bool | getGeometry (const string &object_id, TeMultiGeometry &geom, const int &slice=-1) |
| Gets the geometry of an object in a specific slice. | |
| bool | getGeometry (const string &object_id, TeTextSet &geomSet, TeTimeInterval time=TeTimeInterval()) |
| Gets a text set of an element or object and its valid time interval. | |
| bool | getGeometry (const string &object_id, TeCellSet &geomSet, TeTimeInterval time=TeTimeInterval()) |
| Gets a cell set of an element or object and its valid time interval. | |
| bool | getGeometry (const string &object_id, TePointSet &geomSet, TeTimeInterval time=TeTimeInterval()) |
| Gets a point set of an element or object and its valid time interval. | |
| bool | getGeometry (const string &object_id, TeLineSet &geomSet, TeTimeInterval time=TeTimeInterval()) |
| Gets a line set of an element or object and its valid time interval. | |
| bool | getGeometry (const string &object_id, TePolygonSet &geomSet, TeTimeInterval time=TeTimeInterval()) |
| Gets a polygon set of an element or object and its valid time interval. | |
| virtual TeLayer * | getLayer () |
| Gets layer pointer. | |
| virtual TeTimeInterval | getMaxTime () |
| Gets maximal time. | |
| virtual TeTimeInterval | getMinTime () |
| Gets minimal time. | |
| virtual bool | getProperties (const string &object_id, vector< string > &values, TeTimeInterval &time, const int &slice=-1) |
| Gets 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 | getPropertyVector (const string &object_id, TePropertyVector &propVec, TeTimeInterval &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 | 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 TeSTInstance * | getSTInstance (const string &objectId, TeTimeInterval &time, const int &slice=-1) |
| Gets a pointer to a ST instance of an object in a specific time and slice. | |
| virtual TeSTInstance * | getSTInstance (const string &objectId, const int &slice=-1) |
| Gets a pointer to a ST instance of an object in a specific slice. | |
| virtual TeSTInstance * | getSTInstance (const unsigned int &index) |
| Gets a pointer to the index-th ST instance. | |
| virtual void | getSTInstances (vector< TeSTInstance * > &set, const int &slice) |
| Gets pointers to all ST instances of a specific slice. | |
| virtual void | getSTInstances (vector< TeSTInstance * > &set, TeTimeInterval &time, const int &slice=-1) |
| ! Gets pointers to all ST instances of a specific time | |
| virtual void | getSTInstances (vector< TeSTInstance * > &set, const string &objectId, TeTimeInterval &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< TeSTInstance * > &set, const string &objectId, const int &slice=-1) |
| Gets pointers to all ST instances of a specific object in a specific slice. | |
| virtual vector < TeSTInstance > & | getSTInstances () |
| Gets a reference to the instance set. | |
| virtual TeTheme * | getTheme () |
| Gets theme pointer. | |
| bool | hasElement (const string &objId) |
| Deprecated: Verifies if there is a specific element or object in the set. | |
| virtual bool | insertSTInstance (TeSTInstance &object) |
| Inserts a new ST instance in the set. | |
| virtual int | numElements () |
| Returns the number of elements or objects in the set. | |
| virtual int | numSTInstance (TeTimeInterval &time) |
| Returns the number of instances in a specific time. | |
| virtual int | numSTInstance (const int &slice) |
| Returns the number of instances in a specific slice. | |
| virtual int | numSTInstance (const string &objectId) |
| Returns the number of instances of an object or element. | |
| virtual int | numSTInstance () |
| Returns the number of instances. | |
| virtual void | removeProperty (TeAttributeRep &attr) |
| Removes an attribute of the attribute list and removes it of all instances in the set. | |
| virtual bool | search (const TeBox &b, vector< TeSTInstance * > &result) |
| Searchs the instances which bounding boxes intersect a specific bounding box, using the R Tree. | |
| virtual void | setAttributeList (const TeAttributeList &attrs) |
| Sets the attribute list, that is, the description of all attributes. | |
| virtual bool | setAttributeValue (const string &object_id, const int &i, const string &val, TeTimeInterval &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 | 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 string &attr_name, const string &val, TeTimeInterval &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 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 void | setBox (const TeBox &b) |
| Sets the bounding box of all instances of all objects included in the set. | |
| virtual bool | setGeometry (const string &object_id, TeMultiGeometry &geom, TeTimeInterval &time, const int &slice=-1) |
| Sets a geometry of an object in a specific time and slice. | |
| virtual bool | setGeometry (const string &object_id, TeMultiGeometry &geom, const int &slice=-1) |
| Sets a geometry of an object in a specific slice. | |
| bool | setGeometry (const string &object_id, const TeTextSet &geomSet, TeTimeInterval time=TeTimeInterval()) |
| Sets a text set and its valid time interval to a specific object or element. | |
| bool | setGeometry (const string &object_id, const TeCellSet &geomSet, TeTimeInterval time=TeTimeInterval()) |
| Sets a cell set and its valid time interval to a specific object or element. | |
| bool | setGeometry (const string &object_id, const TePointSet &geomSet, TeTimeInterval time=TeTimeInterval()) |
| Sets a point set and its valid time interval to a specific object or element. | |
| bool | setGeometry (const string &object_id, const TeLineSet &geomSet, TeTimeInterval time=TeTimeInterval()) |
| Sets a line set and its valid time interval to a specific object or element. | |
| bool | setGeometry (const string &object_id, const TePolygonSet &geomSet, TeTimeInterval time=TeTimeInterval()) |
| Sets a polygon set and its valid time interval to a specific object or element. | |
| virtual void | setLayer (TeLayer *l) |
| Sets layer pointer. | |
| virtual void | setMaxTime (TeTimeInterval &t) |
| Sets maximal time. | |
| virtual void | setMinTime (TeTimeInterval &t) |
| Sets minimal time. | |
| virtual bool | setProperties (const string &object_id, const vector< string > &values, TeTimeInterval &time, const int &slice=-1) |
| Sets a vector of attribute values 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 void | setTheme (TeTheme *t) |
| Sets theme pointer. | |
| TeSTElementSet (const TeBox &box, const TeAttributeList &attrList) | |
| Constructor. | |
| TeSTElementSet (TeLayer *layer, TeAttributeList attList=TeAttributeList()) | |
| Constructor. | |
| TeSTElementSet (TeTheme *theme, TeAttributeList attList=TeAttributeList()) | |
| Constructor. | |
| TeSTElementSet () | |
| Constructor. | |
| TeTheme * | theme () |
| Deprecated: Returns a theme pointer. | |
| void | totalTime (TeTimeInterval t) |
| Sets the valid time interval for all ST instances. | |
| TeTimeInterval | totalTime () |
| Returns the valid time interval for all ST instances. | |
Protected Member Functions | |
| bool | buildImpl (TeQuerier *querier, const int &slide=-1) |
| Builds the set using a given querier and a specific slice. | |
Protected Attributes | |
| TeSharedPtr < TeAttributeList > | attrList_ |
| Description of all attributes. | |
| TeBox | box_ |
| A bounding box that contains all geometries of the spatial temporal instances. | |
| vector< TeSTInstance > | instances_ |
| Set of spatio temporal instances. | |
| TeLayer * | layer_ |
| A pointer to a layer. | |
| TeTimeInterval | maxTime_ |
| Maximal time associated to spatial temporal instances. | |
| TeTimeInterval | minTime_ |
| Minimal time associated to spatial temporal instances. | |
| map< string, vector < int > > | objectIdToInstances_ |
| A map from object identity to its associated instances in the set. | |
| TeSAM::TeRTree< int > * | rTree_ |
| A struture to index the geometries: RTree. | |
| map< int, vector< int > > | sliceToInstances_ |
| A map from slice to its associated instances in the set. | |
| TeTheme * | theme_ |
| A pointer to a theme. | |
| map< TeTimeInterval, vector< int > > | timeToInstances_ |
| A map from time to its associated instances in the set. | |
typedef vector<TeSTInstance >::iterator TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::iterator [inherited] |
Definition at line 88 of file TeBaseSTInstanceSet.h.
| TeSTElementSet::TeSTElementSet | ( | ) | [inline] |
Definition at line 60 of file TeSTElementSet.h.
00060 : TeBaseSTInstanceSet<TeMultiGeometry, TeTimeInterval, TeSTInstance>() 00061 { }
| TeSTElementSet::TeSTElementSet | ( | TeTheme * | theme, | |
| TeAttributeList | attList = TeAttributeList() | |||
| ) | [inline] |
Definition at line 64 of file TeSTElementSet.h.
00064 : 00065 TeBaseSTInstanceSet<TeMultiGeometry, TeTimeInterval, TeSTInstance>(theme, attList) 00066 { }
| TeSTElementSet::TeSTElementSet | ( | TeLayer * | layer, | |
| TeAttributeList | attList = TeAttributeList() | |||
| ) | [inline] |
Definition at line 69 of file TeSTElementSet.h.
00069 : 00070 TeBaseSTInstanceSet<TeMultiGeometry, TeTimeInterval, TeSTInstance>(layer, attList) 00071 { }
| TeSTElementSet::TeSTElementSet | ( | const TeBox & | box, | |
| const TeAttributeList & | attrList | |||
| ) | [inline] |
Definition at line 75 of file TeSTElementSet.h.
00075 : 00076 TeBaseSTInstanceSet<TeMultiGeometry, TeTimeInterval, TeSTInstance>(box, attrList) 00077 { }
| virtual bool TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::addProperty | ( | const string & | object_id, | |
| TeProperty & | prop, | |||
| TeTimeInterval & | time, | |||
| const int & | slice = -1 | |||
| ) | [virtual, inherited] |
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.
| virtual bool TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::addProperty | ( | const string & | object_id, | |
| TeProperty & | prop, | |||
| const int & | slice = -1 | |||
| ) | [virtual, inherited] |
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.
| virtual bool TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::addProperty | ( | TeAttribute & | attr | ) | [virtual, inherited] |
| virtual bool TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::addProperty | ( | TeAttributeRep & | attr, | |
| const string & | defaultValue | |||
| ) | [virtual, inherited] |
| propertyIterator TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::begin | ( | const int & | attIndex | ) | [inline, inherited] |
Definition at line 392 of file TeBaseSTInstanceSet.h.
References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::instances_.
00393 { 00394 return propertyIterator(this, instances_.begin(), attIndex); 00395 }
| propertyIterator TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::begin | ( | const string & | attName | ) | [inline, inherited] |
Definition at line 386 of file TeBaseSTInstanceSet.h.
References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::instances_.
00387 { 00388 return propertyIterator(this, instances_.begin(), attName); 00389 }
| virtual iterator TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::begin | ( | void | ) | [inline, virtual, inherited] |
Definition at line 297 of file TeBaseSTInstanceSet.h.
References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::instances_.
00298 { return instances_.begin(); }
| virtual bool TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::build | ( | TeGroupingAttr & | groupAttr, | |
| bool | loadGeometries = false, |
|||
| int | slide = -1 | |||
| ) | [virtual, inherited] |
| virtual bool TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::build | ( | bool | loadGeometries = false, |
|
| bool | loadAllAttributes = true, |
|||
| vector< string > | attrNames = vector<string>(), |
|||
| int | slide = -1 | |||
| ) | [virtual, inherited] |
Implements TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >.
Definition at line 178 of file TeSTElementSet.cpp.
References TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::attrList_, TeLayer::box(), TeAbstractTheme::box(), TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::box_, TeSTInstance::clear(), TeQuerier::fetchInstance(), TeQuerier::getAttrList(), TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::insertSTInstance(), TeProgress::instance(), TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::instances_, TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::layer_, TeQuerier::loadInstances(), TeQuerier::numElemInstances(), TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::objectIdToInstances_, TeProgressBase::reset(), TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::rTree_, TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::setAttributeList(), TeProgressBase::setCaption(), TeProgressBase::setMessage(), TeProgressBase::setProgress(), TeProgressBase::setTotalSteps(), TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::sliceToInstances_, TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::theme_, and TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::timeToInstances_.
00179 { 00180 int dt = CLOCKS_PER_SEC/4, steps = 0; 00181 int dt2 = CLOCKS_PER_SEC * 5; 00182 clock_t t0, t1, t2; 00183 00184 t0=t1=t2=clock(); 00185 00186 if(!querier) 00187 return false; 00188 00189 if(!querier->loadInstances(slide)) 00190 return false; 00191 00192 //clear all structures 00193 attrList_->clear(); 00194 instances_.clear(); 00195 objectIdToInstances_.clear(); 00196 timeToInstances_.clear(); 00197 sliceToInstances_.clear(); 00198 if(rTree_) 00199 delete rTree_; 00200 rTree_ = 0; 00201 00202 //Builts another rTree 00203 TeBox b; 00204 if(theme_) 00205 b = theme_->box(); 00206 else if(layer_) 00207 b = layer_->box(); 00208 else 00209 b = this->box_; 00210 rTree_ = new TeSAM::TeRTree<int>(b); 00211 00212 TeAttributeList l = querier->getAttrList(); 00213 setAttributeList(l); 00214 00215 int tot = querier->numElemInstances(); 00216 00217 if(TeProgress::instance()) 00218 { 00219 TeProgress::instance()->reset(); 00220 string caption = "Building data"; 00221 TeProgress::instance()->setCaption(caption.c_str()); 00222 string msg = "Building in progress. Please, wait!"; 00223 TeProgress::instance()->setMessage(msg); 00224 TeProgress::instance()->setTotalSteps(tot); 00225 t2 = clock(); 00226 t0 = t1 = t2; 00227 } 00228 00229 TeSTInstance obj; 00230 while(querier->fetchInstance(obj)) 00231 { 00232 this->insertSTInstance(obj); 00233 00234 obj.clear(); 00235 if(TeProgress::instance()) 00236 { 00237 steps++; 00238 t2 = clock(); 00239 if (int(t2-t1) > dt) 00240 { 00241 t1 = t2; 00242 if(TeProgress::instance()->wasCancelled()) 00243 return false; 00244 00245 if((int)(t2-t0) > dt2) 00246 TeProgress::instance()->setProgress(steps); 00247 } 00248 } 00249 } 00250 if(TeProgress::instance()) 00251 TeProgress::instance()->reset(); 00252 00253 return true; 00254 }
| virtual void TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::clear | ( | void | ) | [virtual, inherited] |
| void TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::clearInstances | ( | ) | [inherited] |
| propertyIterator TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::end | ( | const int & | attIndex | ) | [inline, inherited] |
Definition at line 404 of file TeBaseSTInstanceSet.h.
References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::instances_.
00405 { 00406 return propertyIterator(this, instances_.end(), attIndex); 00407 }
| propertyIterator TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::end | ( | const string & | attName | ) | [inline, inherited] |
Definition at line 398 of file TeBaseSTInstanceSet.h.
References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::instances_.
00399 { 00400 return propertyIterator(this, instances_.end(), attName); 00401 }
| virtual iterator TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::end | ( | void | ) | [inline, virtual, inherited] |
Definition at line 301 of file TeBaseSTInstanceSet.h.
References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::instances_.
00302 { return instances_.end(); }
| virtual int TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::getAttributeIndex | ( | const string & | attrName | ) | [virtual, inherited] |
| virtual TeAttributeList& TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::getAttributeList | ( | ) | [inline, virtual, inherited] |
Definition at line 128 of file TeBaseSTInstanceSet.h.
References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::attrList_.
00129 { return (*attrList_); }
| virtual bool TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::getAttributeValue | ( | const string & | object_id, | |
| const int & | i, | |||
| string & | val, | |||
| TeTimeInterval & | time, | |||
| const int & | slice = -1 | |||
| ) | [virtual, inherited] |
| virtual bool TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::getAttributeValue | ( | const string & | object_id, | |
| const int & | i, | |||
| string & | val, | |||
| const int & | slice = -1 | |||
| ) | [virtual, inherited] |
| virtual bool TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::getAttributeValue | ( | const string & | object_id, | |
| const string & | attr_name, | |||
| string & | val, | |||
| TeTimeInterval & | time, | |||
| const int & | slice = -1 | |||
| ) | [virtual, inherited] |
| virtual bool TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::getAttributeValue | ( | const string & | object_id, | |
| const string & | attr_name, | |||
| string & | val, | |||
| const int & | slice = -1 | |||
| ) | [virtual, inherited] |
| virtual TeBox& TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::getBox | ( | void | ) | [virtual, inherited] |
| virtual bool TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::getGeometry | ( | const string & | object_id, | |
| TeMultiGeometry & | geom, | |||
| TeTimeInterval & | time, | |||
| const int & | slice = -1 | |||
| ) | [virtual, inherited] |
| virtual bool TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::getGeometry | ( | const string & | object_id, | |
| TeMultiGeometry & | geom, | |||
| const int & | slice = -1 | |||
| ) | [virtual, inherited] |
| bool TeSTElementSet::getGeometry | ( | const string & | object_id, | |
| TeTextSet & | geomSet, | |||
| TeTimeInterval | time = TeTimeInterval() | |||
| ) |
Definition at line 168 of file TeSTElementSet.cpp.
References TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::getSTInstance(), and TeSTInstance::getTexts().
00169 { 00170 TeSTInstance* result = this->getSTInstance(object_id, time); 00171 if(!result) 00172 return false; 00173 geomSet = result->getTexts(); 00174 return true; 00175 }
| bool TeSTElementSet::getGeometry | ( | const string & | object_id, | |
| TeCellSet & | geomSet, | |||
| TeTimeInterval | time = TeTimeInterval() | |||
| ) |
Definition at line 158 of file TeSTElementSet.cpp.
References TeSTInstance::getCells(), and TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::getSTInstance().
00159 { 00160 TeSTInstance* result = this->getSTInstance(object_id, time); 00161 if(!result) 00162 return false; 00163 geomSet = result->getCells(); 00164 return true; 00165 }
| bool TeSTElementSet::getGeometry | ( | const string & | object_id, | |
| TePointSet & | geomSet, | |||
| TeTimeInterval | time = TeTimeInterval() | |||
| ) |
Definition at line 147 of file TeSTElementSet.cpp.
References TeSTInstance::getPoints(), and TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::getSTInstance().
00148 { 00149 TeSTInstance* result = this->getSTInstance(object_id, time); 00150 if(!result) 00151 return false; 00152 geomSet = result->getPoints(); 00153 return true; 00154 }
| bool TeSTElementSet::getGeometry | ( | const string & | object_id, | |
| TeLineSet & | geomSet, | |||
| TeTimeInterval | time = TeTimeInterval() | |||
| ) |
Definition at line 136 of file TeSTElementSet.cpp.
References TeSTInstance::getLines(), and TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::getSTInstance().
00137 { 00138 TeSTInstance* result = this->getSTInstance(object_id, time); 00139 if(!result) 00140 return false; 00141 geomSet = result->getLines(); 00142 return true; 00143 }
| bool TeSTElementSet::getGeometry | ( | const string & | object_id, | |
| TePolygonSet & | geomSet, | |||
| TeTimeInterval | time = TeTimeInterval() | |||
| ) |
Definition at line 125 of file TeSTElementSet.cpp.
References TeSTInstance::getPolygons(), and TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::getSTInstance().
Referenced by TeFindObjectsCentroid().
00126 { 00127 TeSTInstance* result = this->getSTInstance(object_id, time); 00128 if(!result) 00129 return false; 00130 geomSet = result->getPolygons(); 00131 return true; 00132 }
| virtual TeLayer* TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::getLayer | ( | ) | [inline, virtual, inherited] |
Definition at line 150 of file TeBaseSTInstanceSet.h.
References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::layer_.
00151 { return layer_; }
| virtual TeTimeInterval TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::getMaxTime | ( | ) | [inline, virtual, inherited] |
Definition at line 120 of file TeBaseSTInstanceSet.h.
References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::maxTime_.
Referenced by totalTime().
00121 { return maxTime_; }
| virtual TeTimeInterval TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::getMinTime | ( | ) | [inline, virtual, inherited] |
Definition at line 112 of file TeBaseSTInstanceSet.h.
References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::minTime_.
00113 { return minTime_; }
| virtual bool TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::getProperties | ( | const string & | object_id, | |
| vector< string > & | values, | |||
| TeTimeInterval & | time, | |||
| const int & | slice = -1 | |||
| ) | [virtual, inherited] |
| virtual bool TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::getProperties | ( | const string & | object_id, | |
| vector< string > & | values, | |||
| const int & | slice = -1 | |||
| ) | [virtual, inherited] |
| virtual bool TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::getPropertyVector | ( | const string & | object_id, | |
| TePropertyVector & | propVec, | |||
| TeTimeInterval & | time, | |||
| const int & | slice = -1 | |||
| ) | [virtual, inherited] |
| virtual bool TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::getPropertyVector | ( | const string & | object_id, | |
| TePropertyVector & | propVec, | |||
| const int & | slice = -1 | |||
| ) | [virtual, inherited] |
| virtual TeSTInstance * TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::getSTInstance | ( | const string & | objectId, | |
| TeTimeInterval & | time, | |||
| const int & | slice = -1 | |||
| ) | [virtual, inherited] |
| virtual TeSTInstance * TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::getSTInstance | ( | const string & | objectId, | |
| const int & | slice = -1 | |||
| ) | [virtual, inherited] |
| virtual TeSTInstance * TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::getSTInstance | ( | const unsigned int & | index | ) | [virtual, inherited] |
Referenced by getGeometry().
| virtual void TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::getSTInstances | ( | vector< TeSTInstance * > & | set, | |
| const int & | slice | |||
| ) | [virtual, inherited] |
| virtual void TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::getSTInstances | ( | vector< TeSTInstance * > & | set, | |
| TeTimeInterval & | time, | |||
| const int & | slice = -1 | |||
| ) | [virtual, inherited] |
| virtual void TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::getSTInstances | ( | vector< TeSTInstance * > & | set, | |
| const string & | objectId, | |||
| TeTimeInterval & | time, | |||
| const int & | slice = -1 | |||
| ) | [virtual, inherited] |
| virtual void TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::getSTInstances | ( | vector< TeSTInstance * > & | set, | |
| const string & | objectId, | |||
| const int & | slice = -1 | |||
| ) | [virtual, inherited] |
| virtual vector<TeSTInstance >& TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::getSTInstances | ( | ) | [inline, virtual, inherited] |
Definition at line 158 of file TeBaseSTInstanceSet.h.
References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::instances_.
Referenced by setGeometry().
00159 { return instances_; }
| virtual TeTheme* TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::getTheme | ( | ) | [inline, virtual, inherited] |
Definition at line 138 of file TeBaseSTInstanceSet.h.
References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::theme_.
00139 { return theme_; }
Definition at line 43 of file TeSTElementSet.cpp.
References TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::numSTInstance().
00044 { 00045 return (numSTInstance(objId)>0); 00046 }
| virtual bool TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::insertSTInstance | ( | TeSTInstance & | object | ) | [virtual, inherited] |
Referenced by buildImpl().
| virtual int TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::numElements | ( | ) | [inline, virtual, inherited] |
Definition at line 198 of file TeBaseSTInstanceSet.h.
References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::objectIdToInstances_.
00199 { return objectIdToInstances_.size(); }
| virtual int TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::numSTInstance | ( | TeTimeInterval & | time | ) | [virtual, inherited] |
| virtual int TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::numSTInstance | ( | const int & | slice | ) | [virtual, inherited] |
| virtual int TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::numSTInstance | ( | const string & | objectId | ) | [virtual, inherited] |
| virtual int TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::numSTInstance | ( | ) | [virtual, inherited] |
Referenced by hasElement().
| virtual void TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::removeProperty | ( | TeAttributeRep & | attr | ) | [virtual, inherited] |
| virtual bool TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::search | ( | const TeBox & | b, | |
| vector< TeSTInstance * > & | result | |||
| ) | [virtual, inherited] |
| virtual void TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::setAttributeList | ( | const TeAttributeList & | attrs | ) | [virtual, inherited] |
Referenced by buildImpl().
| virtual bool TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::setAttributeValue | ( | const string & | object_id, | |
| const int & | i, | |||
| const string & | val, | |||
| TeTimeInterval & | time, | |||
| const int & | slice = -1 | |||
| ) | [virtual, inherited] |
| virtual bool TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::setAttributeValue | ( | const string & | object_id, | |
| const int & | i, | |||
| const string & | val, | |||
| const int & | slice = -1 | |||
| ) | [virtual, inherited] |
| virtual bool TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::setAttributeValue | ( | const string & | object_id, | |
| const string & | attr_name, | |||
| const string & | val, | |||
| TeTimeInterval & | time, | |||
| const int & | slice = -1 | |||
| ) | [virtual, inherited] |
| virtual bool TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::setAttributeValue | ( | const string & | object_id, | |
| const string & | attr_name, | |||
| const string & | val, | |||
| const int & | slice = -1 | |||
| ) | [virtual, inherited] |
| virtual void TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::setBox | ( | const TeBox & | b | ) | [inline, virtual, inherited] |
Definition at line 288 of file TeBaseSTInstanceSet.h.
References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::box_.
00289 { box_ = b; }
| virtual bool TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::setGeometry | ( | const string & | object_id, | |
| TeMultiGeometry & | geom, | |||
| TeTimeInterval & | time, | |||
| const int & | slice = -1 | |||
| ) | [virtual, inherited] |
| virtual bool TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::setGeometry | ( | const string & | object_id, | |
| TeMultiGeometry & | geom, | |||
| const int & | slice = -1 | |||
| ) | [virtual, inherited] |
| bool TeSTElementSet::setGeometry | ( | const string & | object_id, | |
| const TeTextSet & | geomSet, | |||
| TeTimeInterval | time = TeTimeInterval() | |||
| ) |
Definition at line 109 of file TeSTElementSet.cpp.
References TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::getSTInstances().
00110 { 00111 vector<TeSTInstance*> result; 00112 this->getSTInstances(result, object_id, time); 00113 vector<TeSTInstance*>::iterator it = result.begin(); 00114 00115 while(it!=result.end()) 00116 { 00117 (*it)->setGeometry(geomSet); 00118 ++it; 00119 } 00120 return true; 00121 }
| bool TeSTElementSet::setGeometry | ( | const string & | object_id, | |
| const TeCellSet & | geomSet, | |||
| TeTimeInterval | time = TeTimeInterval() | |||
| ) |
Definition at line 94 of file TeSTElementSet.cpp.
References TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::getSTInstances().
00095 { 00096 vector<TeSTInstance*> result; 00097 this->getSTInstances(result, object_id, time); 00098 vector<TeSTInstance*>::iterator it = result.begin(); 00099 00100 while(it!=result.end()) 00101 { 00102 (*it)->setGeometry(geomSet); 00103 ++it; 00104 } 00105 return true; 00106 }
| bool TeSTElementSet::setGeometry | ( | const string & | object_id, | |
| const TePointSet & | geomSet, | |||
| TeTimeInterval | time = TeTimeInterval() | |||
| ) |
Definition at line 79 of file TeSTElementSet.cpp.
References TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::getSTInstances().
00080 { 00081 vector<TeSTInstance*> result; 00082 this->getSTInstances(result, object_id, time); 00083 vector<TeSTInstance*>::iterator it = result.begin(); 00084 00085 while(it!=result.end()) 00086 { 00087 (*it)->setGeometry(geomSet); 00088 ++it; 00089 } 00090 return true; 00091 }
| bool TeSTElementSet::setGeometry | ( | const string & | object_id, | |
| const TeLineSet & | geomSet, | |||
| TeTimeInterval | time = TeTimeInterval() | |||
| ) |
Definition at line 64 of file TeSTElementSet.cpp.
References TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::getSTInstances().
00065 { 00066 vector<TeSTInstance*> result; 00067 this->getSTInstances(result, object_id, time); 00068 vector<TeSTInstance*>::iterator it = result.begin(); 00069 00070 while(it!=result.end()) 00071 { 00072 (*it)->setGeometry(geomSet); 00073 ++it; 00074 } 00075 return true; 00076 }
| bool TeSTElementSet::setGeometry | ( | const string & | object_id, | |
| const TePolygonSet & | geomSet, | |||
| TeTimeInterval | time = TeTimeInterval() | |||
| ) |
Definition at line 49 of file TeSTElementSet.cpp.
References TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::getSTInstances().
00050 { 00051 vector<TeSTInstance*> result; 00052 this->getSTInstances(result, object_id, time); 00053 vector<TeSTInstance*>::iterator it = result.begin(); 00054 00055 while(it!=result.end()) 00056 { 00057 (*it)->setGeometry(geomSet); 00058 ++it; 00059 } 00060 return true; 00061 }
| virtual void TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::setLayer | ( | TeLayer * | l | ) | [inline, virtual, inherited] |
Definition at line 154 of file TeBaseSTInstanceSet.h.
References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::layer_.
00155 { layer_ = l; }
| virtual void TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::setMaxTime | ( | TeTimeInterval & | t | ) | [inline, virtual, inherited] |
Definition at line 124 of file TeBaseSTInstanceSet.h.
References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::maxTime_.
00125 { maxTime_ = t; }
| virtual void TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::setMinTime | ( | TeTimeInterval & | t | ) | [inline, virtual, inherited] |
Definition at line 116 of file TeBaseSTInstanceSet.h.
References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::minTime_.
00117 { minTime_ = t; }
| virtual bool TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::setProperties | ( | const string & | object_id, | |
| const vector< string > & | values, | |||
| TeTimeInterval & | time, | |||
| const int & | slice = -1 | |||
| ) | [virtual, inherited] |
| virtual bool TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::setProperties | ( | const string & | object_id, | |
| const vector< string > & | values, | |||
| const int & | slice = -1 | |||
| ) | [virtual, inherited] |
| virtual void TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::setTheme | ( | TeTheme * | t | ) | [inline, virtual, inherited] |
Definition at line 142 of file TeBaseSTInstanceSet.h.
References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::theme_.
00143 { theme_ = t; }
| TeTheme* TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::theme | ( | ) | [inline, inherited] |
Definition at line 146 of file TeBaseSTInstanceSet.h.
References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getTheme().
00147 { return getTheme(); }
| void TeSTElementSet::totalTime | ( | TeTimeInterval | t | ) |
Definition at line 35 of file TeSTElementSet.cpp.
References TeTimeInterval::getT1(), TeTimeInterval::getT2(), TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::maxTime_, and TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::minTime_.
00036 { 00037 minTime_ = TeTimeInterval(t.getT1(), t.getT1()); 00038 maxTime_ = TeTimeInterval(t.getT2(), t.getT2()); 00039 }
| TeTimeInterval TeSTElementSet::totalTime | ( | ) |
Definition at line 29 of file TeSTElementSet.cpp.
References TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::getMaxTime(), and TeTimeInterval::getT2().
00030 { 00031 return TeTimeInterval(this->getMinTime().getT1(),this->getMaxTime().getT2()); 00032 }
TeSharedPtr<TeAttributeList> TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::attrList_ [protected, inherited] |
TeBox TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::box_ [protected, inherited] |
vector<TeSTInstance > TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::instances_ [protected, inherited] |
TeLayer* TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::layer_ [protected, inherited] |
TeTimeInterval TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::maxTime_ [protected, inherited] |
TeTimeInterval TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::minTime_ [protected, inherited] |
map<string, vector<int> > TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::objectIdToInstances_ [protected, inherited] |
TeSAM::TeRTree<int>* TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::rTree_ [protected, inherited] |
map<int, vector<int> > TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::sliceToInstances_ [protected, inherited] |
TeTheme* TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::theme_ [protected, inherited] |
map<TeTimeInterval , vector<int> > TeBaseSTInstanceSet< TeMultiGeometry , TeTimeInterval , TeSTInstance >::timeToInstances_ [protected, inherited] |
1.5.3