bd5a266e9f
Work-in-progress, currently performance is sub-optimal (software rendering via QPainter API).
27 lines
509 B
C++
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
|