// DrawingWindow.h // // Written 11 Feb 1996 by Max Hailperin . // // Defines interface for a *very* stripped down class of graphics windows. // // Most glaring omissions: // (1) Any way to draw things other than points, like lines, arcs, filled regions. // (2) Any way to clear the window. // (3) Any way to get rid of the window. // next couple lines and last line of file prevent repeated inclusion #ifndef _DRAWING_WINDOW_H #define _DRAWING_WINDOW_H class DrawingWindowRep; // underlying representation, unspecified other than that // it exists; this allows only the declaration of a // pointer to it. class DrawingWindow { public: DrawingWindow(); // constructor void drawPoint(float x, float y); // x and y should be between -1.0 and 1.0 // with (1.0,1.0) at top right corner private: DrawingWindowRep *rep; // this points to the underlying representation, whatever // that might be }; #endif