CMS 3D CMS Logo

FWGLEventHandler.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWGLEventHandler_h
2 #define Fireworks_Core_FWGLEventHandler_h
3 
4 #include "TEveLegoEventHandler.h"
5 #include <sigc++/signal.h>
6 
7 class TGWindow;
8 class TGLPhysicalShape;
9 class FWEveView;
10 
11 class FWGLEventHandler : public TEveLegoEventHandler {
12 public:
13  FWGLEventHandler(TGWindow *w, TObject *obj, TEveCaloLego *l = nullptr);
14  ~FWGLEventHandler() override {}
15 
16  void PopupContextMenu(TGLPhysicalShape *pshp, Event_t *event, Int_t gx, Int_t gy) override;
17 
18  Bool_t HandleKey(Event_t *event) override;
19 
20  Bool_t HandleButton(Event_t *event) override;
21 
22  Bool_t HandleFocusChange(Event_t *event) override;
23  Bool_t HandleCrossing(Event_t *event) override;
24 
25  sigc::signal<void(Int_t, Int_t)> openSelectedModelContextMenu_;
26 
28 
29  FWGLEventHandler(const FWGLEventHandler &) = delete; // stop default
30  const FWGLEventHandler &operator=(const FWGLEventHandler &) = delete; // stop default
31 
32 private:
34 };
35 
36 #endif
Bool_t HandleKey(Event_t *event) override
void PopupContextMenu(TGLPhysicalShape *pshp, Event_t *event, Int_t gx, Int_t gy) override
FWEveView * m_viewer
T w() const
Bool_t HandleCrossing(Event_t *event) override
FWGLEventHandler(TGWindow *w, TObject *obj, TEveCaloLego *l=nullptr)
~FWGLEventHandler() override
Bool_t HandleFocusChange(Event_t *event) override
void setViewer(FWEveView *ev)
Bool_t HandleButton(Event_t *event) override
sigc::signal< void(Int_t, Int_t)> openSelectedModelContextMenu_
const FWGLEventHandler & operator=(const FWGLEventHandler &)=delete
Definition: event.py:1