CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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=0);
15  virtual ~FWGLEventHandler() {}
16 
17  virtual void PopupContextMenu(TGLPhysicalShape* pshp, Event_t *event, Int_t gx, Int_t gy);
18 
19  virtual Bool_t HandleKey(Event_t *event);
20 
21  virtual Bool_t HandleButton(Event_t *event);
22 
23  virtual Bool_t HandleFocusChange(Event_t *event);
24  virtual Bool_t HandleCrossing(Event_t *event);
25 
26  sigc::signal<void,Int_t,Int_t> openSelectedModelContextMenu_;
27 
29 
30 private:
31  FWGLEventHandler(const FWGLEventHandler&); // stop default
32  const FWGLEventHandler& operator=(const FWGLEventHandler&); // stop default
33 
35 };
36 
37 #endif
virtual Bool_t HandleCrossing(Event_t *event)
virtual Bool_t HandleKey(Event_t *event)
const double w
Definition: UKUtility.cc:23
FWEveView * m_viewer
bool ev
const FWGLEventHandler & operator=(const FWGLEventHandler &)
virtual ~FWGLEventHandler()
FWGLEventHandler(TGWindow *w, TObject *obj, TEveCaloLego *l=0)
virtual Bool_t HandleButton(Event_t *event)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
sigc::signal< void, Int_t, Int_t > openSelectedModelContextMenu_
void setViewer(FWEveView *ev)
virtual void PopupContextMenu(TGLPhysicalShape *pshp, Event_t *event, Int_t gx, Int_t gy)
virtual Bool_t HandleFocusChange(Event_t *event)