12 #ifndef ROOT_TGLEventHandler
13 #define ROOT_TGLEventHandler
21 #ifndef ROOT_TGEventHandler
TGLEventHandler(TGWindow *w, TObject *obj)
Constructor.
Float_t fMouseWheelFactor
virtual void SelectForMouseOver()
Run selection (optionally with on secondary selection) and emit corresponding MouseOver() signals...
virtual void UnGrabMouse()
Release mouse grab.
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Process event of type 'event' - one of EEventType types, occurring at window location px...
void SetArcBall(Bool_t a)
void SetTooltipPixelTolerance(Int_t t)
Concrete physical shape - a GL drawable.
Int_t ControlValue(Int_t v)
Bool_t fMouseTimerRunning
virtual ~TGLEventHandler()
Destructor.
Bool_t fDoInternalSelection
virtual Bool_t HandleEvent(Event_t *event)
Handle generic Event_t type 'event' - provided to catch focus changes and terminate any interaction i...
void SetDoInternalSelection(Bool_t x)
void SetMouseOverTooltipDelay(Int_t ms)
Set delay of tooltip timer.
virtual Bool_t HandleMotion(Event_t *event)
Handle mouse motion 'event'.
virtual void GrabMouse()
Acquire mouse grab.
virtual void StopMouseTimer()
Make sure mouse timers are not running.
virtual void PopupContextMenu(TGLPhysicalShape *pshp, Event_t *event, Int_t gx, Int_t gy)
Popup context menu.
ClassDef(TGLEventHandler, 0)
void SetMouseOverSelectDelay(Int_t ms)
Set delay of mouse-over probe (highlight).
virtual Bool_t HandleTimer(TTimer *t)
If mouse delay timer times out emit signal.
virtual Bool_t HandleFocusChange(Event_t *event)
Handle generic Event_t type 'event' - provided to catch focus changes and terminate any interaction i...
Handles synchronous and a-synchronous timer events.
Base GL viewer object - used by both standalone and embedded (in pad) GL.
Bool_t GetDoInternalSelection() const
Int_t fTooltipPixelTolerance
virtual Bool_t HandleDoubleClick(Event_t *event)
Handle mouse double click 'event'.
TGLPhysicalShape * fLastMouseOverShape
virtual void TriggerTooltip(const char *text)
Trigger display of tooltip.
virtual void ClearMouseOver()
Clear mouse-over state and emit mouse-over signals.
Int_t GetTooltipPixelTolerance() const
Base-class and default implementation of event-handler for TGLViewer.
Int_t GetSecSelType() const
Mother of all ROOT objects.
virtual Bool_t HandleCrossing(Event_t *event)
Handle generic Event_t type 'event' - provided to catch focus changes and terminate any interaction i...
Bool_t GetArcBall() const
virtual void SelectForClicked(Event_t *event)
Run selection (optionally with on secondary selection) and emit corresponding Clicked() signals...
virtual Bool_t HandleExpose(Event_t *event)
Handle window expose 'event' - show.
void SetSecSelType(Int_t t)
virtual Bool_t Rotate(Int_t xDelta, Int_t yDelta, Bool_t mod1, Bool_t mod2)
Method to handle action TGLViewer::kDragCameraRotate.
virtual Bool_t HandleConfigureNotify(Event_t *event)
Handle configure notify 'event' - a window resize/movement.
virtual void StartMouseTimer()
Start mouse timer in single-shot mode.
Bool_t fViewerCentricControls
virtual Bool_t HandleButton(Event_t *event)
Handle mouse button 'event'.
virtual void RemoveTooltip()
Hide the tooltip.
virtual Bool_t HandleKey(Event_t *event)
Handle keyboard 'event'.
virtual void Repaint()
Handle window expose 'event' - show.