00001 //-------------------------------------------------- 00013 //--------------------------------------------------- 00014 00015 #ifndef IMEDGINEIMEDGINE_SPATIAL_VIEWER_H 00016 #define IMEDGINEIMEDGINE_SPATIAL_VIEWER_H 00017 00018 #include "imedgine_viewer.h" 00019 //#include <Inventor/Qt/viewers/SoQtFullViewer.h> 00020 00021 namespace imedgine 00022 { 00023 enum PopupMenuItemSpatialID 00024 { 00025 ROOT_MENU_SPATIAL = 0, 00026 ROOT_MENU_TITLE_SPATIAL, 00027 FUNCTIONS_MENU_SPATIAL, 00028 FUNCTIONS_MENU_ITEM_DOTHAT_SPATIAL, 00029 FUNCTIONS_MENU_ITEM_DOTHIS_SPATIAL, 00030 ROOT_MENU_ITEM_FULLSCREEN_SPATIAL 00031 }; 00032 00033 class SpatialPixelView; 00034 00035 //-------------------------------------------------- 00047 //-------------------------------------------------- 00048 00049 class ImedgineSpatialViewer : public ImedgineViewer 00050 { 00051 public: 00052 00053 //-------------------------------------------------- 00056 00057 ImedgineSpatialViewer(SpatialPixelView* spatial_view, QWidget* parent, const char* name = NULL); 00058 00059 //-------------------------------------------------- 00062 00063 virtual ~ImedgineSpatialViewer(); 00064 00065 //-------------------------------------------------- 00070 00071 virtual SbBool processSoEvent(const SoEvent * const ev); 00072 00073 protected: 00074 00075 virtual void buildPopupMenu(); 00076 00077 virtual void menuSelection(int menu_item_id); 00078 00079 SpatialPixelView* spatial_view_; 00080 }; 00081 } 00082 00083 #endif