26 #ifndef __TERRALIB_GRAPH_INTERNAL_LAYERRENDERER_H
27 #define __TERRALIB_GRAPH_INTERNAL_LAYERRENDERER_H
30 #include "../../maptools/AbstractRenderer.h"
31 #include "../Config.h"
37 namespace gm {
class Envelope; }
An Envelope defines a 2D rectangular region.
Abstract class used to define the main functions of graph struct. All graph implementations must used...
It renders the objects associated to a Layer.
LayerRenderer(const LayerRenderer &rhs)
Copy constructor not allowed.
virtual void draw(te::map::AbstractLayer *layer, te::map::Canvas *canvas, const te::gm::Envelope &bbox, int srid, const double &scale, bool *cancel)
It draws the layer geographic objects in the given canvas using the informed SRS.
void configDefaultLine(te::map::Canvas *canvas)
Configs the canvas with default values for line styles.
void drawMemoryGraph(te::graph::AbstractGraph *g, te::map::Canvas *canvas, const te::gm::Envelope &bbox, int srid)
int checkVertexGeometryProperty(te::graph::AbstractGraph *g)
Verify if the graph layer has a geometry to define the vertexs elements.
void configLoopPoint(te::map::Canvas *canvas)
Configs the canvas with default values for point styles.
void configDefaultPoint(te::map::Canvas *canvas)
Configs the canvas with default values for point styles.
~LayerRenderer()
Destructor.
void drawDataSourceGraph(te::graph::AbstractGraph *g, te::map::Canvas *canvas, const te::gm::Envelope &bbox)
int checkEdgeGeometryProperty(te::graph::AbstractGraph *g)
Verify if the graph layer has a geometry to define the edges elements.
LayerRenderer & operator=(const LayerRenderer &rhs)
Assignment operator not allowed.
This is the base class for layers.
It renders the objects associated to a layer.
A canvas is an abstraction of a drawing area.
#define TEGRAPHEXPORT
You can use this macro in order to export/import classes and functions from this module.