00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #include <Inventor/sys/port.h>
00026 #include <Inventor/events/SoKeyboardEvent.h>
00027 #include <Inventor/SbVec.h>
00028
00029 #ifndef SoIvTune_included
00030 #define SoIvTune_included
00031
00032 #if defined(_WIN32)
00033 # pragma warning(disable:4251)
00034 #endif
00035
00036 class SoNode;
00037 class SbViewportRegion;
00038 class SoGuiRenderArea;
00039 class SoSceneManager;
00040 class SoRenderAreaCore;
00041
00092 class SoIvTune
00093 {
00094
00095 public:
00096
00103 static void start( const SoRenderAreaCore* );
00104
00111 static void start( SoNode* );
00112
00117 static void stop();
00118
00122 static bool isRunning();
00123
00132 static bool processEvents();
00133
00137 static void setShortcutValue(SoKeyboardEvent::Key);
00138
00142 static SoKeyboardEvent::Key getShortcutValue();
00143
00144 #if 1 SoDEPRECATED
00151 static void start( SoSceneManager* );
00152 #endif
00154 #if 1 SoDEPRECATED
00162 static void setInstance(int argc, char ** argv, SoNode * root, bool createViewer = false);
00163 SoDEPRECATED
00185 static void setInstance(int argc, char **argv, SoGuiRenderArea* viewer);
00186 SoDEPRECATED
00208 static void launch(int argc, char **argv, SoGuiRenderArea* viewer);
00209 SoDEPRECATED
00214 static SbBool isInstance();
00215
00216 #endif
00218 private:
00219
00229 static void start( SoSceneManager*, void* parentWindow );
00230
00240 static void start( SoNode*, void* parentWindow );
00241
00245 static void setPickAction( const SbViewportRegion ®ion, SbVec2s mouseCoord );
00246
00250 static void setSceneGraph(SoNode* node);
00251
00253 ~SoIvTune();
00254
00255 private:
00256
00258 SoIvTune();
00259 };
00260
00261 #endif //SoIvTune_included
00262
00263