26 #ifndef __TERRALIB_MAPTOOLS_INTERNAL_ABSTRACTLAYER_H
27 #define __TERRALIB_MAPTOOLS_INTERNAL_ABSTRACTLAYER_H
30 #include "../common/Enums.h"
31 #include "../common/TreeItem.h"
32 #include "../dataaccess/dataset/DataSet.h"
33 #include "../dataaccess/dataset/DataSetType.h"
34 #include "../geometry/Enums.h"
35 #include "../geometry/Envelope.h"
46 namespace dt {
class Property; }
54 namespace gm {
class Geometry; }
56 namespace se {
class Style; }
112 virtual const std::string& getId()
const;
119 virtual void setId(
const std::string&
id);
126 virtual const std::string& getTitle()
const;
133 virtual void setTitle(
const std::string& title);
140 std::vector<te::map::AbstractLayer*> getDescendants();
147 std::vector<te::map::AbstractLayer*> getAncestors();
172 bool hasVisibilityChanged();
179 void setVisibilityAsChanged(
bool visChanged);
184 void updateVisibilityOfAncestors();
189 virtual void updateVisibility();
212 virtual int getSRID()
const;
219 virtual void setSRID(
int srid);
251 virtual void clearSelected();
314 virtual std::auto_ptr<LayerSchema> getSchema()
const = 0;
360 virtual std::auto_ptr<te::da::DataSet> getData(
const std::string& propertyName,
390 virtual std::auto_ptr<te::da::DataSet> getData(
const std::string& propertyName,
445 virtual const std::string& getType()
const = 0;
454 virtual bool isValid()
const = 0;
488 #endif // __TERRALIB_MAPTOOLS_INTERNAL_ABSTRACTLAYER_H
te::map::Grouping * m_grouping
The grouping information.
This class represents a set of unique ids created in the same context. i.e. from the same data set...
This class contains the parameters needed for grouping the values of a Property.
This abstract class describes a basic item to be organized in a tree-oriented way.
This is the base class for layers.
A canvas is an abstraction of a drawing area.
#define TEMAPEXPORT
You can use this macro in order to export/import classes and functions from this module.
te::da::ObjectIdSet * m_selected
The selected group of the layer.
te::gm::Envelope m_mbr
The layer bounding box.
Visibility
Each layer can have three states of visibility.
int m_srid
The identifier of the layer spatial reference system.
std::string m_id
Layer id.
SpatialRelation
Spatial relations between geometric objects.
std::string m_title
A brief description of this Layer that can be used by applications to show a text identifying this la...
AccessPolicy
Supported data access policies (can be used as bitfield).
te::map::Chart * m_chart
The chart information.
te::se::Style * m_style
The style to be applied to the geographic objects in the layer.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
TraverseType
A dataset can be traversed in two ways:
Visibility m_visibility
It indicates the layer visibility.
The Style defines the styling that is to be applied to a geographic dataset (vector geometries or cov...
A class that models the description of a dataset.
bool m_visibilityChanged
It indicates if the layer visibility has changed.
This is an abstract class that models a query expression.
This class represents the informations needed to build map charts.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
An Envelope defines a 2D rectangular region.
te::da::DataSetType LayerSchema
A wdiget used to customize a chart's style parameters.