libosmscout  0.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
osmscout::SymbolRenderer Class Referenceabstract

#include <SymbolRenderer.h>

+ Inheritance diagram for osmscout::SymbolRenderer:

Public Member Functions

virtual void Render (const Projection &projection, const Symbol &symbol, const Vertex2D &mapCenter, double scaleFactor=1.0)
 
virtual void Render (const Projection &projection, const Symbol &symbol, const Vertex2D &mapCenter, std::function< void()> afterRenderTransformer, std::function< void()> afterEndTransformer, double scaleFactor=1.0)
 
virtual ~SymbolRenderer ()=default
 

Protected Member Functions

virtual void BeginPrimitive ()
 
virtual void DrawCircle (double x, double y, double radius)=0
 
virtual void DrawPolygon (const std::vector< Vertex2D > &polygonPixels)=0
 
virtual void DrawRect (double x, double y, double w, double h)=0
 
virtual void EndPrimitive ()
 
virtual void SetBorder (const BorderStyleRef &borderStyle, double screenMmInPixel)=0
 
virtual void SetFill (const FillStyleRef &fillStyle)=0
 

Constructor & Destructor Documentation

◆ ~SymbolRenderer()

virtual osmscout::SymbolRenderer::~SymbolRenderer ( )
virtualdefault

Member Function Documentation

◆ BeginPrimitive()

virtual void osmscout::SymbolRenderer::BeginPrimitive ( )
inlineprotectedvirtual

Reimplemented in osmscout::SymbolRendererCairo.

Referenced by Render().

◆ DrawCircle()

virtual void osmscout::SymbolRenderer::DrawCircle ( double  x,
double  y,
double  radius 
)
protectedpure virtual

◆ DrawPolygon()

virtual void osmscout::SymbolRenderer::DrawPolygon ( const std::vector< Vertex2D > &  polygonPixels)
protectedpure virtual

◆ DrawRect()

virtual void osmscout::SymbolRenderer::DrawRect ( double  x,
double  y,
double  w,
double  h 
)
protectedpure virtual

◆ EndPrimitive()

virtual void osmscout::SymbolRenderer::EndPrimitive ( )
inlineprotectedvirtual

Reimplemented in osmscout::SymbolRendererCairo.

Referenced by Render().

◆ Render() [1/2]

void osmscout::SymbolRenderer::Render ( const Projection projection,
const Symbol symbol,
const Vertex2D mapCenter,
double  scaleFactor = 1.0 
)
virtual
Parameters
projectionused projection for rendering
symbol
mapCenterscreen coordinates where to render symbol center
scaleFactorscale (on top of projection)

References Render().

◆ Render() [2/2]

void osmscout::SymbolRenderer::Render ( const Projection projection,
const Symbol symbol,
const Vertex2D mapCenter,
std::function< void()>  afterRenderTransformer,
std::function< void()>  afterEndTransformer,
double  scaleFactor = 1.0 
)
virtual

◆ SetBorder()

virtual void osmscout::SymbolRenderer::SetBorder ( const BorderStyleRef borderStyle,
double  screenMmInPixel 
)
protectedpure virtual

◆ SetFill()

virtual void osmscout::SymbolRenderer::SetFill ( const FillStyleRef fillStyle)
protectedpure virtual

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