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),
62 assert(m_renderer.get());
63 m_renderer->draw(
this, canvas, bbox, srid);
76 if(m_graph->getMetadata())
85 return m_renderer.get();
90 m_renderer.reset(renderer);
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. ...
Abstract class used to define the main functions of graph struct. All graph implementations must used...
static const std::string sm_type
A static data member used in the implementation of getType method.
void setGraph(te::graph::AbstractGraph *ds)
It sets the graph associated to the layer.
virtual bool isValid() const
It returns true if the layer can be drawn, otherwise, it returns false.
A canvas is an abstraction of a drawing area.
Layer(const std::string &id, const std::string &title, AbstractLayer *parent=0)
It initializes a new Layer.
It renders the objects associated to a Layer.
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.
virtual const std::string & getType() const
It returns the layer type.
te::graph::AbstractGraph * getGraph() const
It returns the graph associated to the layer.
An Envelope defines a 2D rectangular region.
It renders the objects associated to a Layer.