te::graph::LayerRenderer Class Reference

It renders the objects associated to a Layer. More...

#include <LayerRenderer.h>

Inheritance diagram for te::graph::LayerRenderer:
te::map::AbstractRenderer

Public Member Functions

Initializer Methods

Methods related to instantiation and destruction.

 LayerRenderer ()
 
 ~LayerRenderer ()
 Destructor. More...
 
Implementation of Pure Virtual Methods from AbstractLayer

Every subclass must implent this interface.

virtual void draw (te::map::AbstractLayer *layer, te::map::Canvas *canvas, const te::gm::Envelope &bbox, int srid, const double &scale)
 It draws the layer geographic objects in the given canvas using the informed SRS. More...
 

Protected Member Functions

int checkEdgeGeometryProperty (te::graph::AbstractGraph *g)
 Verify if the graph layer has a geometry to define the edges elements. More...
 
int checkVertexGeometryProperty (te::graph::AbstractGraph *g)
 Verify if the graph layer has a geometry to define the vertexs elements. More...
 
void configDefaultLine (te::map::Canvas *canvas)
 Configs the canvas with default values for line styles. More...
 
void configDefaultPoint (te::map::Canvas *canvas)
 Configs the canvas with default values for point styles. More...
 
void configLoopPoint (te::map::Canvas *canvas)
 Configs the canvas with default values for point styles. More...
 
void drawDataSourceGraph (te::graph::AbstractGraph *g, te::map::Canvas *canvas, const te::gm::Envelope &bbox)
 
void drawMemoryGraph (te::graph::AbstractGraph *g, te::map::Canvas *canvas, const te::gm::Envelope &bbox, int srid)
 

Private Member Functions

Copy Constructor and Assignment Operator

Copy constructor and assignment operator not allowed.

 LayerRenderer (const LayerRenderer &rhs)
 Copy constructor not allowed. More...
 
LayerRendereroperator= (const LayerRenderer &rhs)
 Assignment operator not allowed. More...
 

Detailed Description

It renders the objects associated to a Layer.

See also
Layer, AbstractRenderer, Canvas

Definition at line 57 of file LayerRenderer.h.

Constructor & Destructor Documentation

te::graph::LayerRenderer::LayerRenderer ( )

Constructor

te::graph::LayerRenderer::~LayerRenderer ( )

Destructor.

te::graph::LayerRenderer::LayerRenderer ( const LayerRenderer rhs)
private

Copy constructor not allowed.

Parameters
rhsThe right-hand-side copy that would be used to copy from.

Member Function Documentation

int te::graph::LayerRenderer::checkEdgeGeometryProperty ( te::graph::AbstractGraph g)
protected

Verify if the graph layer has a geometry to define the edges elements.

int te::graph::LayerRenderer::checkVertexGeometryProperty ( te::graph::AbstractGraph g)
protected

Verify if the graph layer has a geometry to define the vertexs elements.

void te::graph::LayerRenderer::configDefaultLine ( te::map::Canvas canvas)
protected

Configs the canvas with default values for line styles.

void te::graph::LayerRenderer::configDefaultPoint ( te::map::Canvas canvas)
protected

Configs the canvas with default values for point styles.

void te::graph::LayerRenderer::configLoopPoint ( te::map::Canvas canvas)
protected

Configs the canvas with default values for point styles.

virtual void te::graph::LayerRenderer::draw ( te::map::AbstractLayer layer,
te::map::Canvas canvas,
const te::gm::Envelope bbox,
int  srid,
const double &  scale 
)
virtual

It draws the layer geographic objects in the given canvas using the informed SRS.

The informed bounding box (bbox) is used to constraint the Layer objects to be drawn. The bbox coordinates must be in the Spatial Reference System given by srid.

Parameters
layerThe layer to be rendered.
canvasThe canvas were the layer objects will be drawn.
bboxThe interest area to render the map.
sridThe SRS to be used to draw the layer objects.

Implements te::map::AbstractRenderer.

void te::graph::LayerRenderer::drawDataSourceGraph ( te::graph::AbstractGraph g,
te::map::Canvas canvas,
const te::gm::Envelope bbox 
)
protected
void te::graph::LayerRenderer::drawMemoryGraph ( te::graph::AbstractGraph g,
te::map::Canvas canvas,
const te::gm::Envelope bbox,
int  srid 
)
protected
LayerRenderer& te::graph::LayerRenderer::operator= ( const LayerRenderer rhs)
private

Assignment operator not allowed.

Parameters
rhsThe right-hand-side copy that would be used to copy from.
Returns
A reference to this object.

The documentation for this class was generated from the following file: