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
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
63Manage a collection of overlay elements.
64Not used yet.
65*/
66
constexpr Bool_t kFALSE
Definition RtypesCore.h:101
constexpr Bool_t kTRUE
Definition RtypesCore.h:100
#define ClassImp(name)
Definition Rtypes.h:377
An overlay element.
Definition TGLOverlay.h:23
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.
Manage a collection of overlay elements.
Definition TGLOverlay.h:66
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