libosmscout 1.1.1
Loading...
Searching...
No Matches
osmscout::MapPainterOpenGL Class Reference

#include <libosmscout-map-opengl/include/osmscoutmapopengl/MapPainterOpenGL.h>

Public Member Functions

 MapPainterOpenGL (int width, int height, double dpi, const std::string &fontPath, const std::string &shaderDir, const osmscout::MapParameter &parameter)
 ~MapPainterOpenGL ()
bool IsInitialized () const
void OnZoom (float zoomDirection)
void SetSize (int width, int height)
void OnTranslation (int startPointX, int startPointY, int endPointX, int endPointY)
osmscout::GeoCoord GetCenter () const
void SetCenter (const osmscout::GeoCoord &center)
osmscout::Magnification GetMagnification () const
void SetMagnification (const osmscout::Magnification &magnification)
MercatorProjection GetProjection () const
void ProcessData (const osmscout::MapData &data, const osmscout::Projection &loadProjection, const osmscout::StyleConfigRef &styleConfig)
void SwapData ()
void DrawMap (RenderSteps startStep=RenderSteps::FirstStep, RenderSteps endStep=RenderSteps::LastStep)

Constructor & Destructor Documentation

◆ MapPainterOpenGL()

osmscout::MapPainterOpenGL::MapPainterOpenGL ( int width,
int height,
double dpi,
const std::string & fontPath,
const std::string & shaderDir,
const osmscout::MapParameter & parameter )

◆ ~MapPainterOpenGL()

osmscout::MapPainterOpenGL::~MapPainterOpenGL ( )

Member Function Documentation

◆ DrawMap()

void osmscout::MapPainterOpenGL::DrawMap ( RenderSteps startStep = RenderSteps::FirstStep,
RenderSteps endStep = RenderSteps::LastStep )

OpenGL draw call. Draws all feature of the map to the context.

◆ GetCenter()

osmscout::GeoCoord osmscout::MapPainterOpenGL::GetCenter ( ) const

Returns the visual center of the map.

◆ GetMagnification()

osmscout::Magnification osmscout::MapPainterOpenGL::GetMagnification ( ) const

◆ GetProjection()

MercatorProjection osmscout::MapPainterOpenGL::GetProjection ( ) const

◆ IsInitialized()

bool osmscout::MapPainterOpenGL::IsInitialized ( ) const
inline

◆ OnTranslation()

void osmscout::MapPainterOpenGL::OnTranslation ( int startPointX,
int startPointY,
int endPointX,
int endPointY )

Translates the map to the given direction.

◆ OnZoom()

void osmscout::MapPainterOpenGL::OnZoom ( float zoomDirection)

Zooms on the map.

◆ ProcessData()

void osmscout::MapPainterOpenGL::ProcessData ( const osmscout::MapData & data,
const osmscout::Projection & loadProjection,
const osmscout::StyleConfigRef & styleConfig )

Processes all OSM data, and converts to the format required by the OpenGL pipeline.

◆ SetCenter()

void osmscout::MapPainterOpenGL::SetCenter ( const osmscout::GeoCoord & center)

◆ SetMagnification()

void osmscout::MapPainterOpenGL::SetMagnification ( const osmscout::Magnification & magnification)

◆ SetSize()

void osmscout::MapPainterOpenGL::SetSize ( int width,
int height )

◆ SwapData()

void osmscout::MapPainterOpenGL::SwapData ( )

Swaps currently drawn data and processed data.


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