File indexing completed on 2024-04-06 12:11:32
0001 #ifndef Fireworks_Core_FWViewContextMenuHandlerBaseGL_h
0002 #define Fireworks_Core_FWViewContextMenuHandlerBaseGL_h
0003
0004 #include "Fireworks/Core/interface/FWViewContextMenuHandlerBase.h"
0005
0006 class FWEveView;
0007 class FWModelId;
0008
0009 class FWViewContextMenuHandlerGL : public FWViewContextMenuHandlerBase {
0010 public:
0011 enum GLViewerAction { kAnnotate, kCameraCenter, kResetCameraCenter, kOrigin, kNone };
0012
0013 FWViewContextMenuHandlerGL(FWEveView *v);
0014 ~FWViewContextMenuHandlerGL() override {}
0015 void select(int iEntryIndex, const FWModelId &id, int iX, int iY) override;
0016
0017 FWViewContextMenuHandlerGL(const FWViewContextMenuHandlerGL &) = delete;
0018 const FWViewContextMenuHandlerGL &operator=(const FWViewContextMenuHandlerGL &) = delete;
0019
0020 private:
0021 void init(FWViewContextMenuHandlerBase::MenuEntryAdder &, const FWModelId &id) override;
0022
0023 FWEveView *m_view;
0024 };
0025
0026 #endif