It renders the objects associated to a query layer. More...
#include <QueryLayerRenderer.h>
Public Member Functions | |
void | draw (AbstractLayer *layer, Canvas *canvas, const te::gm::Envelope &bbox, int srid) |
It draws the layer geographic objects in the given canvas using the SRS informed. More... | |
QueryLayerRenderer () | |
~QueryLayerRenderer () | |
Destructor. More... | |
Private Member Functions | |
void | drawGeometries (QueryLayer *layer, Canvas *canvas, const te::gm::Envelope &bbox, int srid) |
void | drawRaster (QueryLayer *layer, Canvas *canvas, const te::gm::Envelope &bbox, const te::gm::Envelope &visibleArea, int srid) |
It renders the objects associated to a query layer.
Definition at line 48 of file QueryLayerRenderer.h.
te::map::QueryLayerRenderer::QueryLayerRenderer | ( | ) |
Constructor
Definition at line 68 of file QueryLayerRenderer.cpp.
te::map::QueryLayerRenderer::~QueryLayerRenderer | ( | ) |
Destructor.
Definition at line 72 of file QueryLayerRenderer.cpp.
|
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.
layer | The layer that will be drawn. |
canvas | The canvas were the layer objects will be drawn. |
bbox | The interest area to render the map. |
srid | The SRS to be used to draw the layer objects. |
Implements te::map::AbstractRenderer.
Definition at line 76 of file QueryLayerRenderer.cpp.
References te::map::AbstractLayer::getExtent(), te::map::QueryLayer::getSchema(), te::map::AbstractLayer::getSRID(), te::gm::Envelope::intersection(), te::gm::Envelope::intersects(), TE_TR, TE_UNKNOWN_SRS, and te::gm::Envelope::transform().
|
private |
Definition at line 122 of file QueryLayerRenderer.cpp.
References te::map::CanvasConfigurer::config(), te::se::CreateFeatureTypeStyle(), te::common::TaskProgress::DRAW, te::map::Canvas::draw(), te::dt::GEOMETRY_TYPE, te::map::QueryLayer::getData(), te::se::Rule::getFilter(), te::da::GetFirstGeomProperty(), te::da::GetFirstPropertyPos(), te::se::Style::getRule(), te::se::Style::getRules(), te::map::QueryLayer::getSchema(), te::map::AbstractLayer::getSRID(), te::map::AbstractLayer::getStyle(), te::se::Rule::getSymbolizers(), te::map::AbstractLayer::getTitle(), te::gm::INTERSECTS, te::map::AbstractLayer::setStyle(), TE_TR, and TE_UNKNOWN_SRS.
|
private |
Definition at line 251 of file QueryLayerRenderer.cpp.