This is a singleton for managing geometries snap.
More...
#include <SnapManager.h>
|
void | buildSnap (const std::string &source, int srid, te::da::DataSet *dataset) |
|
void | clear (const std::string &source) |
|
void | clearAll () |
|
void | clearStrategies () |
|
void | createSnap (const std::string &source, int srid) |
|
Snap * | getSnap (const std::string &source) const |
|
const std::map< std::string, Snap * > & | getSnaps () const |
|
bool | hasSnap (const std::string &source) const |
|
void | reg (const std::string &name, const SnapStrategyFnctType &strategy) |
|
void | removeSnap (const std::string &source) |
|
bool | search (const te::gm::Coord2D &coord, int srid, te::gm::Coord2D &result) |
|
void | setWorld (const double &llx, const double &lly, const double &urx, const double &ury, const std::size_t &width, const std::size_t &height) |
|
This is a singleton for managing geometries snap.
Definition at line 65 of file SnapManager.h.
te::edit::SnapManager::SnapManager |
( |
| ) |
|
|
protected |
It initializes the singleton instance of the snap manager.
te::edit::SnapManager::~SnapManager |
( |
| ) |
|
|
protected |
void te::edit::SnapManager::buildSnap |
( |
const std::string & |
source, |
|
|
int |
srid, |
|
|
te::da::DataSet * |
dataset |
|
) |
| |
void te::edit::SnapManager::clear |
( |
const std::string & |
source | ) |
|
void te::edit::SnapManager::clearAll |
( |
| ) |
|
void te::edit::SnapManager::clearStrategies |
( |
| ) |
|
void te::edit::SnapManager::createSnap |
( |
const std::string & |
source, |
|
|
int |
srid |
|
) |
| |
It returns a reference to the singleton instance.
- Returns
- A reference to the singleton instance.
Snap* te::edit::SnapManager::getSnap |
( |
const std::string & |
source | ) |
const |
const std::map<std::string, Snap*>& te::edit::SnapManager::getSnaps |
( |
| ) |
const |
bool te::edit::SnapManager::hasSnap |
( |
const std::string & |
source | ) |
const |
void te::edit::SnapManager::removeSnap |
( |
const std::string & |
source | ) |
|
void te::edit::SnapManager::setWorld |
( |
const double & |
llx, |
|
|
const double & |
lly, |
|
|
const double & |
urx, |
|
|
const double & |
ury, |
|
|
const std::size_t & |
width, |
|
|
const std::size_t & |
height |
|
) |
| |
std::map<std::string, Snap*> te::edit::SnapManager::m_snaps |
|
private |
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/src/terralib/edit/SnapManager.h