26 #ifndef __TERRALIB_EDIT_INTERNAL_SNAPMANAGER_H
27 #define __TERRALIB_EDIT_INTERNAL_SNAPMANAGER_H
30 #include "../common/Singleton.h"
34 #include <boost/function.hpp>
74 bool hasSnap(
const std::string& source)
const;
82 const std::map<std::string, Snap*>&
getSnaps()
const;
86 void clear(
const std::string& source);
92 void setWorld(
const double& llx,
const double& lly,
93 const double& urx,
const double& ury,
94 const std::size_t& width,
const std::size_t& height);
Template support for singleton pattern.
A dataset is the unit of information manipulated by the data access module of TerraLib.
This is a singleton for managing geometries snap.
const std::map< std::string, Snap * > & getSnaps() const
bool search(const te::gm::Coord2D &coord, int srid, te::gm::Coord2D &result)
void createSnap(const std::string &source, int srid)
void setWorld(const double &llx, const double &lly, const double &urx, const double &ury, const std::size_t &width, const std::size_t &height)
void reg(const std::string &name, const SnapStrategyFnctType &strategy)
std::map< std::string, Snap * > m_snaps
void removeSnap(const std::string &source)
std::map< std::string, SnapStrategyFnctType > SnapStrategies
bool hasSnap(const std::string &source) const
void clear(const std::string &source)
~SnapManager()
Singleton destructor.
Snap * getSnap(const std::string &source) const
SnapStrategies m_snapStrategies
boost::function< Snap *(const std::string &source, int srid)> SnapStrategyFnctType
void buildSnap(const std::string &source, int srid, te::da::DataSet *dataset)
SnapManager()
It initializes the singleton instance of the snap manager.
This class implements geometry snap concept.
An utility struct for representing 2D coordinates.
#define TEEDITEXPORT
You can use this macro in order to export/import classes and functions from this module.
Proxy configuration file for TerraView (see terraview_config.h).