Go to the documentation of this file.
   26 #ifndef __TERRALIB_EDIT_INTERNAL_SNAP_H 
   27 #define __TERRALIB_EDIT_INTERNAL_SNAP_H 
   30 #include "../srs/Config.h" 
   53     class WorldDeviceTransformer;
 
   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);
 
  120 #endif  // __TERRALIB_EDIT_INTERNAL_SNAP_H 
  
 
te::map::WorldDeviceTransformer * m_transformer
For transforming from device coordinate to world coordinate and vice-versa.
 
std::string m_source
The source of the geometries.
 
An Envelope defines a 2D rectangular region.
 
void build(te::da::DataSet *dataset)
 
This class implements geometry snap concept.
 
virtual bool search(const te::gm::Envelope &e, te::gm::Coord2D &result)=0
 
virtual void add(te::gm::Geometry *geom)=0
 
#define TE_UNKNOWN_SRS
A numeric value to represent a unknown SRS identification in TerraLib.
 
#define TEEDITEXPORT
You can use this macro in order to export/import classes and functions from this module.
 
void setTolerance(const double &t)
 
double m_tolerance
The tolerance that will be used by the snap. For while, the unit is screen pixels.
 
int m_srid
The SRS of the geometries.
 
std::size_t getNGeometries() const
 
std::size_t getMaxGeometries() const
 
std::size_t m_maxGeometries
The maximum number of geometries that can be added to the snap. If 0, there will be not limit.
 
virtual std::string getDescription() const =0
 
double getTolerance() const
 
An utility struct for representing 2D coordinates.
 
Snap(const std::string &source, int srid=TE_UNKNOWN_SRS)
 
std::string getSource() const
 
A dataset is the unit of information manipulated by the data access module of TerraLib.
 
Proxy configuration file for TerraView (see terraview_config.h).
 
te::gm::Envelope getSearchEnvelope(const te::gm::Coord2D &coord) const
 
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 add(te::da::DataSet *dataset)
 
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
 
virtual std::string getName() const =0
 
virtual bool search(const te::gm::Coord2D &coord, te::gm::Coord2D &result)
 
std::size_t m_nGeometries
The current number of geometries added to the snap.