ROOT  6.06/09
Reference Guide
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
TGLOverlayElement Class Referenceabstract

An overlay element.

Supports drawing (Render) and event-handling

Definition at line 22 of file TGLOverlay.h.

Public Types

enum  ERole { kUser, kViewer, kAnnotation, kAll }
 
enum  EState { kInvisible = 1, kDisabled = 2, kActive = 4, kAllVisible = kDisabled | kActive }
 

Public Member Functions

 TGLOverlayElement (ERole r=kUser, EState s=kActive)
 
virtual ~TGLOverlayElement ()
 
virtual Bool_t MouseEnter (TGLOvlSelectRecord &selRec)
 Mouse has entered this element. More...
 
virtual Bool_t MouseStillInside (TGLOvlSelectRecord &selRec)
 
virtual Bool_t Handle (TGLRnrCtx &rnrCtx, TGLOvlSelectRecord &selRec, Event_t *event)
 Handle overlay event. More...
 
virtual void MouseLeave ()
 Mouse has left the element. More...
 
virtual void Render (TGLRnrCtx &rnrCtx)=0
 
ERole GetRole () const
 
void SetRole (ERole r)
 
EState GetState () const
 
void SetState (EState s)
 
void SetBinaryState (Bool_t s)
 

Protected Member Functions

void ProjectionMatrixPushIdentity ()
 

Protected Attributes

ERole fRole
 
EState fState
 

Private Member Functions

 TGLOverlayElement (const TGLOverlayElement &)
 
TGLOverlayElementoperator= (const TGLOverlayElement &)
 

#include <TGLOverlay.h>

+ Inheritance diagram for TGLOverlayElement:

Member Enumeration Documentation

Enumerator
kUser 
kViewer 
kAnnotation 
kAll 

Definition at line 25 of file TGLOverlay.h.

Enumerator
kInvisible 
kDisabled 
kActive 
kAllVisible 

Definition at line 27 of file TGLOverlay.h.

Constructor & Destructor Documentation

TGLOverlayElement::TGLOverlayElement ( const TGLOverlayElement )
private
TGLOverlayElement::TGLOverlayElement ( ERole  r = kUser,
EState  s = kActive 
)
inline

Definition at line 41 of file TGLOverlay.h.

virtual TGLOverlayElement::~TGLOverlayElement ( )
inlinevirtual

Definition at line 43 of file TGLOverlay.h.

Member Function Documentation

ERole TGLOverlayElement::GetRole ( ) const
inline

Definition at line 53 of file TGLOverlay.h.

EState TGLOverlayElement::GetState ( ) const
inline

Definition at line 56 of file TGLOverlay.h.

Referenced by TGLViewerBase::RenderOverlay().

Bool_t TGLOverlayElement::Handle ( TGLRnrCtx rnrCtx,
TGLOvlSelectRecord selRec,
Event_t event 
)
virtual

Handle overlay event.

Return TRUE if event was handled.

Reimplemented in TGLClipSet, TGLAnnotation, TEveCaloLegoOverlay, TGLOverlayButton, TGLManipSet, and TGLCameraGuide.

Definition at line 46 of file TGLOverlay.cxx.

Referenced by TGLEventHandler::HandleButton(), TGLEventHandler::HandleKey(), and TGLEventHandler::HandleMotion().

Bool_t TGLOverlayElement::MouseEnter ( TGLOvlSelectRecord selRec)
virtual

Mouse has entered this element.

Return TRUE if you want additional events.

Reimplemented in TGLClipSet, TGLAnnotation, TEveCaloLegoOverlay, TGLOverlayButton, TGLManipSet, and TGLCameraGuide.

Definition at line 25 of file TGLOverlay.cxx.

Referenced by TGLViewer::DoOverlaySelect().

void TGLOverlayElement::MouseLeave ( )
virtual

Mouse has left the element.

Reimplemented in TGLClipSet, TGLAnnotation, TEveCaloLegoOverlay, TGLOverlayButton, TGLManipSet, and TGLCameraGuide.

Definition at line 56 of file TGLOverlay.cxx.

Referenced by TGLViewer::ClearCurrentOvlElm(), and TGLViewer::DoOverlaySelect().

Bool_t TGLOverlayElement::MouseStillInside ( TGLOvlSelectRecord selRec)
virtual

Reimplemented in TGLClipSet.

Definition at line 30 of file TGLOverlay.cxx.

Referenced by TGLViewer::DoOverlaySelect(), and TGLClipSet::MouseStillInside().

TGLOverlayElement& TGLOverlayElement::operator= ( const TGLOverlayElement )
private
void TGLOverlayElement::ProjectionMatrixPushIdentity ( )
protected
virtual void TGLOverlayElement::Render ( TGLRnrCtx rnrCtx)
pure virtual
void TGLOverlayElement::SetBinaryState ( Bool_t  s)
inline

Definition at line 59 of file TGLOverlay.h.

void TGLOverlayElement::SetRole ( ERole  r)
inline

Definition at line 54 of file TGLOverlay.h.

void TGLOverlayElement::SetState ( EState  s)
inline

Definition at line 57 of file TGLOverlay.h.

Referenced by SetBinaryState().

Member Data Documentation

ERole TGLOverlayElement::fRole
protected

Definition at line 35 of file TGLOverlay.h.

Referenced by GetRole().

EState TGLOverlayElement::fState
protected

Definition at line 36 of file TGLOverlay.h.

Referenced by GetState().


The documentation for this class was generated from the following files: