58 bool resultFound =
false;
95 draft->fill(Qt::transparent);
147 std::size_t count = 0;
148 std::vector<std::size_t> vecPos;
162 if (vecPos.size() > 1)
163 lastPos = vecPos.at(vecPos.size() - 2);
virtual ~AddCommand()
Destructor.
QUndoStack * getUndoStack()
Method that return stack of Undo/Redo.
virtual void undo()
Reimplemented from QUndoCommand.
const std::vector< Feature * > & getAddWatches() const
te::map::AbstractLayerPtr m_layer
This is a singleton for managing edit repositories.
static T & getInstance()
It returns a reference to the singleton instance.
An Envelope defines a 2D rectangular region.
virtual int getSRID() const
It return the Spatial Reference System used by the Map Display.
This class represents an unique id for a data set element.
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)
std::string getValueAsString() const
It gets the properties values used to uniquely identify a data set element as string.
te::qt::widgets::MapDisplay * m_display
void removeFeature(const std::string &source, te::da::ObjectId *id)
This is a singleton for rendering geometries and features.
bool hasIdentify(const std::string &source, te::da::ObjectId *id)
AddCommand(te::qt::widgets::MapDisplay *display, const te::map::AbstractLayerPtr &layer, te::da::ObjectId *id, QUndoCommand *parent=0)
virtual void redo()
Reimplemented from QUndoCommand.
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 addFeature(const std::string &source, Feature *f)
std::size_t countFeaturesById(te::da::ObjectId *id, std::size_t &lastPos)
UndoStackManager & m_stack
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
bool isValid() const
It tells if the rectangle is valid or not.