Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGLOverlay.cxx
Go to the documentation of this file.
1// @(#)root/gl:$Id$
2// Author: Matevz Tadel, Feb 2007
3
4/*************************************************************************
5 * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#include "TGLOverlay.h"
13
14/** \class TGLOverlayElement
15\ingroup opengl
16An overlay element. Supports drawing (Render) and event-handling
17*/
18
19
20////////////////////////////////////////////////////////////////////////////////
21/// Mouse has entered this element.
22/// Return TRUE if you want additional events.
23
28
30{
31 // A new overlay hit is about to be processed.
32 // By returning FALSE one can force mouse-leave (MouseLeave will be
33 // called shortly).
34 // If you return TRUE, Handle will be called soon.
35 // Use this if your overlay object has some inactive parts,
36 // see TGLManipSet.
37
38 return kTRUE;
39}
40
41////////////////////////////////////////////////////////////////////////////////
42/// Handle overlay event.
43/// Return TRUE if event was handled.
44
46 TGLOvlSelectRecord & /*selRec*/,
47 Event_t * /*event*/)
48{
49 return kFALSE;
50}
51
52////////////////////////////////////////////////////////////////////////////////
53/// Mouse has left the element.
54
58
59
60/** \class TGLOverlayList
61\ingroup opengl
62Manage a collection of overlay elements.
63Not used yet.
64*/
65
constexpr Bool_t kFALSE
Definition RtypesCore.h:108
constexpr Bool_t kTRUE
Definition RtypesCore.h:107
virtual Bool_t Handle(TGLRnrCtx &rnrCtx, TGLOvlSelectRecord &selRec, Event_t *event)
Handle overlay event.
virtual Bool_t MouseEnter(TGLOvlSelectRecord &selRec)
Mouse has entered this element.
virtual Bool_t MouseStillInside(TGLOvlSelectRecord &selRec)
virtual void MouseLeave()
Mouse has left the element.
Selection record for overlay objects.
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
Definition TGLRnrCtx.h:41
Event structure.
Definition GuiTypes.h:174