|
libosmscout 1.1.1
|
#include <libosmscout/include/osmscout/projection/TileProjection.h>


Public Member Functions | |
| TileProjection ()=default | |
| TileProjection (const TileProjection &)=default | |
| TileProjection (TileProjection &&)=default | |
| TileProjection & | operator= (const TileProjection &)=default |
| TileProjection & | operator= (TileProjection &&)=default |
| ~TileProjection () override=default | |
| bool | CanBatch () const override |
| bool | IsValid () const override |
| bool | IsValidFor (const GeoCoord &coord) const override |
| bool | Set (const OSMTileId &tile, const Magnification &magnification, size_t width, size_t height) |
| bool | Set (const OSMTileId &tile, const Magnification &magnification, double dpi, size_t width, size_t height) |
| bool | Set (const OSMTileIdBox &tileBox, 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 | IsLinearInterpolationEnabled () const |
| void | SetLinearInterpolationUsage (bool b) |
| Public Member Functions inherited from osmscout::Projection | |
| Projection ()=default | |
| Projection (const Projection &)=default | |
| Projection (Projection &&)=default | |
| Projection & | operator= (const Projection &)=default |
| Projection & | operator= (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 |
Protected Member Functions | |
| virtual bool | SetInternal (const GeoBox &boundingBox, const Magnification &magnification, double dpi, size_t width, size_t height) |
| void | GeoToPixel (const BatchTransformer &transformData) const override |
Additional Inherited Members | |
| 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. | |
Mercator projection as used by the OpenStreetMap tile rendering code.
The TileProjection simplifies the general Mercator projection code to make sure that there are no effects based on rounding errors or similar.
|
default |
|
default |
|
default |
|
overridedefault |
|
inlineoverridevirtual |
Implements osmscout::Projection.
|
overrideprotectedvirtual |
Implements osmscout::Projection.
|
overridevirtual |
Converts a geo coordinate to a pixel coordinate.
Return true on success, false if given coordinate is not valid for this projection.
Implements osmscout::Projection.
|
inlinenodiscard |
|
inlineoverridevirtual |
Implements osmscout::Projection.
|
inlineoverridevirtual |
Return true if given coordinate is valid for this projection
Implements osmscout::Projection.
|
default |
|
default |
|
overridevirtual |
Converts a pixel coordinate to a geo coordinate.
Return true on success, false if returned coordinate is not valid for this projection.
Implements osmscout::Projection.
| bool osmscout::TileProjection::Set | ( | const OSMTileId & | tile, |
| const Magnification & | magnification, | ||
| double | dpi, | ||
| size_t | width, | ||
| size_t | height ) |
|
inline |
| bool osmscout::TileProjection::Set | ( | const OSMTileIdBox & | tileBox, |
| const Magnification & | magnification, | ||
| double | dpi, | ||
| size_t | width, | ||
| size_t | height ) |
|
protectedvirtual |
|
inline |
Switch to enable/disable linear interpolation of latitude to pixel computation. It speedup GeoToPixel calculation with fractional error on small render area.