34 #include <QtSvg/QSvgRenderer>
37 #include "../core/corecommon.h"
51 Q_INTERFACES(QGraphicsItem)
54 enum { Type = UserType + TYPE_GPSITEM };
69 void SetUAVHeading(qreal
const& value);
76 void SetMapFollowType(UAVMapFollowType::Types
const& value){mapfollowtype=value;}
82 void SetTrailType(UAVTrailType::Types
const& value);
88 UAVMapFollowType::Types GetMapFollowType()
const{
return mapfollowtype;}
94 UAVTrailType::Types GetTrailType()
const{
return trailtype;}
96 void paint(QPainter *painter,
const QStyleOptionGraphicsItem *option,
98 QRectF boundingRect()
const;
105 void SetTrailTime(
int const& seconds){trailtime=seconds;}
112 int TrailTime()
const{
return trailtime;}
121 void SetTrailDistance(
int const& distance){traildistance=distance;}
130 int TrailDistance()
const{
return traildistance;}
136 bool ShowTrail()
const{
return showtrail;}
142 bool ShowTrailLine()
const{
return showtrailline;}
148 void SetShowTrail(
bool const& value);
154 void SetShowTrailLine(
bool const& value);
158 void DeleteTrail()
const;
164 bool AutoSetReached()
const{
return autosetreached;}
170 void SetAutoSetReached(
bool const& value){autosetreached=value;}
176 double AutoSetDistance()
const{
return autosetdistance;}
182 void SetAutoSetDistance(
double const& value){autosetdistance=value;}
186 void SetUavPic(QString UAVPic);
188 UAVMapFollowType::Types mapfollowtype;
189 UAVTrailType::Types trailtype;
194 QGraphicsItemGroup* trail;
195 QGraphicsItemGroup * trailLine;
204 double autosetdistance;
208 void setOpacitySlot(qreal opacity);
210 void UAVReachedWayPoint(
int const& waypointnumber,
WayPointItem* waypoint);
212 void setChildPosition();
A graphicsItem representing a WayPoint.
A graphicsItem representing a MapPointItem.
A graphicsItem representing a WayPoint.
An enum representing the uav trailing modes.
The main graphicsItem used on the widget, contains the map and map logic.
An enum representing the various map follow modes.
A QGraphicsItem representing a MapPointItem.
A QGraphicsItem representing a WayPoint.