TGLOverlay.cxx

Go to the documentation of this file.
00001 // @(#)root/gl:$Id: TGLOverlay.cxx 25245 2008-08-25 21:44:09Z matevz $
00002 // Author:  Matevz Tadel, Feb 2007
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #include "TGLOverlay.h"
00013 
00014 //==============================================================================
00015 // TGLOverlayElement
00016 //==============================================================================
00017 
00018 //______________________________________________________________________
00019 //
00020 // An overlay element. Supports drawing (Render) and event-handling
00021 //
00022 //
00023 
00024 ClassImp(TGLOverlayElement);
00025 
00026 //______________________________________________________________________
00027 Bool_t TGLOverlayElement::MouseEnter(TGLOvlSelectRecord& /*selRec*/)
00028 {
00029    // Mouse has enetered this element.
00030    // Return TRUE if you want additional events.
00031 
00032    return kFALSE;
00033 }
00034 
00035 Bool_t TGLOverlayElement::MouseStillInside(TGLOvlSelectRecord& /*selRec*/)
00036 {
00037    // A new overlay hit is about to be processed.
00038    // By returning FALSE one can force mouse-leave (MouseLeave will be
00039    // called shortly).
00040    // If you return TRUE, Handle will be called soon.
00041    // Use this if your overlay object has some inactive parts,
00042    // see TGLManipSet.
00043 
00044    return kTRUE;
00045 }
00046 
00047 //______________________________________________________________________
00048 Bool_t TGLOverlayElement::Handle(TGLRnrCtx          & /*rnrCtx*/,
00049                                  TGLOvlSelectRecord & /*selRec*/,
00050                                  Event_t            * /*event*/)
00051 {
00052    // Handle overlay event.
00053    // Return TRUE if event was handled.
00054 
00055    return kFALSE;
00056 }
00057 
00058 //______________________________________________________________________
00059 void TGLOverlayElement::MouseLeave()
00060 {
00061    // Mouse has left the element.
00062 }
00063 
00064 
00065 //==============================================================================
00066 // TGLOverlayList
00067 //==============================================================================
00068 
00069 //______________________________________________________________________
00070 //
00071 // Manage a collection of overlay elements.
00072 //
00073 // Not used yet.
00074 
00075 ClassImp(TGLOverlayList);

Generated on Tue Jul 5 14:18:07 2011 for ROOT_528-00b_version by  doxygen 1.5.1