Logo ROOT  
Reference Guide
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 ()
 
ERole GetRole () const
 
EState GetState () const
 
virtual Bool_t Handle (TGLRnrCtx &rnrCtx, TGLOvlSelectRecord &selRec, Event_t *event)
 Handle overlay event. More...
 
virtual Bool_t MouseEnter (TGLOvlSelectRecord &selRec)
 Mouse has entered this element. More...
 
virtual void MouseLeave ()
 Mouse has left the element. More...
 
virtual Bool_t MouseStillInside (TGLOvlSelectRecord &selRec)
 
virtual void Render (TGLRnrCtx &rnrCtx)=0
 
void SetBinaryState (Bool_t s)
 
void SetRole (ERole r)
 
void SetState (EState 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:
[legend]

Member Enumeration Documentation

◆ ERole

Enumerator
kUser 
kViewer 
kAnnotation 
kAll 

Definition at line 25 of file TGLOverlay.h.

◆ EState

Enumerator
kInvisible 
kDisabled 
kActive 
kAllVisible 

Definition at line 27 of file TGLOverlay.h.

Constructor & Destructor Documentation

◆ TGLOverlayElement() [1/2]

TGLOverlayElement::TGLOverlayElement ( const TGLOverlayElement )
private

◆ TGLOverlayElement() [2/2]

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

Definition at line 41 of file TGLOverlay.h.

◆ ~TGLOverlayElement()

virtual TGLOverlayElement::~TGLOverlayElement ( )
inlinevirtual

Definition at line 43 of file TGLOverlay.h.

Member Function Documentation

◆ GetRole()

ERole TGLOverlayElement::GetRole ( ) const
inline

Definition at line 53 of file TGLOverlay.h.

◆ GetState()

EState TGLOverlayElement::GetState ( ) const
inline

Definition at line 56 of file TGLOverlay.h.

◆ Handle()

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

Handle overlay event.

Return TRUE if event was handled.

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

Definition at line 46 of file TGLOverlay.cxx.

◆ MouseEnter()

Bool_t TGLOverlayElement::MouseEnter ( TGLOvlSelectRecord selRec)
virtual

Mouse has entered this element.

Return TRUE if you want additional events.

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

Definition at line 25 of file TGLOverlay.cxx.

◆ MouseLeave()

void TGLOverlayElement::MouseLeave ( )
virtual

Mouse has left the element.

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

Definition at line 56 of file TGLOverlay.cxx.

◆ MouseStillInside()

Bool_t TGLOverlayElement::MouseStillInside ( TGLOvlSelectRecord selRec)
virtual

Reimplemented in TGLClipSet.

Definition at line 30 of file TGLOverlay.cxx.

◆ operator=()

TGLOverlayElement & TGLOverlayElement::operator= ( const TGLOverlayElement )
private

◆ ProjectionMatrixPushIdentity()

void TGLOverlayElement::ProjectionMatrixPushIdentity ( )
protected

◆ Render()

virtual void TGLOverlayElement::Render ( TGLRnrCtx rnrCtx)
pure virtual

◆ SetBinaryState()

void TGLOverlayElement::SetBinaryState ( Bool_t  s)
inline

Definition at line 59 of file TGLOverlay.h.

◆ SetRole()

void TGLOverlayElement::SetRole ( ERole  r)
inline

Definition at line 54 of file TGLOverlay.h.

◆ SetState()

void TGLOverlayElement::SetState ( EState  s)
inline

Definition at line 57 of file TGLOverlay.h.

Member Data Documentation

◆ fRole

ERole TGLOverlayElement::fRole
protected

Definition at line 35 of file TGLOverlay.h.

◆ fState

EState TGLOverlayElement::fState
protected

Definition at line 36 of file TGLOverlay.h.


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