map2d_widget
Public Types | Signals | Public Member Functions | List of all members
mapcontrol::UAVItem Class Reference

A QGraphicsItem representing the UAV. More...

#include "mapwidget/uavitem.h"

Inheritance diagram for mapcontrol::UAVItem:

Public Types

enum  { Type = UserType + 2 }
 

Signals

void UAVReachedWayPoint (int const &waypointnumber, WayPointItem *waypoint)
 
void UAVLeftSafetyBouble (internals::PointLatLng const &position)
 

Public Member Functions

 UAVItem (MapGraphicItem *map, OPMapWidget *parent, QString uavPic=QString::fromUtf8(":/uavs/images/mapquad.png"))
 
 ~UAVItem ()
 
void SetUAVPos (internals::PointLatLng const &position, int const &altitude)
 Sets the UAV position. More...
 
void SetUAVHeading (qreal const &value)
 Sets the UAV heading. More...
 
internals::PointLatLng UAVPos () const
 Returns the UAV position. More...
 
void SetMapFollowType (UAVMapFollowType::Types const &value)
 Sets the Map follow type. More...
 
void SetTrailType (UAVTrailType::Types const &value)
 Sets the trail type. More...
 
UAVMapFollowType::Types GetMapFollowType () const
 Returns the map follow method used. More...
 
UAVTrailType::Types GetTrailType () const
 Returns the UAV trail type. It can be plotted by time elapsed or distance. More...
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
 
void RefreshPos ()
 
QRectF boundingRect () const
 
void SetTrailTime (int const &seconds)
 Sets the trail time to be used if TrailType is ByTimeElapsed. More...
 
int TrailTime () const
 Returns the UAV trail time elapsed value. If the trail type is time elapsed a trail point will be plotted each "value returned" seconds. More...
 
void SetTrailDistance (int const &distance)
 Sets the trail distance to be used if TrailType is ByDistance. More...
 
int TrailDistance () const
 Returns the UAV trail plot distance. If the trail type is distance diference a trail dot is plotted if the distance between the current UAV position and the last trail point is bigger than the returned value. More...
 
bool ShowTrail () const
 Returns true if UAV trail is shown. More...
 
bool ShowTrailLine () const
 Returns true if UAV trail line is shown. More...
 
void SetShowTrail (bool const &value)
 Used to define if the UAV displays a trail. More...
 
void SetShowTrailLine (bool const &value)
 Used to define if the UAV displays a trail line. More...
 
void DeleteTrail () const
 Deletes all the trail points. More...
 
bool AutoSetReached () const
 Returns true if the UAV automaticaly sets WP reached value (changing its color) More...
 
void SetAutoSetReached (bool const &value)
 Defines if the UAV can set the WP's "reached" value automaticaly. More...
 
double AutoSetDistance () const
 Returns the 3D distance in meters necessary for the UAV to set WP's to "reached". More...
 
void SetAutoSetDistance (double const &value)
 Sets the the 3D distance in meters necessary for the UAV to set WP's to "reached". More...
 
int type () const
 
void SetUavPic (QString UAVPic)
 

Detailed Description

A QGraphicsItem representing the UAV.


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