00001 #ifndef GLUTM_WINIV_H
00002 #define GLUTM_WINIV_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00033 #include <glutm/master.h>
00034 #include <glutm/window.h>
00035
00036 #ifdef GLUTM_OPEN_INVENTOR
00037
00038 #include <Inventor/SoSceneManager.h>
00039
00045 class GlutWindowInventor : public GlutWindow, public SoSceneManager
00046 {
00047 friend GlutMaster;
00048
00049 public:
00050 GlutWindowInventor(
00051 const std::string &title = titleDefault,
00052 int width = widthDefault,
00053 int height = heightDefault,
00054 int x = xDefault,
00055 int y = yDefault,
00056 unsigned int displayMode = displayModeDefault
00057 );
00058 ~GlutWindowInventor();
00059
00060 void OnOpen();
00061 void OnClose();
00062 void OnDisplay();
00063 void OnTick();
00064 void OnReshape(int w, int h);
00065 void OnKeyboard(unsigned char key, int x, int y);
00066 void OnSpecial(int key, int x, int y);
00067 void OnMouse(int button, int state, int x, int y);
00068 void OnMotion(int x, int y);
00069 void OnPassiveMotion(int x, int y);
00070
00071 private:
00072
00073 static void initOpenInventor();
00074 static void inventorTick();
00075
00076 static bool _initOpenInventor;
00077 };
00078
00079 #endif
00080 #endif