7 #include "KeySymbols.h"
10 #include "TGLPhysicalShape.h"
11 #include "TGLLogicalShape.h"
12 #include "TEveGedEditor.h"
13 #include "TEveViewer.h"
17 TEveLegoEventHandler(w, obj, l),
26 if (event->fState & kKeyShiftMask && event->fState & kKeyControlMask)
28 TGLEventHandler::PopupContextMenu(pshp, event, gx, gy);
34 SelectForClicked(event);
36 if (pshp->GetLogical())
51 Bool_t res = TEveLegoEventHandler::HandleButton(event);
56 gVirtualX->TranslateCoordinates(gClient->GetDefaultRoot()->GetId(), fGLViewer->GetGLWidget()->GetId(),
event->fX,
event->fY,
x,
y, childdum); fGLViewer->RequestSelect(event->fX, event->fY);
57 if (fGLViewer->GetSelRec().GetN() > 0 )
59 TGLVector3
v(event->fX, event->fY, 0.5*fGLViewer->GetSelRec().GetMinZ());
60 fGLViewer->CurrentCamera().WindowToViewport(
v);
61 v = fGLViewer->CurrentCamera().ViewportToWorld(
v);
74 gVirtualX->LookupString(event, tmp,
sizeof(tmp), keysym);
76 if (keysym == kKey_Enter || keysym == kKey_Return || keysym == kKey_Space)
78 if (event->fType == kGKeyPress)
82 gVirtualX->TranslateCoordinates(fGLViewer->GetGLWidget()->GetId(), gClient->GetDefaultRoot()->GetId(),
83 event->fX,
event->fY,
x,
y, childdum);
85 fGLViewer->RequestSelect(event->fX, event->fY);
91 return TEveLegoEventHandler::HandleKey(event);
104 return TGLEventHandler::HandleFocusChange(event);
116 return TGLEventHandler::HandleCrossing(event);
void GeoPopupMenu(Int_t gx, Int_t gy, TGLViewer *)
virtual Bool_t HandleCrossing(Event_t *event)
virtual bool requestGLHandlerPick() const
virtual Bool_t HandleKey(Event_t *event)
void setCurrentDMTVertex(double x, double y, double z)
TGLViewer * viewerGL() const
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_
virtual void PopupContextMenu(TGLPhysicalShape *pshp, Event_t *event, Int_t gx, Int_t gy)
std::vector< std::vector< double > > tmp
virtual Bool_t HandleFocusChange(Event_t *event)