00001 // $Id: WinScene.h,v 1.1.1.1 2001/01/04 01:01:12 burnett Exp $ 00002 // Author: T. Burnett 00003 // 00004 // It declares the class WinScene, a specific display 00005 // using Windows 00006 00007 #define STRICT 00008 #include <windows.h> 00009 00010 #include "gui/SceneControl.h" 00011 #include "gui/Projector.h" 00012 using namespace gui; 00013 00014 00015 00016 class WinDraw; 00017 00018 class WinScene : public gui::SceneControl 00019 { 00020 public: 00021 00022 WinScene(HWND win, float size=100, int initial_view=1); 00023 // constuctor 00024 00025 ~WinScene(); 00026 // dtor 00027 00028 virtual void redisplay(); 00029 // set to redisplay 00030 00031 void redisplay(HDC hdc); 00032 // special for windows 00033 00034 virtual void print_commands(std::ostream& ); 00035 // override to describe mouse commands, special keys 00036 00037 void mouseDown( int, int); 00038 void mouseUp( int, int); 00039 // process mouse click 00040 // process mouse click 00041 00042 private: 00043 00044 WinDraw * m_wd; 00045 float m_x,m_y; // coords of mouse down if dragging 00046 // associated Windraw object 00047 00048 gui::Projector* m_proj; // the projector object for this scene 00049 00050 00051 }; 00052 00053
1.2.3 written by Dimitri van Heesch,
© 1997-2000