RasterProcessTool/RasterMainWidgetGUI/RasterMainWidget/mapautoplane.h

25 lines
634 B
C
Raw Permalink Normal View History

2025-02-07 09:16:22 +00:00
#ifndef MAPAUTOPLANE_H
#define MAPAUTOPLANE_H
#include <QGraphicsPixmapItem>
#include <QPointF>
namespace LAMPMainWidget{
class MapLayer;
class MapAutoplane : public QGraphicsPixmapItem
{
public:
explicit MapAutoplane(const MapLayer *layer,QPointF pos,QGraphicsItem *parent = nullptr);
~MapAutoplane() override = default;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
QRectF boundingRect() const override;
void append(QPointF mkt_point);
void updatePos();
private:
const MapLayer *mLayer;
QPointF current_mktpoint;
};
}
#endif // MAPAUTOPLANE_H