27 #include "../../../geometry/Envelope.h" 28 #include "../../../geometry/Geometry.h" 29 #include "../../../geometry/Point.h" 30 #include "../../../qt/widgets/canvas/MapDisplay.h" 31 #include "../../../qt/widgets/Utils.h" 32 #include "../../Feature.h" 33 #include "../../RepositoryManager.h" 34 #include "../../Utils.h" 35 #include "../Renderer.h" 40 #include <QMessageBox> 41 #include <QMouseEvent> 60 if (e->button() != Qt::LeftButton)
86 if(e->button() != Qt::LeftButton)
106 draft->fill(Qt::transparent);
119 renderer.
draw(point);
virtual const std::string & getId() const
It returns the layer id.
void setSRID(int srid) _NOEXCEPT_OP(true)
It sets the Spatial Reference System ID of the Point.
An utility struct for representing 2D coordinates.
void setOperationTypeId(const te::edit::OperationType ¤tOperationType)
static T & getInstance()
It returns a reference to the singleton instance.
A point with x and y coordinate values.
An Envelope defines a 2D rectangular region.
virtual int getSRID() const
It return the Spatial Reference System used by the Map Display.
TEEDITQTEXPORT QPointF GetPosition(QMouseEvent *e)
virtual const te::gm::Envelope & getExtent() const
It returns the world extent showned by the MapDisplay.
void draw(te::gm::Geometry *geom, bool showVertexes=false)
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
This is a singleton for rendering geometries and features.
TEEDITEXPORT void TrySnap(te::gm::Coord2D &coord, int srid)
void begin(QPaintDevice *device, const te::gm::Envelope &e, int srid)
void drawRepository(const std::string &source, const te::gm::Envelope &e, int srid)
void setGeometry(te::gm::Geometry *geom)
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
bool isValid() const
It tells if the rectangle is valid or not.