26#ifndef __TERRALIB_EDIT_INTERNAL_SNAPMANAGER_H
27#define __TERRALIB_EDIT_INTERNAL_SNAPMANAGER_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.
Template support for singleton pattern.
A dataset is the unit of information manipulated by the data access module of TerraLib.
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)
const std::map< std::string, Snap * > & getSnaps() const
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.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
Namespace for the DataAccess API of TerraLib.
Namespace for the Vector Geometry module of TerraLib.
An utility struct for representing 2D coordinates.
Configuration flags for the TerraLib Edit module.
#define TEEDITEXPORT
You can use this macro in order to export/import classes and functions from this module.