00001 #ifndef Fireworks_Core_FWViewContextMenuHandlerBaseGL_h 00002 #define Fireworks_Core_FWViewContextMenuHandlerBaseGL_h 00003 00004 #include "Fireworks/Core/interface/FWViewContextMenuHandlerBase.h" 00005 00006 class TEveViewer; 00007 class FWModelId; 00008 00009 class FWViewContextMenuHandlerGL 00010 { 00011 public: 00012 enum GLViewerAction { kAnnotate, kCameraCenter, kResetCameraCenter, kNone }; 00013 00014 FWViewContextMenuHandlerGL(TEveViewer* v); 00015 virtual ~FWViewContextMenuHandlerGL() {} 00016 virtual void select(int iEntryIndex, const FWModelId &id, int iX, int iY); 00017 00018 void setPickCameraCenter(bool x) { m_pickCameraCenter = x; } 00019 00020 private: 00021 FWViewContextMenuHandlerGL(const FWViewContextMenuHandlerGL&); // stop default 00022 const FWViewContextMenuHandlerGL& operator=(const FWViewContextMenuHandlerGL&); // stop default 00023 00024 virtual void init(FWViewContextMenuHandlerBase::MenuEntryAdder&); 00025 00026 TEveViewer* m_viewer; 00027 bool m_pickCameraCenter; 00028 }; 00029 00030 #endif