27 #ifndef MAPGRAPHICITEM_H
28 #define MAPGRAPHICITEM_H
30 #include <QGraphicsItem>
31 #include "../internals/core.h"
32 #include "../core/diagnostics.h"
40 #include "../core/corecommon.h"
55 Q_INTERFACES(QGraphicsItem)
67 QRectF boundingRect() const;
68 void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
71 QSize sizeHint()const;
78 core::Point FromLatLngToLocal(internals::PointLatLng const& point);
86 internals::PointLatLng FromLocalToLatLng(qint64
x, qint64
y);
92 bool IsDragging()
const{
return core->IsDragging();}
96 void paintImage(QPainter* painter);
97 void ConstructLastImage(
int const& zoomdiff);
105 void mousePressEvent ( QGraphicsSceneMouseEvent * event );
106 void wheelEvent ( QGraphicsSceneWheelEvent * event );
107 void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
109 void keyPressEvent ( QKeyEvent * event );
110 void keyReleaseEvent ( QKeyEvent * event );
123 void SetZoomStep(qint32
const& value);
128 bool showTileGridLines;
129 qreal MapRenderTransform;
130 void DrawMap2D(QPainter *painter);
150 bool isMouseOverMarker;
152 void SetIsMouseOverMarker(
bool const& value){isMouseOverMarker = value;}
163 QRectF boundingBox(QRectF
const& rect, qreal
const& angle);
169 int MaxZoom()
const{
return core->MaxZoom();}
175 int MinZoom()
const{
return minZoom;}
180 void Offset(qint64
const& x, qint64
const& y);
181 bool CanDragMap()
const{
return core->CanDragMap;}
182 void SetCanDragMap(
bool const& value){core->CanDragMap = value;}
184 void SetZoom(
double const& value);
185 void mapRotate ( qreal angle );
189 MapType::Types
GetMapType(){
return core->GetMapType();}
190 void SetMapType(MapType::Types
const& value){core->SetMapType(value);}
193 void Core_OnNeedInvalidation();
194 void childPosRefresh();
201 void resize ( QRectF
const &rect=QRectF() );
208 void wpdoubleclicked(WayPointItem * wp);
209 void zoomChanged(
double zoomtotal,
double zoomreal,
double zoomdigi);
210 void childRefreshPosition();
211 void childSetOpacity(qreal value);
214 #endif // MAPGRAPHICITEM_H
A class that centralizes most of the mapcontrol configurations.
A class that centralizes most of the mapcontrol configurations.
The main graphicsItem used on the widget, contains the map and map logic.