#include <libosmscout/include/osmscout/util/Projection.h>
The Projection class is an abstract base class for multiple projection implementations.
The Projection class allows transformation of geo coordinates to screen/image coordinates and screen/image coordinates back to geo coordinates.
◆ Projection()
| osmscout::Projection::Projection |
( |
| ) |
|
◆ ~Projection()
| virtual osmscout::Projection::~Projection |
( |
| ) |
|
|
virtualdefault |
◆ CanBatch()
| virtual bool osmscout::Projection::CanBatch |
( |
| ) |
const |
|
pure virtual |
◆ ConvertPixelToWidth()
| double osmscout::Projection::ConvertPixelToWidth |
( |
double |
pixel | ) |
const |
|
inline |
Convert a width in pixel into the equivalent mm size based on the given DPI
- Parameters
-
| width | Width in screen pixel |
- Returns
- Width in mm
◆ ConvertWidthToPixel()
| double osmscout::Projection::ConvertWidthToPixel |
( |
double |
width | ) |
const |
|
inline |
Convert a width in mm into the equivalent pixel size based on the given DPI
- Parameters
-
- Returns
- Width in screen pixel
◆ GeoIsIn() [1/2]
| bool osmscout::Projection::GeoIsIn |
( |
double |
lon, |
|
|
double |
lat |
|
) |
| const |
|
inline |
Returns true, if the given geo coordinate is in the bounding box
◆ GeoIsIn() [2/2]
| bool osmscout::Projection::GeoIsIn |
( |
double |
lonMin, |
|
|
double |
latMin, |
|
|
double |
lonMax, |
|
|
double |
latMax |
|
) |
| const |
|
inline |
Returns true, if the given bounding box is completely within the projection bounding box
◆ GeoToPixel() [1/2]
| virtual bool osmscout::Projection::GeoToPixel |
( |
const GeoCoord & |
coord, |
|
|
double & |
x, |
|
|
double & |
y |
|
) |
| const |
|
pure virtual |
◆ GeoToPixel() [2/2]
| virtual void osmscout::Projection::GeoToPixel |
( |
const BatchTransformer & |
transformData | ) |
const |
|
protectedpure virtual |
◆ GetAngle()
| double osmscout::Projection::GetAngle |
( |
| ) |
const |
|
inline |
Returns the angle in radians ([0..2*PI[) of the display in relation to the north. A degree of 0 means north is to the top, a degree of PI, renders with the south to the top of the display).
◆ GetCenter()
| GeoCoord osmscout::Projection::GetCenter |
( |
| ) |
const |
|
inline |
◆ GetDimensions() [1/2]
| GeoBox osmscout::Projection::GetDimensions |
( |
| ) |
const |
|
inline |
◆ GetDimensions() [2/2]
| void osmscout::Projection::GetDimensions |
( |
GeoBox & |
boundingBox | ) |
const |
|
inline |
Returns the bounding box of the area covered
◆ GetDPI()
| double osmscout::Projection::GetDPI |
( |
| ) |
const |
|
inline |
Return the DPI as part of the projection.
◆ GetHeight()
| size_t osmscout::Projection::GetHeight |
( |
| ) |
const |
|
inline |
Returns the height of the screen
◆ GetLat()
| double osmscout::Projection::GetLat |
( |
| ) |
const |
|
inline |
Returns latitude coordinate of the region center.
◆ GetLon()
| double osmscout::Projection::GetLon |
( |
| ) |
const |
|
inline |
Returns longitude coordinate of the region center.
◆ GetMagnification()
| Magnification osmscout::Projection::GetMagnification |
( |
| ) |
const |
|
inline |
Return the magnification as part of the projection.
◆ GetMeterInMM()
| double osmscout::Projection::GetMeterInMM |
( |
| ) |
const |
|
inline |
Returns the number of on screen millimeters for one meter on the ground
◆ GetMeterInPixel()
| double osmscout::Projection::GetMeterInPixel |
( |
| ) |
const |
|
inline |
Returns the number of on screen pixel for one meter on the ground
◆ GetPixelSize()
| double osmscout::Projection::GetPixelSize |
( |
| ) |
const |
|
inline |
Returns the size of a pixel in meter
◆ GetWidth()
| size_t osmscout::Projection::GetWidth |
( |
| ) |
const |
|
inline |
Returns the width of the screen
◆ IsValid()
| virtual bool osmscout::Projection::IsValid |
( |
| ) |
const |
|
pure virtual |
◆ IsValidFor()
| virtual bool osmscout::Projection::IsValidFor |
( |
const GeoCoord & |
coord | ) |
const |
|
pure virtual |
◆ PixelToGeo()
| virtual bool osmscout::Projection::PixelToGeo |
( |
double |
x, |
|
|
double |
y, |
|
|
double & |
lon, |
|
|
double & |
lat |
|
) |
| const |
|
pure virtual |
◆ BatchTransformer
◆ angle
| double osmscout::Projection::angle |
|
protected |
Display rotation angle in radians, canvas clockwise.
◆ dpi
| double osmscout::Projection::dpi |
|
protected |
◆ height
| size_t osmscout::Projection::height |
|
protected |
◆ lat
| double osmscout::Projection::lat |
|
protected |
Latitude coordinate of the center of the image.
◆ latMax
| double osmscout::Projection::latMax |
|
protected |
Latitude of the lower right corner of the image.
◆ latMin
| double osmscout::Projection::latMin |
|
protected |
Latitude of the upper left corner of the image.
◆ lon
| double osmscout::Projection::lon |
|
protected |
Longitude coordinate of the center of the image.
◆ lonMax
| double osmscout::Projection::lonMax |
|
protected |
Longitude of the lower right corner of the image.
◆ lonMin
| double osmscout::Projection::lonMin |
|
protected |
Longitude of the upper left corner of the image.
◆ magnification
| Magnification osmscout::Projection::magnification |
|
protected |
◆ meterInMM
| double osmscout::Projection::meterInMM |
|
protected |
Number of on screen millimeters for one meter on the ground.
◆ meterInPixel
| double osmscout::Projection::meterInPixel |
|
protected |
Number of on screen pixel for one meter on the ground.
◆ pixelSize
| double osmscout::Projection::pixelSize |
|
protected |
Size of a pixel in meter.
◆ width
| size_t osmscout::Projection::width |
|
protected |
The documentation for this class was generated from the following file: