te::map::QueryLayerRenderer Class Reference

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

#include <QueryLayerRenderer.h>

Inheritance diagram for te::map::QueryLayerRenderer:
te::map::AbstractRenderer

Public Member Functions

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

Private Member Functions

void buildChart (const Chart *chart, te::da::DataSet *dataset, te::gm::Geometry *geom)
 
void buildChart (const Chart *chart, const std::map< std::string, double > &chartValue, te::gm::Geometry *geom)
 
void drawDatSetGeometries (te::da::DataSet *dataset, const std::size_t &gpos, Canvas *canvas, int fromSRID, int toSRID, Chart *chart, te::common::TaskProgress *task=0)
 It draws the data set geometries in the given canvas using the informed SRS. More...
 
void drawLayerGeometries (AbstractLayer *layer, const std::string &geomPropertyName, te::se::FeatureTypeStyle *style, Canvas *canvas, const te::gm::Envelope &bbox, int srid)
 It draws the abstract layer in the given canvas using the SRS informed. More...
 
void drawLayerGrouping (AbstractLayer *layer, const std::string &geomPropertyName, Canvas *canvas, const te::gm::Envelope &bbox, int srid)
 It draws the grouping of the abstract layer in the given canvas using the SRS informed. More...
 
void drawLayerGroupingMem (AbstractLayer *layer, const std::string &geomPropertyName, Canvas *canvas, const te::gm::Envelope &bbox, int srid)
 It draws the grouping of the abstract layer in the given canvas using the SRS informed. More...
 
void drawLayerLinkedGroupingMem (AbstractLayer *layer, const std::string &geomPropertyName, Canvas *canvas, const te::gm::Envelope &bbox, int srid)
 
void reset ()
 

Private Attributes

std::vector< te::gm::Coord2Dm_chartCoordinates
 
std::vector< te::color::RGBAColor ** > m_chartImages
 
std::size_t m_index
 
std::vector< std::string > m_oid
 
te::sam::rtree::Index< std::size_t, 8 > m_rtree
 
WorldDeviceTransformer m_transformer
 

Detailed Description

It renders the objects associated to a query layer.

See also
AbstractLayer, AbstractRenderer, DataSetLayerRenderer, Canvas, te::se::Style, QueryLayer

Definition at line 76 of file QueryLayerRenderer.h.

Constructor & Destructor Documentation

te::map::QueryLayerRenderer::QueryLayerRenderer ( )

Constructor

te::map::QueryLayerRenderer::~QueryLayerRenderer ( )

Destructor.

Member Function Documentation

void te::map::QueryLayerRenderer::buildChart ( const Chart chart,
te::da::DataSet dataset,
te::gm::Geometry geom 
)
private
void te::map::QueryLayerRenderer::buildChart ( const Chart chart,
const std::map< std::string, double > &  chartValue,
te::gm::Geometry geom 
)
private
void te::map::QueryLayerRenderer::draw ( AbstractLayer layer,
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 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.

Implements te::map::AbstractRenderer.

void te::map::QueryLayerRenderer::drawDatSetGeometries ( te::da::DataSet dataset,
const std::size_t &  gpos,
Canvas canvas,
int  fromSRID,
int  toSRID,
Chart chart,
te::common::TaskProgress task = 0 
)
private

It draws the data set geometries in the given canvas using the informed SRS.

Parameters
datasetThe data set that will be drawn.
gposThe geometry property position that will be drawn.
canvasThe canvas were the data set geometries will be drawn.
fromSRIDThe SRID of data set geometries.
sridThe SRID to be used to draw the data set geometries.
chartChart informations that can be used.
taskAn optional task that can be used cancel the draw process.
void te::map::QueryLayerRenderer::drawLayerGeometries ( AbstractLayer layer,
const std::string &  geomPropertyName,
te::se::FeatureTypeStyle style,
Canvas canvas,
const te::gm::Envelope bbox,
int  srid 
)
private

It draws the abstract layer in the given canvas using the SRS informed.

The informed bounding box (bbox) is used to constraint the layer objects to be drawn. Here, we assume that the given bbox was pre-processed. i.e. the bbox was clipped and contains the same projection of abstract layer.

Parameters
layerThe abstract layer that will be drawn.
geomPropertyNameThe geometry property name that will be drawn.
styleThe style that will be used.
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.
Note
This method consider that the given layer contains vetorial data.
void te::map::QueryLayerRenderer::drawLayerGrouping ( AbstractLayer layer,
const std::string &  geomPropertyName,
Canvas canvas,
const te::gm::Envelope bbox,
int  srid 
)
private

It draws the grouping of the abstract layer in the given canvas using the SRS informed.

The informed bounding box (bbox) is used to constraint the layer objects to be drawn. Here, we assume that the given bbox was pre-processed. i.e. the bbox was clipped and contains the same projection of abstract layer.

Parameters
layerThe abstract layer that will be drawn.
geomPropertyNameThe geometry property name 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.
Note
This method consider that the given layer contains vetorial data.
void te::map::QueryLayerRenderer::drawLayerGroupingMem ( AbstractLayer layer,
const std::string &  geomPropertyName,
Canvas canvas,
const te::gm::Envelope bbox,
int  srid 
)
private

It draws the grouping of the abstract layer in the given canvas using the SRS informed.

The informed bounding box (bbox) is used to constraint the layer objects to be drawn. Here, we assume that the given bbox was pre-processed. i.e. the bbox was clipped and contains the same projection of abstract layer.

Parameters
layerThe abstract layer that will be drawn.
geomPropertyNameThe geometry property name 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.
Note
This method consider that the given layer contains vetorial data.
This method retrieves the layer data using only spatial extent restriction and performs the grouping in memory.
void te::map::QueryLayerRenderer::drawLayerLinkedGroupingMem ( AbstractLayer layer,
const std::string &  geomPropertyName,
Canvas canvas,
const te::gm::Envelope bbox,
int  srid 
)
private
void te::map::QueryLayerRenderer::reset ( )
private

Member Data Documentation

std::vector<te::gm::Coord2D> te::map::QueryLayerRenderer::m_chartCoordinates
private

Definition at line 186 of file QueryLayerRenderer.h.

std::vector<te::color::RGBAColor**> te::map::QueryLayerRenderer::m_chartImages
private

Definition at line 185 of file QueryLayerRenderer.h.

std::size_t te::map::QueryLayerRenderer::m_index
private

Definition at line 184 of file QueryLayerRenderer.h.

std::vector<std::string> te::map::QueryLayerRenderer::m_oid
private

Definition at line 187 of file QueryLayerRenderer.h.

te::sam::rtree::Index<std::size_t, 8> te::map::QueryLayerRenderer::m_rtree
private

Definition at line 183 of file QueryLayerRenderer.h.

WorldDeviceTransformer te::map::QueryLayerRenderer::m_transformer
private

Definition at line 182 of file QueryLayerRenderer.h.


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