1
0
Fork 0
flightgear/utils/fgqcanvas/fgqcanvasmap.h
James Turner bd5a266e9f Qt-based remote canvas application.
Work-in-progress, currently performance is sub-optimal (software
rendering via QPainter API).
2016-12-17 14:24:28 +00:00

27 lines
509 B
C++

#ifndef FGQCANVASMAP_H
#define FGQCANVASMAP_H
#include "fgcanvasgroup.h"
class FGQCanvasMap : public FGCanvasGroup
{
public:
FGQCanvasMap(FGCanvasGroup* pr, LocalProp* prop);
protected:
virtual void doPaint(FGCanvasPaintContext* context) const;
virtual bool onChildAdded(LocalProp* prop);
private:
void markProjectionDirty();
private:
double _projectionCenterLat;
double _projectionCenterLon;
double _range;
mutable bool _projectionChanged;
};
#endif // FGQCANVASMAP_H