|
libosmscout 1.1.1
|
#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 ¶meter) | |
| ~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 ¢er) |
| 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) |
| osmscout::MapPainterOpenGL::MapPainterOpenGL | ( | int | width, |
| int | height, | ||
| double | dpi, | ||
| const std::string & | fontPath, | ||
| const std::string & | shaderDir, | ||
| const osmscout::MapParameter & | parameter ) |
| osmscout::MapPainterOpenGL::~MapPainterOpenGL | ( | ) |
| void osmscout::MapPainterOpenGL::DrawMap | ( | RenderSteps | startStep = RenderSteps::FirstStep, |
| RenderSteps | endStep = RenderSteps::LastStep ) |
OpenGL draw call. Draws all feature of the map to the context.
| osmscout::GeoCoord osmscout::MapPainterOpenGL::GetCenter | ( | ) | const |
Returns the visual center of the map.
| osmscout::Magnification osmscout::MapPainterOpenGL::GetMagnification | ( | ) | const |
| MercatorProjection osmscout::MapPainterOpenGL::GetProjection | ( | ) | const |
|
inline |
| 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 | ) |
Zooms on the map.
| 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.
| void osmscout::MapPainterOpenGL::SetCenter | ( | const osmscout::GeoCoord & | center | ) |
| void osmscout::MapPainterOpenGL::SetMagnification | ( | const osmscout::Magnification & | magnification | ) |
| void osmscout::MapPainterOpenGL::SetSize | ( | int | width, |
| int | height ) |
| void osmscout::MapPainterOpenGL::SwapData | ( | ) |
Swaps currently drawn data and processed data.