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

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

Inheritance diagram for osmscout::OpenGLProjection:
Collaboration diagram for osmscout::OpenGLProjection:

Public Member Functions

 OpenGLProjection ()=default
 OpenGLProjection (const OpenGLProjection &)=default
 OpenGLProjection (OpenGLProjection &&)=default
OpenGLProjectionoperator= (const OpenGLProjection &)=default
OpenGLProjectionoperator= (OpenGLProjection &&)=default
 ~OpenGLProjection () override=default
void SetShaderUniforms (GLuint shaderProgram) const
Public Member Functions inherited from osmscout::MercatorProjection
 MercatorProjection ()=default
 MercatorProjection (const MercatorProjection &)=default
 MercatorProjection (MercatorProjection &&)=default
MercatorProjectionoperator= (const MercatorProjection &)=default
MercatorProjectionoperator= (MercatorProjection &&)=default
 ~MercatorProjection () override=default
bool CanBatch () const override
bool IsValid () const override
bool IsValidFor (const GeoCoord &coord) const override
bool Set (const GeoCoord &coord, const Magnification &magnification, size_t width, size_t height)
bool Set (const GeoCoord &coord, double angle, const Magnification &magnification, size_t width, size_t height)
bool Set (const GeoCoord &coord, const Magnification &magnification, double dpi, size_t width, size_t height)
bool Set (const GeoCoord &coord, double angle, const Magnification &magnification, double dpi, size_t width, size_t height)
bool PixelToGeo (double x, double y, GeoCoord &coord) const override
bool GeoToPixel (const GeoCoord &coord, Vertex2D &pixel) const override
bool Move (double horizPixel, double vertPixel)
bool MoveUp (double pixel)
bool MoveDown (double pixel)
bool MoveLeft (double pixel)
bool MoveRight (double pixel)
bool IsLinearInterpolationEnabled () const
void SetLinearInterpolationUsage (bool useLinearInterpolation)
Public Member Functions inherited from osmscout::Projection
 Projection ()=default
 Projection (const Projection &)=default
 Projection (Projection &&)=default
Projectionoperator= (const Projection &)=default
Projectionoperator= (Projection &&)=default
virtual ~Projection ()=default
GeoCoord GetCenter () const
double GetAngle () const
size_t GetWidth () const
size_t GetHeight () const
ScreenBox GetScreenBox () const
Magnification GetMagnification () const
double GetDPI () const
GeoBox GetDimensions () const
double GetPixelSize () const
double GetMeterInPixel () const
double GetMeterInMM () const
double ConvertWidthToPixel (double width) const
double ConvertPixelToWidth (double pixel) const
bool BoundingBoxToPixel (const GeoBox &boundingBox, ScreenBox &screenBox) const

Additional Inherited Members

Static Public Attributes inherited from osmscout::MercatorProjection
static const double MaxLat
static const double MinLat
static const double MaxLon
static const double MinLon
Protected Member Functions inherited from osmscout::MercatorProjection
void GeoToPixel (const BatchTransformer &transformData) const override
Protected Attributes inherited from osmscout::MercatorProjection
bool valid =false
 projection is valid
double latOffset =0.0
 Absolute and untransformed screen position of lat coordinate.
double angleSin =0.0
double angleCos =0.0
double angleNegSin =0.0
double angleNegCos =0.0
double scale =1.0
double scaleGradtorad =0.0
 Precalculated scale*Gradtorad.
double scaledLatDeriv =0.0
 center scaled by gradtorad * scale
bool useLinearInterpolation =false
 switch to enable linear interpolation of latitude to pixel computation
Protected Attributes inherited from osmscout::Projection
GeoCoord center
 Coordinate of the center of the displayed area.
double angle =0.0
 Display rotation angle in radians, canvas clockwise.
Magnification magnification
 Current magnification.
double dpi =0.0
 Screen DPI.
size_t width =0
 Width of image.
size_t height =0
 Height of image.
GeoBox boundingBox
 Bounding box of the current projection on the ground.
double pixelSize =0.0
 Size of a pixel in meter.
double meterInPixel =0.0
 Number of on screen pixel for one meter on the ground.
double meterInMM =0.0
 Number of on screen millimeters for one meter on the ground.

Constructor & Destructor Documentation

◆ OpenGLProjection() [1/3]

osmscout::OpenGLProjection::OpenGLProjection ( )
default

◆ OpenGLProjection() [2/3]

osmscout::OpenGLProjection::OpenGLProjection ( const OpenGLProjection & )
default

◆ OpenGLProjection() [3/3]

osmscout::OpenGLProjection::OpenGLProjection ( OpenGLProjection && )
default

◆ ~OpenGLProjection()

osmscout::OpenGLProjection::~OpenGLProjection ( )
overridedefault

Member Function Documentation

◆ operator=() [1/2]

OpenGLProjection & osmscout::OpenGLProjection::operator= ( const OpenGLProjection & )
default

◆ operator=() [2/2]

OpenGLProjection & osmscout::OpenGLProjection::operator= ( OpenGLProjection && )
default

◆ SetShaderUniforms()

void osmscout::OpenGLProjection::SetShaderUniforms ( GLuint shaderProgram) const
inline

Setup projection shader uniforms

Parameters
shaderProgram

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