RenderingHandler.h

Go to the documentation of this file.
00001 //------------------------------------------------------------------------------ 00004 00005 // Last Change: 2004/05/21 00006 // Version: 0.1 00007 00008 #ifndef _RENDERINGHANDLER_H_ 00009 #define _RENDERINGHANDLER_H_ 00010 00011 //---------------------------------------------------------------------includes- 00012 #include "../src/WindowHandler.h" 00013 #include "../src/RadialLayout.h" 00014 #include "../src/Graph.h" 00015 00016 //-------------------------------------------------------------RenderingHandler- 00021 00022 class RenderingHandler 00023 { 00024 protected: 00026 WindowHandler *window_handler_; 00028 RadialLayout *radial_layout_; 00030 Graph *graph_; 00032 GLuint screen_width_; 00034 GLuint screen_height_; 00036 bool is_animation_mode_active_; 00037 00038 protected: 00039 //----------------------------------------------------------default constructor- 00043 RenderingHandler() : 00044 window_handler_(NULL), 00045 radial_layout_(NULL) 00046 { 00047 } 00048 00049 public: 00050 //------------------------------------------------------------------constructor- 00055 RenderingHandler(WindowHandler *window_handler, RadialLayout *radial_layout, 00056 Graph *graph, GLuint screen_width, GLuint screen_height) : 00057 window_handler_(window_handler), 00058 radial_layout_(radial_layout), 00059 graph_(graph), 00060 screen_width_(screen_width), 00061 screen_height_(screen_height), 00062 is_animation_mode_active_(false) 00063 { 00064 } 00065 00066 //-------------------------------------------------------------------destructor- 00070 ~RenderingHandler() 00071 { 00072 } 00073 00074 //------------------------------------------------------------------runMainLoop- 00078 void runMainLoop(); 00079 00080 //----------------------------------------------------------handleKeyPressEvent- 00086 void handleKeyPressEvent(SDL_keysym *keysym); 00087 00088 //------------------------------------------------------------------renderScene- 00092 void renderScene(); 00093 00094 //-------------------------------------------------------------RetrieveObjectID- 00095 // 00096 int RetrieveObjectID(int x, int y); 00097 }; 00098 00099 00100 #endif // _RENDERINGHANDLER_H_ 00101 00102 00103 // eof

Generated on Mon Jun 14 12:48:56 2004 for InfoVis by doxygen 1.3.7