libosmscout  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
osmscout::MapPainterOpenGL Class Reference

#include <MapPainterOpenGL.h>

Public Member Functions

void DrawMap ()
 OpenGL draw call. More...
 
osmscout::GeoCoord GetCenter ()
 Returns the visual center of the map. More...
 
 MapPainterOpenGL (int width, int height, double dpi, int screenWidth, int screenHeight, std::string fontPath)
 
void OnTranslation (int startPointX, int startPointY, int endPointX, int endPointY)
 Translates the map to the given direction. More...
 
void OnZoom (float zoomDirection)
 Zooms on the map. More...
 
void ProcessData (const osmscout::MapData &data, const osmscout::MapParameter &parameter, const osmscout::Projection &projection, const osmscout::StyleConfigRef &styleConfig)
 Processes all OSM data, and converts to the format required by the OpenGL pipeline. More...
 
void SwapData ()
 Swaps currently drawn data and processed data. More...
 
 ~MapPainterOpenGL ()
 

Constructor & Destructor Documentation

osmscout::MapPainterOpenGL::MapPainterOpenGL ( int  width,
int  height,
double  dpi,
int  screenWidth,
int  screenHeight,
std::string  fontPath 
)
osmscout::MapPainterOpenGL::~MapPainterOpenGL ( )

Member Function Documentation

void osmscout::MapPainterOpenGL::DrawMap ( )

OpenGL draw call.

Draws all feature of the map to the context.

References osmscout::Magnification::GetMagnification().

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

Returns the visual center of the map.

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

Translates the map to the given direction.

void osmscout::MapPainterOpenGL::OnZoom ( float  zoomDirection)
void osmscout::MapPainterOpenGL::ProcessData ( const osmscout::MapData &  data,
const osmscout::MapParameter &  parameter,
const osmscout::Projection projection,
const osmscout::StyleConfigRef styleConfig 
)

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

References osmscout::Projection::GetCenter(), and osmscout::Projection::GetMagnification().

void osmscout::MapPainterOpenGL::SwapData ( )

Swaps currently drawn data and processed data.


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