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