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 TEveViewer;
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 HandleFocusChange(Event_t *event);
22  virtual Bool_t HandleCrossing(Event_t *event);
23 
24  sigc::signal<void,Int_t,Int_t> openSelectedModelContextMenu_;
25 
26  void setViewer(TEveViewer* ev) { m_viewer = ev; }
27 
28 private:
29  FWGLEventHandler(const FWGLEventHandler&); // stop default
30  const FWGLEventHandler& operator=(const FWGLEventHandler&); // stop default
31 
32  TEveViewer *m_viewer;
33 };
34 
35 #endif
virtual Bool_t HandleCrossing(Event_t *event)
virtual Bool_t HandleKey(Event_t *event)
TEveViewer * m_viewer
void setViewer(TEveViewer *ev)
const FWGLEventHandler & operator=(const FWGLEventHandler &)
virtual ~FWGLEventHandler()
FWGLEventHandler(TGWindow *w, TObject *obj, TEveCaloLego *l=0)
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_
virtual void PopupContextMenu(TGLPhysicalShape *pshp, Event_t *event, Int_t gx, Int_t gy)
virtual Bool_t HandleFocusChange(Event_t *event)
T w() const