27 #include "../../geometry/Envelope.h"
28 #include "../../se/FeatureTypeStyle.h"
29 #include "../../se/Style.h"
30 #include "../core/AbstractGraph.h"
31 #include "../core/GraphMetadata.h"
38 te::map::AbstractLayer(id, title, parent),
52 return std::auto_ptr<te::da::DataSetType>();
60 return std::auto_ptr<te::da::DataSet>();
70 return std::auto_ptr<te::da::DataSet>();
81 return std::auto_ptr<te::da::DataSet>();
90 return std::auto_ptr<te::da::DataSet>();
99 return std::auto_ptr<te::da::DataSet>();
115 assert(m_renderer.get());
116 m_renderer->draw(
this, canvas, bbox, srid);
129 if(m_graph->getMetadata())
131 this->setSRID(m_graph->getMetadata()->getSRID());
132 this->setExtent(*m_graph->getMetadata()->getEnvelope());
138 return m_renderer.get();
143 m_renderer.reset(renderer);
void setGraph(te::graph::AbstractGraph *ds)
It sets the graph associated to the layer.
virtual std::auto_ptr< te::da::DataSet > getData(te::common::TraverseType travType=te::common::FORWARDONLY, const te::common::AccessPolicy accessPolicy=te::common::RAccess) const
It gets the dataset identified by the layer name.
virtual std::auto_ptr< te::da::DataSetType > getSchema() const
It returns the layer schema.
te::graph::AbstractGraph * getGraph() const
It returns the graph associated to the layer.
virtual bool isValid() const
It returns true if the layer can be drawn, otherwise, it returns false.
SpatialRelation
Spatial relations between geometric objects.
This is an abstract class that models a query expression.
It renders the objects associated to a Layer.
AccessPolicy
Supported data access policies (can be used as bitfield).
TraverseType
A dataset can be traversed in two ways:
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...
Abstract class used to define the main functions of graph struct. All graph implementations must used...
Layer(const std::string &id, const std::string &title, AbstractLayer *parent=0)
It initializes a new Layer.
virtual const std::string & getType() const
It returns the layer type.
LayerRenderer * getRenderer() const
It returns the renderer used to paint this layer.
void setRenderer(LayerRenderer *renderer)
It sets the renderer used to paint this layer.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
It renders the objects associated to a Layer.
A canvas is an abstraction of a drawing area.
virtual void draw(te::map::Canvas *canvas, const te::gm::Envelope &bbox, int srid)
It draws the layer geographic objects in the given canvas using the informed SRS. ...
static const std::string sm_type
A static data member used in the implementation of getType method.