My Project
rayWindow.h
1 #ifndef RAY_WINDOW_INCLUDED
2 #define RAY_WINDOW_INCLUDED
3 
4 #include <Ray/mouse.h>
5 #include <Ray/rayScene.h>
6 
8 class RayWindow{
9 public:
11  const static char KEY_ESCAPE;
12  enum{
19  };
20 
22  static RayScene* scene;
23 
25  static Mouse mouse;
27  static Point3D center;
29  static double radius;
31  static int isVisible;
32 
35  static int frameCount;
37  static double frameCountStart;
39  static double frameRate;
40 
41  static double startTime;
42 
43  static int curveFit;
44 
45 
46 
48  static int PrintError(const int& showNoError=0);
50  static void WriteLeftString(const int& x,const int& y,const char* str);
52  static void WriteRightString(const int& x,const int& y,const char* str);
54  static int TakeSnapshot(Image32& img);
56  static void IdleFunction(void);
58  static void VisibilityFunction(int state);
59 
61  // Mouse event handlers //
63 
64  static void MouseFunction( int button, int state, int x, int y );
66  static void MotionFunction( int x, int y );
68  static void PassiveMotionFunction( int x, int y );
69 
71  // Keyboard event handlers //
73 
74  static void KeyboardFunction( unsigned char c, int x, int y );
76  static void SpecialFunction( int key, int x, int y );
77 
79  // Menu event handlers //
81 
82  static void DrawModeMenu(int entry);
84  static void CullModeMenu(int entry);
86  static void CurveFitMenu(int entry);
88  static void MainMenu(int entry);
90  static void DisplayFunction(void);
92  static void ReshapeFunction(int width,int height);
93 
94 
97  static void RayView(RayScene* scene,int width,int height,int cplx);
98 };
99 #endif // RAY_WINDOW_INCLUDED
static void ReshapeFunction(int width, int height)
Definition: rayWindow.cpp:341
static void SpecialFunction(int key, int x, int y)
Definition: rayWindow.cpp:204
static int frameCount
Definition: rayWindow.h:35
static void CullModeMenu(int entry)
Definition: rayWindow.cpp:262
static void MouseFunction(int button, int state, int x, int y)
Definition: rayWindow.cpp:147
static void VisibilityFunction(int state)
Definition: rayWindow.cpp:138
static RayScene * scene
Definition: rayWindow.h:22
Definition: rayWindow.h:18
static double frameRate
Definition: rayWindow.h:39
Definition: rayWindow.h:16
Definition: rayWindow.h:14
static Point3D center
Definition: rayWindow.h:27
static const char KEY_ESCAPE
Definition: rayWindow.h:11
static void DrawModeMenu(int entry)
Definition: rayWindow.cpp:256
static void KeyboardFunction(unsigned char c, int x, int y)
Definition: rayWindow.cpp:178
static double frameCountStart
Definition: rayWindow.h:37
static Mouse mouse
Definition: rayWindow.h:25
static void RayView(RayScene *scene, int width, int height, int cplx)
Definition: rayWindow.cpp:353
static int PrintError(const int &showNoError=0)
Definition: rayWindow.cpp:19
static double radius
Definition: rayWindow.h:29
static int isVisible
Definition: rayWindow.h:31
Definition: geometry.h:81
static void CurveFitMenu(int entry)
Definition: rayWindow.cpp:272
static void WriteLeftString(const int &x, const int &y, const char *str)
Definition: rayWindow.cpp:63
static void IdleFunction(void)
Definition: rayWindow.cpp:131
static void WriteRightString(const int &x, const int &y, const char *str)
Definition: rayWindow.cpp:94
static void DisplayFunction(void)
Definition: rayWindow.cpp:286
Definition: mouse.h:6
static int TakeSnapshot(Image32 &img)
Definition: rayWindow.cpp:102
Definition: rayWindow.h:8
static void MainMenu(int entry)
Definition: rayWindow.cpp:278
Definition: rayScene.h:128
Definition: image.h:47
static void MotionFunction(int x, int y)
Definition: rayWindow.cpp:151
static void PassiveMotionFunction(int x, int y)
Definition: rayWindow.cpp:169