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

#include <MapPainterOpenGL.h>

Public Member Functions

void DrawMap (RenderSteps startStep=RenderSteps::FirstStep, RenderSteps endStep=RenderSteps::LastStep)
 OpenGL draw call.
 
osmscout::GeoCoord GetCenter () const
 Returns the visual center of the map.
 
osmscout::Magnification GetMagnification () const
 
MercatorProjection GetProjection () const
 
bool IsInitialized () const
 
 MapPainterOpenGL (int width, int height, double dpi, const std::string &fontPath, const std::string &shaderDir, const osmscout::MapParameter &parameter)
 
void OnTranslation (int startPointX, int startPointY, int endPointX, int endPointY)
 Translates the map to the given direction.
 
void OnZoom (float zoomDirection)
 Zooms on the map.
 
void 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.
 
void SetCenter (const osmscout::GeoCoord &center)
 
void SetMagnification (const osmscout::Magnification &magnification)
 
void SetSize (int width, int height)
 
void SwapData ()
 Swaps currently drawn data and processed data.
 
 ~MapPainterOpenGL ()
 

Constructor & Destructor Documentation

◆ MapPainterOpenGL()

◆ ~MapPainterOpenGL()

osmscout::MapPainterOpenGL::~MapPainterOpenGL ( )

Member Function Documentation

◆ DrawMap()

◆ GetCenter()

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

Returns the visual center of the map.

References osmscout::Projection::GetCenter().

◆ 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.

References osmscout::GeoCoord::GetLat(), and osmscout::GeoCoord::GetLon().

◆ OnZoom()

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

Zooms on the map.

References osmscout::Magnification::SetLevel().

◆ 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.

References osmscout::ProcessAreas.

◆ SetCenter()

◆ SetMagnification()

◆ 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 files: