/* -*- C++ -*- * Copyright ©2004 Hugo Mills * * This software is distributed under the terms of the GNU GPL v3 * For more information on the GPL, see the file COPYING or * visit http://www.gnu.org/ * * This software is distributed without warranty */ #ifndef DISPLAY_PIXMAP_H #define DISPLAY_PIXMAP_H #include "magellan/mdisplay.h" class Display_Pixmap : public MDisplay { public: Display_Pixmap( Bitmap* bm, XfView* vp, XfMap* proj, XfOrbit* orb, XfSphere* sph, Bitmap* pix ) : MDisplay(bm, vp, proj, orb, sph), picture(pix) { xconv = picture->width() / (2*M_PI); yconv = picture->height() / M_PI; } virtual ~Display_Pixmap() { } virtual void plot(void); private: Bitmap* picture; double xconv, yconv; }; #endif