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

#include <opmapwidget.h>

Inheritance diagram for mapcontrol::OPMapWidget:

Public Slots

void RipMap ()
 Ripps the current selection to the DB. More...
 

Signals

void zoomChanged (double zoomt, double zoom, double zoomd)
 
void WPNumberChanged (int const &oldnumber, int const &newnumber, WayPointItem *waypoint)
 fires when one of the WayPoints numbers changes (not fired if due to a auto-renumbering) More...
 
void WPValuesChanged (WayPointItem *waypoint)
 Fired when the description, altitude or coordinates of a WayPoint changed. More...
 
void WPReached (WayPointItem *waypoint)
 Fires when a new WayPoint is inserted. More...
 
void WPInserted (int const &number, WayPointItem *waypoint)
 Fires when a new WayPoint is inserted. More...
 
void WPDeleted (int const &number)
 Fires When a WayPoint is deleted. More...
 
void UAVReachedWayPoint (int const &waypointnumber, WayPointItem *waypoint)
 Fires When a WayPoint is Reached. More...
 
void UAVLeftSafetyBouble (internals::PointLatLng const &position)
 Fires When the UAV lives the safety bouble. More...
 
void OnCurrentPositionChanged (internals::PointLatLng point)
 Fires when map position changes. More...
 
void OnTileLoadComplete ()
 Fires when there are no more tiles to load. More...
 
void OnTileLoadStart ()
 Fires when tiles loading begins. More...
 
void OnMapDrag ()
 Fires when the map is dragged. More...
 
void OnMapZoomChanged ()
 Fires when map zoom changes. More...
 
void OnMapTypeChanged (MapType::Types type)
 Fires when map type changes. More...
 
void OnEmptyTileError (int zoom, core::Point pos)
 Fires when an error ocurred while loading a tile. More...
 
void OnTilesStillToLoad (int number)
 Fires when the number of tiles in the load queue changes. More...
 

Public Member Functions

QSize sizeHint () const
 
 OPMapWidget (QWidget *parent=0, Configuration *config=new Configuration)
 Constructor. More...
 
 ~OPMapWidget ()
 
bool ShowTileGridLines () const
 Returns true if map is showing gridlines. More...
 
void SetShowTileGridLines (bool const &value)
 Defines if map is to show gridlines. More...
 
int MaxZoom () const
 Returns the maximum zoom for the map. More...
 
int MinZoom () const
 
void SetMinZoom (int const &value)
 
internals::MouseWheelZoomType::Types GetMouseWheelZoomType ()
 
void SetMouseWheelZoomType (internals::MouseWheelZoomType::Types const &value)
 
internals::RectLatLng SelectedArea () const
 
void SetSelectedArea (internals::RectLatLng const &value)
 
bool CanDragMap () const
 
void SetCanDragMap (bool const &value)
 
internals::PointLatLng CurrentPosition () const
 
void SetCurrentPosition (internals::PointLatLng const &value)
 
double ZoomReal ()
 
double ZoomDigi ()
 
double ZoomTotal ()
 
void SetZoom (double const &value)
 
qreal Rotate ()
 
void SetRotate (qreal const &value)
 
void ReloadMap ()
 
GeoCoderStatusCode::Types SetCurrentPositionByKeywords (QString const &keys)
 
bool UseOpenGL ()
 
void SetUseOpenGL (bool const &value)
 
MapType::Types GetMapType ()
 
void SetMapType (MapType::Types const &value)
 
bool isStarted ()
 
internals::PointLatLng currentMousePosition ()
 
void SetFollowMouse (bool const &value)
 
bool FollowMouse ()
 
internals::PointLatLng GetFromLocalToLatLng (QPointF p)
 
WayPointItemWPCreate ()
 Creates a new WayPoint on the center of the map. More...
 
void WPCreate (WayPointItem *item)
 Creates a new WayPoint. More...
 
WayPointItemWPCreate (internals::PointLatLng const &coord, int const &altitude)
 Creates a new WayPoint. More...
 
WayPointItemWPCreate (internals::PointLatLng const &coord, int const &altitude, QString const &description)
 Creates a new WayPoint. More...
 
WayPointItemWPInsert (int const &position)
 Inserts a new WayPoint on the specified position. More...
 
void WPInsert (WayPointItem *item, int const &position)
 Inserts a new WayPoint on the specified position. More...
 
WayPointItemWPInsert (internals::PointLatLng const &coord, int const &altitude, int const &position)
 Inserts a new WayPoint on the specified position. More...
 
WayPointItemWPInsert (internals::PointLatLng const &coord, int const &altitude, QString const &description, int const &position)
 Inserts a new WayPoint on the specified position. More...
 
void WPDelete (WayPointItem *item)
 Deletes the WayPoint. More...
 
void WPDeleteAll ()
 deletes all WayPoints More...
 
QList< WayPointItem * > WPSelected ()
 Returns the currently selected WayPoints. More...
 
void WPRenumber (WayPointItem *item, int const &newnumber)
 Renumbers the WayPoint and all others as needed. More...
 
void SetShowCompass (bool const &value)
 
void SetShowUAV (bool const &value)
 
bool ShowUAV () const
 
void SetShowHome (bool const &value)
 
bool ShowHome () const
 
void SetShowDiagnostics (bool const &value)
 
void SetUavPic (QString UAVPic)
 

Public Attributes

Configurationconfiguration
 
UAVItemUAV
 
GPSItemGPS
 
HomeItemHome
 

Protected Member Functions

void resizeEvent (QResizeEvent *event)
 
void showEvent (QShowEvent *event)
 
void closeEvent (QCloseEvent *event)
 
void mouseMoveEvent (QMouseEvent *event)
 

Properties

int MinZoom
 
bool ShowTileGridLines
 
double Zoom
 
qreal Rotate
 

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