This class represents a repository of geometries and features. More...
#include <Repository.h>
| Public Member Functions | |
| void | add (te::gm::Geometry *geom, FeatureType=TO_ADD) | 
| void | add (te::da::ObjectId *id, te::gm::Geometry *geom, FeatureType type) | 
| void | add (Feature *f) | 
| void | clear () | 
| const std::vector< Feature * > & | getAllFeatures () const | 
| Feature * | getFeature (const te::gm::Envelope &e, int srid) const | 
| Feature * | getFeature (te::da::ObjectId *id) const | 
| Feature * | getFeature (const te::gm::Envelope &e, int srid, FeatureType tpToIgnored) const | 
| std::vector< Feature * > | getFeatures (const te::gm::Envelope &e, int srid) const | 
| std::vector< Feature * > | getNewFeatures () const | 
| std::size_t | getPosition (te::da::ObjectId *id) | 
| const std::string & | getSource () const | 
| bool | hasIdentifier (te::da::ObjectId *id) | 
| void | remove (te::da::ObjectId *id) | 
| Repository (const std::string &source) | |
| void | set (te::da::ObjectId *id, te::gm::Geometry *geom, FeatureType type) | 
| void | set (Feature *f) | 
| ~Repository () | |
| Private Member Functions | |
| void | buildIndex () | 
| void | buildIndex (const std::size_t &pos, te::gm::Geometry *geom) | 
| void | clearIndex () | 
| void | set (const std::size_t &pos, Feature *f) | 
| Private Attributes | |
| std::vector< Feature * > | m_features | 
| The repository features.  More... | |
| te::sam::rtree::Index< std::size_t, 8 > | m_rtree | 
| Internal index used to retrieve geometries spatially.  More... | |
| std::string | m_source | 
| The source of the features.  More... | |
This class represents a repository of geometries and features.
Definition at line 63 of file Repository.h.
| te::edit::Repository::Repository | ( | const std::string & | source | ) | 
| te::edit::Repository::~Repository | ( | ) | 
| void te::edit::Repository::add | ( | te::gm::Geometry * | geom, | 
| FeatureType | = TO_ADD | ||
| ) | 
| void te::edit::Repository::add | ( | te::da::ObjectId * | id, | 
| te::gm::Geometry * | geom, | ||
| FeatureType | type | ||
| ) | 
| void te::edit::Repository::add | ( | Feature * | f | ) | 
| 
 | private | 
| 
 | private | 
| void te::edit::Repository::clear | ( | ) | 
| 
 | private | 
| const std::vector<Feature*>& te::edit::Repository::getAllFeatures | ( | ) | const | 
| Feature* te::edit::Repository::getFeature | ( | const te::gm::Envelope & | e, | 
| int | srid | ||
| ) | const | 
| Feature* te::edit::Repository::getFeature | ( | te::da::ObjectId * | id | ) | const | 
| Feature* te::edit::Repository::getFeature | ( | const te::gm::Envelope & | e, | 
| int | srid, | ||
| FeatureType | tpToIgnored | ||
| ) | const | 
| std::vector<Feature*> te::edit::Repository::getFeatures | ( | const te::gm::Envelope & | e, | 
| int | srid | ||
| ) | const | 
| std::vector<Feature*> te::edit::Repository::getNewFeatures | ( | ) | const | 
| std::size_t te::edit::Repository::getPosition | ( | te::da::ObjectId * | id | ) | 
| const std::string& te::edit::Repository::getSource | ( | ) | const | 
| bool te::edit::Repository::hasIdentifier | ( | te::da::ObjectId * | id | ) | 
| void te::edit::Repository::remove | ( | te::da::ObjectId * | id | ) | 
| void te::edit::Repository::set | ( | te::da::ObjectId * | id, | 
| te::gm::Geometry * | geom, | ||
| FeatureType | type | ||
| ) | 
| void te::edit::Repository::set | ( | Feature * | f | ) | 
| 
 | private | 
| 
 | private | 
The repository features.
Definition at line 116 of file Repository.h.
| 
 | private | 
Internal index used to retrieve geometries spatially.
Definition at line 117 of file Repository.h.
| 
 | private | 
The source of the features.
Definition at line 115 of file Repository.h.