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
FWGLEventHandler::openSelectedModelContextMenu_
sigc::signal< void, Int_t, Int_t > openSelectedModelContextMenu_
Definition: FWGLEventHandler.h:25
FWGLEventHandler::HandleKey
Bool_t HandleKey(Event_t *event) override
Definition: FWGLEventHandler.cc:66
FWGLEventHandler::FWGLEventHandler
FWGLEventHandler(TGWindow *w, TObject *obj, TEveCaloLego *l=nullptr)
Definition: FWGLEventHandler.cc:17
FWGLEventHandler::PopupContextMenu
void PopupContextMenu(TGLPhysicalShape *pshp, Event_t *event, Int_t gx, Int_t gy) override
Definition: FWGLEventHandler.cc:21
FWGLEventHandler::HandleCrossing
Bool_t HandleCrossing(Event_t *event) override
Definition: FWGLEventHandler.cc:98
FWGLEventHandler::setViewer
void setViewer(FWEveView *ev)
Definition: FWGLEventHandler.h:27
FWGLEventHandler::operator=
const FWGLEventHandler & operator=(const FWGLEventHandler &)=delete
FWGLEventHandler::~FWGLEventHandler
~FWGLEventHandler() override
Definition: FWGLEventHandler.h:14
FWEveView
Definition: FWEveView.h:53
w
const double w
Definition: UKUtility.cc:23
getGTfromDQMFile.obj
obj
Definition: getGTfromDQMFile.py:32
FWGLEventHandler::HandleFocusChange
Bool_t HandleFocusChange(Event_t *event) override
Definition: FWGLEventHandler.cc:87
cmsLHEtoEOSManager.l
l
Definition: cmsLHEtoEOSManager.py:204
ev
bool ev
Definition: Hydjet2Hadronizer.cc:95
FWGLEventHandler
Definition: FWGLEventHandler.h:11
FWGLEventHandler::HandleButton
Bool_t HandleButton(Event_t *event) override
Definition: FWGLEventHandler.cc:46
FWGLEventHandler::m_viewer
FWEveView * m_viewer
Definition: FWGLEventHandler.h:33
event
Definition: event.py:1