te::map::AbstractRenderer Class Referenceabstract

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

#include <AbstractRenderer.h>

Inheritance diagram for te::map::AbstractRenderer:
te::graph::LayerRenderer te::map::AbstractLayerRenderer te::map::QueryLayerRenderer te::ws::ogc::wms::WMSLayerRenderer

Public Member Functions

Initializer Methods

Methods related to instantiation and destruction.

 AbstractRenderer ()
 Default Constructor. More...
 
virtual ~AbstractRenderer ()
 Virtual Destructor. More...
 
Pure Virtual Methods

Methods that subclasses must implement.

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

Private Member Functions

Copy Constructor and Assignment Operator

Copy constructor and assignment operator not allowed.

 AbstractRenderer (const AbstractRenderer &rhs)
 Copy constructor not allowed. More...
 
AbstractRendereroperator= (const AbstractRenderer &rhs)
 Assignment operator not allowed. More...
 

Detailed Description

It renders the objects associated to a layer.

The renderer will be responsible for:

  • locate/retrieve the objects associated to the layer
  • set the canvas with the appropriated style rules to draw the objects
  • make use of a canvas to draw the objects
See also
AbstractLayer, Canvas, RendererFactory, FeatureTypeStyleRenderer, CoverageStyleRenderer, DataSetLayerRenderer, QueryLayerRenderer

Definition at line 61 of file AbstractRenderer.h.

Constructor & Destructor Documentation

◆ AbstractRenderer() [1/2]

te::map::AbstractRenderer::AbstractRenderer ( )
inline

Default Constructor.

Definition at line 71 of file AbstractRenderer.h.

◆ ~AbstractRenderer()

virtual te::map::AbstractRenderer::~AbstractRenderer ( )
inlinevirtual

Virtual Destructor.

Definition at line 74 of file AbstractRenderer.h.

◆ AbstractRenderer() [2/2]

te::map::AbstractRenderer::AbstractRenderer ( const AbstractRenderer rhs)
private

Copy constructor not allowed.

Parameters
rhsThe renderer that would be copied.

Member Function Documentation

◆ draw()

virtual void te::map::AbstractRenderer::draw ( AbstractLayer layer,
Canvas canvas,
const te::gm::Envelope bbox,
int  srid,
const double &  scale,
bool *  cancel 
)
pure virtual

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

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 that will be drawn.
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.
scaleThe current scale to draw the layer.

Implemented in te::graph::LayerRenderer, te::map::AbstractLayerRenderer, te::map::QueryLayerRenderer, and te::ws::ogc::wms::WMSLayerRenderer.

◆ operator=()

AbstractRenderer& te::map::AbstractRenderer::operator= ( const AbstractRenderer rhs)
private

Assignment operator not allowed.

Parameters
rhsThe renderer whose contents would be assigned to this renderer.
Returns
A reference to this renderer.

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