29 #include "../../../dataaccess/dataset/DataSet.h" 30 #include "../../../dataaccess/dataset/ObjectIdSet.h" 31 #include "../../../dataaccess/utils/Utils.h" 32 #include "../../../maptools/AbstractLayer.h" 33 #include "../../widgets/charts/ChartConfigurer.h" 34 #include "../../widgets/charts/ChartDisplayWidget.h" 35 #include "../events/LayerEvents.h" 36 #include "../ApplicationController.h" 54 m_displayWidget(displayWidget),
61 setAttribute(Qt::WA_DeleteOnClose,
true);
121 for(std::list<te::map::AbstractLayerPtr>::iterator it = ev->
m_layers.begin(); it != ev->
m_layers.end(); ++it)
143 std::set<te::da::ObjectId*, te::common::LessCmp<te::da::ObjectId*> >::const_iterator itObjSet;
144 for(itObjSet = oids->
begin(); itObjSet != oids->
end(); ++itObjSet)
148 removed->
add(*itObjSet);
160 std::vector<std::size_t> objIdIdx;
163 std::vector<size_t>::iterator it;
165 for(it=objIdIdx.begin(); it!=objIdIdx.end(); ++it)
172 ds->moveBeforeFirst();
174 size_t numProp = ds->getNumProperties();
177 for(
size_t i=0; i<numProp; i++)
virtual std::unique_ptr< te::gm::Geometry > getGeometry(std::size_t i) const =0
Method for retrieving a geometric attribute value.
virtual const std::string & getId() const
It returns the layer id.
This is the base class for layers.
te::map::AbstractLayerPtr m_layer
Layer whose selected objects were changed.
virtual const std::string & getTitle() const
It returns the layer title.
A base class for application events.
The base API for TerraLib applications.
static te::dt::Date ds(2010, 01, 01)
void addProperty(const std::string &name, std::size_t pos, int type)
It adds a property that will be used to generate the unique ids.
This event indicates that the selected objects of the layer were changed.
void Union(const Envelope &rhs)
It updates the envelop with coordinates of another envelope.
virtual bool moveNext()=0
It moves the internal pointer to the next item of the collection.
const Envelope * getMBR() const _NOEXCEPT_OP(true)
It returns the minimum bounding rectangle for the geometry in an internal representation.
An Envelope defines a 2D rectangular region.
This class represents a set of unique ids created in the same context. i.e. from the same data set...
std::size_t size() const
It returns the object id set size.
virtual std::unique_ptr< LayerSchema > getSchema() const =0
It returns the layer schema.
virtual void clearSelected()
It clears the selected group of this Layer.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
virtual void select(te::da::ObjectIdSet *oids)
It adds the given oids to the selected group of this Layer.
A dataset is the unit of information manipulated by the data access module of TerraLib.
virtual const te::da::ObjectIdSet * getSelected() const
It returns the selected group of this Layer.
void remove(ObjectId *oid)
Removes the object id from set.
TEDATAACCESSEXPORT void GetOIDPropertyPos(const DataSetType *type, std::vector< std::size_t > &ppos)
virtual std::unique_ptr< te::da::DataSet > getData(te::common::TraverseType travType=te::common::FORWARDONLY, const te::common::AccessPolicy accessPolicy=te::common::RAccess) const =0
It gets the dataset identified by the layer name.
std::set< ObjectId *, te::common::LessCmp< ObjectId * > >::const_iterator end() const
Returns an iterator for the object ids in container.
void clear()
It clears this object id set.
bool contains(ObjectId *oid) const
It returns if the object id set contains the given oid.
void add(ObjectId *oid)
It adds an object id to this object id set.
std::list< te::map::AbstractLayerPtr > m_layers
Layer removed.
std::set< ObjectId *, te::common::LessCmp< ObjectId * > >::const_iterator begin() const
Returns an iterator for the object ids in container.
ObjectIdSet * clone() const
virtual void deselect(const te::da::ObjectIdSet *oids)
It removes the given oids from the selected group of this Layer.