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.
 
◆ SnapStrategies
◆ SnapStrategyFnctType
◆ SnapManager()
  
  
      
        
          | te::edit::SnapManager::SnapManager  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
It initializes the singleton instance of the snap manager. 
 
 
◆ ~SnapManager()
  
  
      
        
          | te::edit::SnapManager::~SnapManager  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ buildSnap()
      
        
          | void te::edit::SnapManager::buildSnap  | 
          ( | 
          const std::string &  | 
          source,  | 
        
        
           | 
           | 
          int  | 
          srid,  | 
        
        
           | 
           | 
          te::da::DataSet *  | 
          dataset  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ clear()
      
        
          | void te::edit::SnapManager::clear  | 
          ( | 
          const std::string &  | 
          source | ) | 
           | 
        
      
 
 
◆ clearAll()
      
        
          | void te::edit::SnapManager::clearAll  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ clearStrategies()
      
        
          | void te::edit::SnapManager::clearStrategies  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ createSnap()
      
        
          | void te::edit::SnapManager::createSnap  | 
          ( | 
          const std::string &  | 
          source,  | 
        
        
           | 
           | 
          int  | 
          srid  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ getInstance()
It returns a reference to the singleton instance. 
- Returns
 - A reference to the singleton instance. 
 
Definition at line 109 of file Singleton.h.
 
 
◆ getSnap()
      
        
          | Snap * te::edit::SnapManager::getSnap  | 
          ( | 
          const std::string &  | 
          source | ) | 
           const | 
        
      
 
 
◆ getSnaps()
      
        
          | const std::map< std::string, Snap * > & te::edit::SnapManager::getSnaps  | 
          ( | 
           | ) | 
           const | 
        
      
 
 
◆ hasSnap()
      
        
          | bool te::edit::SnapManager::hasSnap  | 
          ( | 
          const std::string &  | 
          source | ) | 
           const | 
        
      
 
 
◆ reg()
◆ removeSnap()
      
        
          | void te::edit::SnapManager::removeSnap  | 
          ( | 
          const std::string &  | 
          source | ) | 
           | 
        
      
 
 
◆ search()
◆ setWorld()
      
        
          | 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  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ te::common::Singleton< SnapManager >
◆ m_snaps
  
  
      
        
          | std::map<std::string, Snap*> te::edit::SnapManager::m_snaps | 
         
       
   | 
  
private   | 
  
 
 
◆ m_snapStrategies
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_release/src/terralib/edit/SnapManager.h