map2d_widget
Public Slots | Signals | Public Member Functions | Public Attributes | Protected Member Functions | Friends | List of all members
mapcontrol::MapGraphicItem Class Reference

The main graphicsItem used on the widget, contains the map and map logic. More...

#include "mapgraphicitem.h"

Inheritance diagram for mapcontrol::MapGraphicItem:

Public Slots

void resize (QRectF const &rect=QRectF())
 To be called when the scene size changes. More...
 

Signals

void zoomChanged (double zoomtotal, double zoomreal, double zoomdigi)
 Fired when the current zoom is changed. More...
 

Public Member Functions

 MapGraphicItem (internals::Core *core, Configuration *configuration)
 Contructer. More...
 
QRectF boundingRect () const
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
 
QSize sizeHint () const
 
core::Point FromLatLngToLocal (internals::PointLatLng const &point)
 Convertes LatLong coordinates to local item coordinates. More...
 
internals::PointLatLng FromLocalToLatLng (int x, int y)
 Converts from local item coordinates to LatLong point. More...
 
bool IsDragging () const
 Returns true if map is being dragged. More...
 
void paintImage (QPainter *painter)
 
void ConstructLastImage (int const &zoomdiff)
 
internals::PureProjectionProjection () const
 
double Zoom ()
 
double ZoomDigi ()
 
double ZoomTotal ()
 

Public Attributes

QImage lastimage
 
core::Point lastimagepoint
 

Protected Member Functions

void mouseMoveEvent (QGraphicsSceneMouseEvent *event)
 
void mousePressEvent (QGraphicsSceneMouseEvent *event)
 
void wheelEvent (QGraphicsSceneWheelEvent *event)
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *event)
 
bool IsMouseOverMarker () const
 
int ZoomStep () const
 Returns current map zoom. More...
 
void SetZoomStep (int const &value)
 Sets map zoom. More...
 
void SetShowDragons (bool const &value)
 Ask Stacey. More...
 

Friends

class mapcontrol::OPMapWidget
 

Detailed Description

The main graphicsItem used on the widget, contains the map and map logic.


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