Vesna
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes | List of all members
MapDatabaseService::DataClass Class Reference
Collaboration diagram for MapDatabaseService::DataClass:
Collaboration graph
[legend]

Public Member Functions

 DataClass (MapDatabaseService *dataClassOwner)
 
 ~DataClass ()
 
void FreeMaps ()
 
void ReplaceDefaultOSMBusStops ()
 
void AddBusStopsToCurrentImage (QPainter &painter)
 AddBusStopsToCurrentImage - draws bus stops from actual request on map Bus stop locations are compared to current map projection - only bus stops, whcih are in current projection will be drawn on map. More...
 
void AddBusStopToCurrentImage (BusStopMapPoint &busStopMapPoint, QPainter &painter)
 
void AddModelRouteToCurrentImage (QPainter &painter)
 
void DrawBusStopToCurrentImage (QPainter &painter, const int pixelCoordX, const int pixelCoordY, const BusStopMapPoint &busStopMapPoint, const QString &distanceToBusStop, const QString &busStopDelay)
 DrawBusStopToCurrentImage - draws single bus stop on map. More...
 

Public Attributes

double mScreenDpi
 
QString mIconDirectory
 
QString mStylesheetFilename
 
QTimer mPendingRenderingTimer
 
QImage * mVehicleImage
 
QImage * mCurrentImage
 
QImage * mBusStopImage
 
osmscout::DatabaseRef mDatabase
 
osmscout::DatabaseParameter mDatabaseParameter
 
osmscout::LocationServiceRef mLocationService
 
osmscout::MapServiceRef mMapService
 
osmscout::MercatorProjection mProjection
 
osmscout::StyleConfigRef mStyleConfig
 
osmscout::MapData mData
 
osmscout::MapPainterQt * mPainter
 
osmscout::BreakerRef mDataLoadingBreaker
 
osmscout::TypeInfoRef mBusStopType
 
std::list< osmscout::TileRef > mTiles
 
RenderMapRequest mActualRequest
 
MapLogicmMapLogic
 
QMap
< MapDatabaseService::MapServiceSetting,
QVariant > 
mMapServiceSettings
 

Constructor & Destructor Documentation

MapDatabaseService::DataClass::DataClass ( MapDatabaseService dataClassOwner)
MapDatabaseService::DataClass::~DataClass ( )

Member Function Documentation

void MapDatabaseService::DataClass::AddBusStopsToCurrentImage ( QPainter &  painter)

AddBusStopsToCurrentImage - draws bus stops from actual request on map Bus stop locations are compared to current map projection - only bus stops, whcih are in current projection will be drawn on map.

Parameters
painter- painter from mapWidget
void MapDatabaseService::DataClass::AddBusStopToCurrentImage ( BusStopMapPoint busStopMapPoint,
QPainter &  painter 
)
void MapDatabaseService::DataClass::AddModelRouteToCurrentImage ( QPainter &  painter)
void MapDatabaseService::DataClass::DrawBusStopToCurrentImage ( QPainter &  painter,
const int  pixelCoordX,
const int  pixelCoordY,
const BusStopMapPoint busStopMapPoint,
const QString &  distanceToBusStop,
const QString &  busStopDelay 
)

DrawBusStopToCurrentImage - draws single bus stop on map.

Parameters
painter- painter from mapWidget
pixelCoordX- x pixel coordinate which should be used as "base" for bus stop icon
pixelCoordY- y pixel coordinate which should be used as "base" for bus stop icon
busStopName- name of bus stop as string
departureTimeText- departure time as string
distanceToBusStop- distance to bus stop as string
busStopDelay- time difference between current time and bus stop arrival time as string
void MapDatabaseService::DataClass::FreeMaps ( )
void MapDatabaseService::DataClass::ReplaceDefaultOSMBusStops ( )

Member Data Documentation

RenderMapRequest MapDatabaseService::DataClass::mActualRequest
QImage* MapDatabaseService::DataClass::mBusStopImage
osmscout::TypeInfoRef MapDatabaseService::DataClass::mBusStopType
QImage* MapDatabaseService::DataClass::mCurrentImage
osmscout::MapData MapDatabaseService::DataClass::mData
osmscout::DatabaseRef MapDatabaseService::DataClass::mDatabase
osmscout::DatabaseParameter MapDatabaseService::DataClass::mDatabaseParameter
osmscout::BreakerRef MapDatabaseService::DataClass::mDataLoadingBreaker
QString MapDatabaseService::DataClass::mIconDirectory
osmscout::LocationServiceRef MapDatabaseService::DataClass::mLocationService
MapLogic* MapDatabaseService::DataClass::mMapLogic
osmscout::MapServiceRef MapDatabaseService::DataClass::mMapService
QMap<MapDatabaseService::MapServiceSetting, QVariant> MapDatabaseService::DataClass::mMapServiceSettings
osmscout::MapPainterQt* MapDatabaseService::DataClass::mPainter
QTimer MapDatabaseService::DataClass::mPendingRenderingTimer
osmscout::MercatorProjection MapDatabaseService::DataClass::mProjection
double MapDatabaseService::DataClass::mScreenDpi
osmscout::StyleConfigRef MapDatabaseService::DataClass::mStyleConfig
QString MapDatabaseService::DataClass::mStylesheetFilename
std::list<osmscout::TileRef> MapDatabaseService::DataClass::mTiles
QImage* MapDatabaseService::DataClass::mVehicleImage

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