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 private:
30  FWGLEventHandler(const FWGLEventHandler &) = delete; // stop default
31  const FWGLEventHandler &operator=(const FWGLEventHandler &) = delete; // stop default
32 
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
const double w
Definition: UKUtility.cc:23
FWEveView * m_viewer
Bool_t HandleCrossing(Event_t *event) override
bool ev
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
const FWGLEventHandler & operator=(const FWGLEventHandler &)=delete
Definition: event.py:1
sigc::signal< void, Int_t, Int_t > openSelectedModelContextMenu_