26 #ifndef __TERRALIB_EDIT_INTERNAL_SNAP_H 
   27 #define __TERRALIB_EDIT_INTERNAL_SNAP_H 
   30 #include "../srs/Config.h" 
   71         std::string getSource() 
const;
 
   75         std::size_t getNGeometries() 
const;
 
   77         std::size_t getMaxGeometries() 
const;
 
   79         double getTolerance() 
const;
 
   81         void setTolerance(
const double& t);
 
   83         void setWorld(
const double& llx, 
const double& lly,
 
   84                       const double& urx, 
const double& ury,
 
   85                       const std::size_t& width, 
const std::size_t& height);
 
   95         virtual void clear() = 0;
 
   97         virtual std::string getName() 
const = 0;
 
   99         virtual std::string getDescription() 
const = 0;
 
  120 #endif  // __TERRALIB_EDIT_INTERNAL_SNAP_H 
This class implements geometry snap concept. 
 
#define TEEDITEXPORT
You can use this macro in order to export/import classes and functions from this module. 
 
double m_tolerance
The tolerance that will be used by the snap. For while, the unit is screen pixels. 
 
An utility struct for representing 2D coordinates. 
 
std::size_t m_nGeometries
The current number of geometries added to the snap. 
 
An Envelope defines a 2D rectangular region. 
 
#define TE_UNKNOWN_SRS
A numeric value to represent a unknown SRS identification in TerraLib. 
 
Configuration flags for the TerraLib Edit module. 
 
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards. 
 
A dataset is the unit of information manipulated by the data access module of TerraLib. 
 
std::string m_source
The source of the geometries. 
 
te::map::WorldDeviceTransformer * m_transformer
For transforming from device coordinate to world coordinate and vice-versa. 
 
int m_srid
The SRS of the geometries. 
 
std::size_t m_maxGeometries
The maximum number of geometries that can be added to the snap. If 0, there will be not limit...