27 #ifndef MAPPOINTITEM_H
28 #define MAPPOINTITEM_H
30 #include <QGraphicsItem>
36 #include "../internals/pointlatlng.h"
38 #include "physical_constants.h"
39 #include "../core/corecommon.h"
56 class TLMAPWIDGET_EXPORT
MapPointItem:
public QObject,
public QGraphicsItem
59 Q_INTERFACES(QGraphicsItem)
61 enum GraphicItemTypes {TYPE_WAYPOINTITEM = 1, TYPE_UAVITEM = 2, TYPE_HOMEITEM = 4, TYPE_GPSITEM = 6};
68 QString Description(){
return description;}
75 void SetDescription(QString
const& value);
95 float Altitude(){
return altitude;}
102 virtual void SetAltitude(
const float &value);
118 QGraphicsSimpleTextItem* text;
119 QGraphicsRectItem* textBG;
120 QGraphicsSimpleTextItem* numberI;
121 QGraphicsRectItem* numberIBG;
123 QString myCustomString;
128 void relativePositionChanged(QPointF point,
MapPointItem* mappoint);
132 #endif // MAPPOINTITEM_H
The main graphicsItem used on the widget, contains the map and map logic.
The main graphicsItem used on the widget, contains the map and map logic.
A QGraphicsItem representing a MapPointItem.