Vesna
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
MapLogic Class Reference

#include <MapLogic.h>

Public Member Functions

 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...
 

Constructor & Destructor Documentation

MapLogic::MapLogic ( )
MapLogic::~MapLogic ( )

Member Function Documentation

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 
)

Here is the caller graph for this function:

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

Here is the call graph for this function:


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