26#ifndef __TERRALIB_EDIT_INTERNAL_SNAP_H
27#define __TERRALIB_EDIT_INTERNAL_SNAP_H
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);
A dataset is the unit of information manipulated by the data access module of TerraLib.
void setTolerance(const double &t)
int m_srid
The SRS of the geometries.
Snap(const std::string &source, int srid=TE_UNKNOWN_SRS)
void setWorld(const double &llx, const double &lly, const double &urx, const double &ury, const std::size_t &width, const std::size_t &height)
std::size_t getMaxGeometries() const
virtual void add(te::gm::Geometry *geom)=0
std::string getSource() const
te::gm::Envelope getSearchEnvelope(const te::gm::Coord2D &coord) const
std::size_t m_nGeometries
The current number of geometries added to the snap.
std::size_t m_maxGeometries
The maximum number of geometries that can be added to the snap. If 0, there will be not limit.
std::size_t getNGeometries() const
virtual bool search(const te::gm::Coord2D &coord, te::gm::Coord2D &result)
virtual std::string getDescription() const =0
double getTolerance() const
double m_tolerance
The tolerance that will be used by the snap. For while, the unit is screen pixels.
virtual std::string getName() const =0
void build(te::da::DataSet *dataset)
void add(te::da::DataSet *dataset)
virtual bool search(const te::gm::Envelope &e, te::gm::Coord2D &result)=0
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.
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.
Namespace for the Map Tools 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.
Configuration flags for the TerraLib SRS module.
#define TE_UNKNOWN_SRS
A numeric value to represent a unknown SRS identification in TerraLib.