Logo ROOT   6.10/09
Reference Guide
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
16 An overlay element. Supports drawing (Render) and event-handling
17 */
18 
20 
21 ////////////////////////////////////////////////////////////////////////////////
22 /// Mouse has entered this element.
23 /// Return TRUE if you want additional events.
24 
26 {
27  return kFALSE;
28 }
29 
31 {
32  // A new overlay hit is about to be processed.
33  // By returning FALSE one can force mouse-leave (MouseLeave will be
34  // called shortly).
35  // If you return TRUE, Handle will be called soon.
36  // Use this if your overlay object has some inactive parts,
37  // see TGLManipSet.
38 
39  return kTRUE;
40 }
41 
42 ////////////////////////////////////////////////////////////////////////////////
43 /// Handle overlay event.
44 /// Return TRUE if event was handled.
45 
47  TGLOvlSelectRecord & /*selRec*/,
48  Event_t * /*event*/)
49 {
50  return kFALSE;
51 }
52 
53 ////////////////////////////////////////////////////////////////////////////////
54 /// Mouse has left the element.
55 
57 {
58 }
59 
60 
61 /** \class TGLOverlayList
62 \ingroup opengl
63 Manage a collection of overlay elements.
64 Not used yet.
65 */
66 
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
Definition: TGLRnrCtx.h:40
bool Bool_t
Definition: RtypesCore.h:59
An overlay element.
Definition: TGLOverlay.h:22
virtual Bool_t MouseStillInside(TGLOvlSelectRecord &selRec)
Definition: TGLOverlay.cxx:30
virtual void MouseLeave()
Mouse has left the element.
Definition: TGLOverlay.cxx:56
Manage a collection of overlay elements.
Definition: TGLOverlay.h:65
virtual Bool_t Handle(TGLRnrCtx &rnrCtx, TGLOvlSelectRecord &selRec, Event_t *event)
Handle overlay event.
Definition: TGLOverlay.cxx:46
const Bool_t kFALSE
Definition: RtypesCore.h:92
#define ClassImp(name)
Definition: Rtypes.h:336
Selection record for overlay objects.
virtual Bool_t MouseEnter(TGLOvlSelectRecord &selRec)
Mouse has entered this element.
Definition: TGLOverlay.cxx:25
const Bool_t kTRUE
Definition: RtypesCore.h:91