#include <MapLogic.h>
|
| | MapLogic () |
| |
| | ~MapLogic () |
| |
| bool | CalculatePixelPositionForBusStop (const BusStopMapPoint &busStopMapData, const osmscout::MercatorProjection &projection, int &pixelCoordX, int &pixelCoordY) |
| | CalculatePixelPositionForBusStop - checks if bus stop is in current map projection, returns pixel coordinates of bus stop if true. More...
|
| |
| bool | CalculatePixelPosition (const double latitude, const double longitude, const osmscout::MercatorProjection &projection, int &pixelCoordX, int &pixelCoordY, int marginToleranceInPixels=0) |
| |
| QString | CalculateDelayForBusStop (const BusStopMapPoint &busStopMapData) |
| | CalculateDelayForBusStop - calculates time difference between current time and bus stop arrival time. More...
|
| |
| QString | CalculateDistanceToBusStop (const BusStopMapPoint &busStomMapData, osmscout::GeoCoord currentPosition) |
| | CalculateDistanceToBusStop - calculates distance between bus stop and specified position. More...
|
| |
| QString MapLogic::CalculateDelayForBusStop |
( |
const BusStopMapPoint & |
busStopMapData | ) |
|
CalculateDelayForBusStop - calculates time difference between current time and bus stop arrival time.
- Parameters
-
| busStopMapData | - map data of analysed bus stop |
- Returns
- time difference between current time and bus stop arrival time as formatted string
| QString MapLogic::CalculateDistanceToBusStop |
( |
const BusStopMapPoint & |
busStomMapData, |
|
|
osmscout::GeoCoord |
currentPosition |
|
) |
| |
CalculateDistanceToBusStop - calculates distance between bus stop and specified position.
- Parameters
-
| busStomMapData | - map data of analysed bus stop |
| currentPosition | - position used for distance calculation |
- Returns
- distance from specified position to bus stop as formatted string
| bool MapLogic::CalculatePixelPosition |
( |
const double |
latitude, |
|
|
const double |
longitude, |
|
|
const osmscout::MercatorProjection & |
projection, |
|
|
int & |
pixelCoordX, |
|
|
int & |
pixelCoordY, |
|
|
int |
marginToleranceInPixels = 0 |
|
) |
| |
| bool MapLogic::CalculatePixelPositionForBusStop |
( |
const BusStopMapPoint & |
busStopMapData, |
|
|
const osmscout::MercatorProjection & |
projection, |
|
|
int & |
pixelCoordX, |
|
|
int & |
pixelCoordY |
|
) |
| |
CalculatePixelPositionForBusStop - checks if bus stop is in current map projection, returns pixel coordinates of bus stop if true.
- Parameters
-
| busStopMapData | - map data of analysed bus stop(latitude and longitude) |
| projection | - analysed map projection |
| pixelCoordX | - x pixel coordinate of bus stop in specified projection |
| pixelCoordY | - y pixel coordinate of bus stop in specified projection |
- Returns
- true if bus stop is in current projection and can be drawn, false otherwise
The documentation for this class was generated from the following files: