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 {
13 public:
14  FWGLEventHandler(TGWindow *w, TObject *obj, TEveCaloLego* l=nullptr);
15  ~FWGLEventHandler() override {}
16 
17  void PopupContextMenu(TGLPhysicalShape* pshp, Event_t *event, Int_t gx, Int_t gy) override;
18 
19  Bool_t HandleKey(Event_t *event) override;
20 
21  Bool_t HandleButton(Event_t *event) override;
22 
23  Bool_t HandleFocusChange(Event_t *event) override;
24  Bool_t HandleCrossing(Event_t *event) override;
25 
26  sigc::signal<void,Int_t,Int_t> openSelectedModelContextMenu_;
27 
29 
30 private:
31  FWGLEventHandler(const FWGLEventHandler&) = delete; // stop default
32  const FWGLEventHandler& operator=(const FWGLEventHandler&) = delete; // stop default
33 
35 };
36 
37 #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
sigc::signal< void, Int_t, Int_t > openSelectedModelContextMenu_
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