1#ifndef OSMSCOUT_UTIL_TILEPROJECTION_H
2#define OSMSCOUT_UTIL_TILEPROJECTION_H
45 double scaleGradtorad=0.0;
47 double scaledLatDeriv=0.0;
49 bool useLinearInterpolation=
false;
51#ifdef OSMSCOUT_HAVE_SSE2
56 v2df sse2ScaleGradtorad;
86 return coord.GetLat() >= -85.0511 && coord.GetLat() <= +85.0511 &&
87 coord.GetLon() >= -180.0 && coord.GetLon() <= +180.0;
90 bool Set(
const OSMTileId& tile,
101 bool Set(
const OSMTileId& tile,
106 bool Set(
const OSMTileIdBox& tileBox,
112 GeoCoord& coord)
const override;
115 Vertex2D& pixel)
const override;
119 return useLinearInterpolation;
128 useLinearInterpolation = b;
#define OSMSCOUT_API
Definition CoreImportExport.h:45
size_t width
Width of image.
Definition Projection.h:52
size_t height
Height of image.
Definition Projection.h:53
GeoBox boundingBox
Bounding box of the current projection on the ground.
Definition Projection.h:55
friend class BatchTransformer
Definition Projection.h:341
double GetDPI() const
Definition Projection.h:250
double dpi
Screen DPI.
Definition Projection.h:51
Magnification magnification
Current magnification.
Definition Projection.h:50
virtual bool SetInternal(const GeoBox &boundingBox, const Magnification &magnification, double dpi, size_t width, size_t height)
TileProjection & operator=(TileProjection &&)=default
bool GeoToPixel(const GeoCoord &coord, Vertex2D &pixel) const override
TileProjection(const TileProjection &)=default
bool Set(const OSMTileId &tile, const Magnification &magnification, size_t width, size_t height)
Definition TileProjection.h:90
bool CanBatch() const override
Definition TileProjection.h:74
bool IsLinearInterpolationEnabled() const
Definition TileProjection.h:117
TileProjection(TileProjection &&)=default
bool PixelToGeo(double x, double y, GeoCoord &coord) const override
bool Set(const OSMTileIdBox &tileBox, const Magnification &magnification, double dpi, size_t width, size_t height)
void GeoToPixel(const BatchTransformer &transformData) const override
bool Set(const OSMTileId &tile, const Magnification &magnification, double dpi, size_t width, size_t height)
void SetLinearInterpolationUsage(bool b)
Definition TileProjection.h:126
~TileProjection() override=default
bool IsValid() const override
Definition TileProjection.h:79
TileProjection & operator=(const TileProjection &)=default
bool IsValidFor(const GeoCoord &coord) const override
Definition TileProjection.h:84