30 #include <QtSvg/QSvgRenderer>
37 #include "../core/corecommon.h"
51 Q_INTERFACES(QGraphicsItem)
54 enum { Type = UserType + TYPE_UAVITEM };
63 void SetNED(
double NED[3]);
69 void SetGroundspeed(
double vNED[3],
int m_maxUpdateRate);
75 void SetCAS(
double CAS);
81 void SetYawRate(
double yawRate_dps);
94 void SetUAVHeading(qreal
const& value);
101 void SetMapFollowType(UAVMapFollowType::Types
const& value){mapfollowtype=value;}
107 void SetTrailType(UAVTrailType::Types
const& value);
113 UAVMapFollowType::Types GetMapFollowType()
const{
return mapfollowtype;}
119 UAVTrailType::Types GetTrailType()
const{
return trailtype;}
121 void paint(QPainter *painter,
const QStyleOptionGraphicsItem *option,
123 QRectF boundingRect()
const;
130 void SetTrailTime(
int const& seconds){trailtime=seconds;}
137 int TrailTime()
const{
return trailtime;}
146 void SetTrailDistance(
int const& distance){traildistance=distance;}
155 int TrailDistance()
const{
return traildistance;}
161 bool ShowTrail()
const{
return showtrail;}
167 bool ShowTrailLine()
const{
return showtrailline;}
173 void SetShowTrail(
bool const& value);
179 void SetShowTrailLine(
bool const& value);
183 void DeleteTrail()
const;
189 bool AutoSetReached()
const{
return autosetreached;}
195 void SetAutoSetReached(
bool const& value){autosetreached=value;}
201 double AutoSetDistance()
const{
return autosetdistance;}
207 void SetAutoSetDistance(
double const& value){autosetdistance=value;}
211 void SetUavPic(QString UAVPic);
212 void SetShowUAVInfo(
bool const& value);
213 void updateTextOverlay();
215 void generateArrowhead();
219 UAVMapFollowType::Types mapfollowtype;
220 UAVTrailType::Types trailtype;
225 double groundspeed_kph;
226 double groundspeed_mps;
229 double trendSpanAngle;
235 QGraphicsItemGroup* trail;
236 QGraphicsItemGroup * trailLine;
244 double autosetdistance;
246 static double groundspeed_mps_filt;
247 float boundingRectSize;
248 bool showJustChanged;
250 bool refreshPaint_flag;
252 QPainterPath textPath;
256 void setOpacitySlot(qreal opacity);
257 void zoomChangedSlot();
259 void UAVReachedWayPoint(
int const& waypointnumber,
WayPointItem* waypoint);
261 void setChildPosition();
A graphicsItem representing a WayPoint.
axis equal end function NED
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.
A QGraphicsItem representing the UAV.