Logo ROOT   6.10/09
Reference Guide
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
TEveCaloLegoOverlay Class Reference

GL-overlay control GUI for TEveCaloLego.

Definition at line 20 of file TEveCaloLegoOverlay.h.

Public Member Functions

 TEveCaloLegoOverlay ()
 Constructor. More...
 
virtual ~TEveCaloLegoOverlay ()
 
TEveCaloLegoGetCaloLego ()
 
const char * GetHeaderTxt () const
 
Bool_t GetShowPlane () 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 overlay area. More...
 
virtual void MouseLeave ()
 Mouse has left overlay area. More...
 
virtual void Render (TGLRnrCtx &rnrCtx)
 Display coordinates info of current frustum. More...
 
void SetCaloLego (TEveCaloLego *c)
 
void SetFrameAttribs (Color_t frameCol, Char_t lineTransp, Char_t bgTransp)
 Set frame attributes. More...
 
void SetHeaderTxt (const char *txt)
 
void SetScaleColorTransparency (Color_t colIdx, Char_t transp)
 Set color and transparency of scales. More...
 
void SetScalePosition (Double_t x, Double_t y)
 Set scale coordinates in range [0,1]. More...
 
void SetShowPlane (Bool_t x)
 
void SetShowScales (Bool_t x)
 
- Public Member Functions inherited from TGLCameraOverlay
 TGLCameraOverlay (Bool_t showOrtho=kTRUE, Bool_t showPersp=kFALSE)
 
virtual ~TGLCameraOverlay ()
 Destructor. More...
 
TAttAxisGetAttAxis ()
 Get axis attributes. More...
 
Int_t GetOrthographicMode () const
 
Int_t GetPerspectiveMode () const
 
Bool_t GetShowOrthographic () const
 
Bool_t GetShowPerspective () const
 
Bool_t GetUseExternalRefPlane () const
 
TGLPlaneRefExternalRefPlane ()
 
void SetFrustum (TGLCamera &cam)
 Set frustum values from given camera. More...
 
void SetOrthographicMode (EMode m)
 
void SetPerspectiveMode (EMode m)
 
void SetShowOrthographic (Bool_t x)
 
void SetShowPerspective (Bool_t x)
 
void UseExternalRefPlane (Bool_t x)
 
- Public Member Functions inherited from TGLOverlayElement
 TGLOverlayElement (ERole r=kUser, EState s=kActive)
 
virtual ~TGLOverlayElement ()
 
ERole GetRole () const
 
EState GetState () const
 
virtual Bool_t MouseStillInside (TGLOvlSelectRecord &selRec)
 
void SetBinaryState (Bool_t s)
 
void SetRole (ERole r)
 
void SetState (EState s)
 

Protected Member Functions

void RenderHeader (TGLRnrCtx &rnrCtx)
 
void RenderLogaritmicScales (TGLRnrCtx &rnrCtx)
 
void RenderPaletteScales (TGLRnrCtx &rnrCtx)
 
void RenderPlaneInterface (TGLRnrCtx &rnrCtx)
 Render menu for plane-value and the plane if marked. More...
 
- Protected Member Functions inherited from TGLCameraOverlay
void RenderAxis (TGLRnrCtx &rnrCtx, Bool_t drawGrid)
 Draw axis on four edges and a transparent grid. More...
 
void RenderBar (TGLRnrCtx &rnrCtx)
 Show frustum size with fixed screen line length and printed value. More...
 
void RenderGrid (TGLRnrCtx &rnrCtx)
 
void RenderPlaneIntersect (TGLRnrCtx &rnrCtx)
 Draw cross section coordinates in top right corner of screen. More...
 
- Protected Member Functions inherited from TGLOverlayElement
void ProjectionMatrixPushIdentity ()
 

Protected Attributes

Color_t fActiveCol
 
Int_t fActiveID
 
Color_t fAxisPlaneColor
 
Float_t fButtonW
 
TEveCaloLegofCalo
 
Double_t fCellX
 
Double_t fCellY
 
Char_t fFrameBgTransp
 
Color_t fFrameColor
 
Char_t fFrameLineTransp
 
Bool_t fHeaderSelected
 
TString fHeaderTxt
 
Bool_t fInDrag
 last mouse position More...
 
Float_t fMenuW
 
Int_t fMouseX
 
Int_t fMouseY
 
TAxisfPlaneAxis
 
Color_t fScaleColor
 
Double_t fScaleCoordX
 
Double_t fScaleCoordY
 
Double_t fScaleH
 
Char_t fScaleTransparency
 
Double_t fScaleW
 
Bool_t fShowPlane
 
Bool_t fShowScales
 
Bool_t fShowSlider
 
Float_t fSliderH
 
Float_t fSliderPosY
 
Float_t fSliderVal
 
- Protected Attributes inherited from TGLCameraOverlay
TAxisfAxis
 
Float_t fAxisExtend
 
TGLAxisPainterfAxisPainter
 
TGLPlane fExternalRefPlane
 
Double_t fFrustum [4]
 
EMode fOrthographicMode
 
EMode fPerspectiveMode
 
Bool_t fShowOrthographic
 
Bool_t fShowPerspective
 
Bool_t fUseAxisColors
 
Bool_t fUseExternalRefPlane
 
- Protected Attributes inherited from TGLOverlayElement
ERole fRole
 
EState fState
 

Private Member Functions

 TEveCaloLegoOverlay (const TEveCaloLegoOverlay &)
 
TEveCaloLegoOverlayoperator= (const TEveCaloLegoOverlay &)
 
Bool_t SetSliderVal (Event_t *event, TGLRnrCtx &rnrCtx)
 

Additional Inherited Members

- Public Types inherited from TGLCameraOverlay
enum  EMode {
  kPlaneIntersect, kBar, kAxis, kGridFront,
  kGridBack
}
 
- Public Types inherited from TGLOverlayElement
enum  ERole { kUser, kViewer, kAnnotation, kAll }
 
enum  EState { kInvisible = 1, kDisabled = 2, kActive = 4, kAllVisible = kDisabled | kActive }
 

#include <TEveCaloLegoOverlay.h>

Inheritance diagram for TEveCaloLegoOverlay:
[legend]

Constructor & Destructor Documentation

◆ TEveCaloLegoOverlay() [1/2]

TEveCaloLegoOverlay::TEveCaloLegoOverlay ( const TEveCaloLegoOverlay )
private

◆ TEveCaloLegoOverlay() [2/2]

TEveCaloLegoOverlay::TEveCaloLegoOverlay ( )

Constructor.

Definition at line 46 of file TEveCaloLegoOverlay.cxx.

◆ ~TEveCaloLegoOverlay()

virtual TEveCaloLegoOverlay::~TEveCaloLegoOverlay ( )
inlinevirtual

Definition at line 78 of file TEveCaloLegoOverlay.h.

Member Function Documentation

◆ GetCaloLego()

TEveCaloLego* TEveCaloLegoOverlay::GetCaloLego ( )
inline

Definition at line 89 of file TEveCaloLegoOverlay.h.

◆ GetHeaderTxt()

const char* TEveCaloLegoOverlay::GetHeaderTxt ( ) const
inline

Definition at line 96 of file TEveCaloLegoOverlay.h.

◆ GetShowPlane()

Bool_t TEveCaloLegoOverlay::GetShowPlane ( ) const
inline

Definition at line 93 of file TEveCaloLegoOverlay.h.

◆ Handle()

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

Handle overlay event.

Return TRUE if event was handled.

Reimplemented from TGLOverlayElement.

Definition at line 104 of file TEveCaloLegoOverlay.cxx.

◆ MouseEnter()

Bool_t TEveCaloLegoOverlay::MouseEnter ( TGLOvlSelectRecord selRec)
virtual

Mouse has entered overlay area.

Reimplemented from TGLOverlayElement.

Definition at line 200 of file TEveCaloLegoOverlay.cxx.

◆ MouseLeave()

void TEveCaloLegoOverlay::MouseLeave ( )
virtual

Mouse has left overlay area.

Reimplemented from TGLOverlayElement.

Definition at line 208 of file TEveCaloLegoOverlay.cxx.

◆ operator=()

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

◆ Render()

void TEveCaloLegoOverlay::Render ( TGLRnrCtx rnrCtx)
virtual

Display coordinates info of current frustum.

Reimplemented from TGLCameraOverlay.

Definition at line 598 of file TEveCaloLegoOverlay.cxx.

◆ RenderHeader()

void TEveCaloLegoOverlay::RenderHeader ( TGLRnrCtx rnrCtx)
protected

Definition at line 242 of file TEveCaloLegoOverlay.cxx.

◆ RenderLogaritmicScales()

void TEveCaloLegoOverlay::RenderLogaritmicScales ( TGLRnrCtx rnrCtx)
protected

Definition at line 380 of file TEveCaloLegoOverlay.cxx.

◆ RenderPaletteScales()

void TEveCaloLegoOverlay::RenderPaletteScales ( TGLRnrCtx rnrCtx)
protected

Definition at line 519 of file TEveCaloLegoOverlay.cxx.

◆ RenderPlaneInterface()

void TEveCaloLegoOverlay::RenderPlaneInterface ( TGLRnrCtx rnrCtx)
protected

Render menu for plane-value and the plane if marked.

Definition at line 282 of file TEveCaloLegoOverlay.cxx.

◆ SetCaloLego()

void TEveCaloLegoOverlay::SetCaloLego ( TEveCaloLego c)
inline

Definition at line 90 of file TEveCaloLegoOverlay.h.

◆ SetFrameAttribs()

void TEveCaloLegoOverlay::SetFrameAttribs ( Color_t  frameCol,
Char_t  lineTransp,
Char_t  bgTransp 
)

Set frame attributes.

Definition at line 234 of file TEveCaloLegoOverlay.cxx.

◆ SetHeaderTxt()

void TEveCaloLegoOverlay::SetHeaderTxt ( const char *  txt)
inline

Definition at line 95 of file TEveCaloLegoOverlay.h.

◆ SetScaleColorTransparency()

void TEveCaloLegoOverlay::SetScaleColorTransparency ( Color_t  colIdx,
Char_t  transp 
)

Set color and transparency of scales.

Definition at line 216 of file TEveCaloLegoOverlay.cxx.

◆ SetScalePosition()

void TEveCaloLegoOverlay::SetScalePosition ( Double_t  x,
Double_t  y 
)

Set scale coordinates in range [0,1].

Definition at line 225 of file TEveCaloLegoOverlay.cxx.

◆ SetShowPlane()

void TEveCaloLegoOverlay::SetShowPlane ( Bool_t  x)
inline

Definition at line 92 of file TEveCaloLegoOverlay.h.

◆ SetShowScales()

void TEveCaloLegoOverlay::SetShowScales ( Bool_t  x)
inline

Definition at line 98 of file TEveCaloLegoOverlay.h.

◆ SetSliderVal()

Bool_t TEveCaloLegoOverlay::SetSliderVal ( Event_t event,
TGLRnrCtx rnrCtx 
)
private

Definition at line 83 of file TEveCaloLegoOverlay.cxx.

Member Data Documentation

◆ fActiveCol

Color_t TEveCaloLegoOverlay::fActiveCol
protected

Definition at line 73 of file TEveCaloLegoOverlay.h.

◆ fActiveID

Int_t TEveCaloLegoOverlay::fActiveID
protected

Definition at line 72 of file TEveCaloLegoOverlay.h.

◆ fAxisPlaneColor

Color_t TEveCaloLegoOverlay::fAxisPlaneColor
protected

Definition at line 62 of file TEveCaloLegoOverlay.h.

◆ fButtonW

Float_t TEveCaloLegoOverlay::fButtonW
protected

Definition at line 66 of file TEveCaloLegoOverlay.h.

◆ fCalo

TEveCaloLego* TEveCaloLegoOverlay::fCalo
protected

Definition at line 35 of file TEveCaloLegoOverlay.h.

◆ fCellX

Double_t TEveCaloLegoOverlay::fCellX
protected

Definition at line 45 of file TEveCaloLegoOverlay.h.

◆ fCellY

Double_t TEveCaloLegoOverlay::fCellY
protected

Definition at line 46 of file TEveCaloLegoOverlay.h.

◆ fFrameBgTransp

Char_t TEveCaloLegoOverlay::fFrameBgTransp
protected

Definition at line 50 of file TEveCaloLegoOverlay.h.

◆ fFrameColor

Color_t TEveCaloLegoOverlay::fFrameColor
protected

Definition at line 48 of file TEveCaloLegoOverlay.h.

◆ fFrameLineTransp

Char_t TEveCaloLegoOverlay::fFrameLineTransp
protected

Definition at line 49 of file TEveCaloLegoOverlay.h.

◆ fHeaderSelected

Bool_t TEveCaloLegoOverlay::fHeaderSelected
protected

Definition at line 58 of file TEveCaloLegoOverlay.h.

◆ fHeaderTxt

TString TEveCaloLegoOverlay::fHeaderTxt
protected

Definition at line 57 of file TEveCaloLegoOverlay.h.

◆ fInDrag

Bool_t TEveCaloLegoOverlay::fInDrag
protected

last mouse position

Definition at line 54 of file TEveCaloLegoOverlay.h.

◆ fMenuW

Float_t TEveCaloLegoOverlay::fMenuW
protected

Definition at line 65 of file TEveCaloLegoOverlay.h.

◆ fMouseX

Int_t TEveCaloLegoOverlay::fMouseX
protected

Definition at line 53 of file TEveCaloLegoOverlay.h.

◆ fMouseY

Int_t TEveCaloLegoOverlay::fMouseY
protected

Definition at line 53 of file TEveCaloLegoOverlay.h.

◆ fPlaneAxis

TAxis* TEveCaloLegoOverlay::fPlaneAxis
protected

Definition at line 61 of file TEveCaloLegoOverlay.h.

◆ fScaleColor

Color_t TEveCaloLegoOverlay::fScaleColor
protected

Definition at line 39 of file TEveCaloLegoOverlay.h.

◆ fScaleCoordX

Double_t TEveCaloLegoOverlay::fScaleCoordX
protected

Definition at line 41 of file TEveCaloLegoOverlay.h.

◆ fScaleCoordY

Double_t TEveCaloLegoOverlay::fScaleCoordY
protected

Definition at line 42 of file TEveCaloLegoOverlay.h.

◆ fScaleH

Double_t TEveCaloLegoOverlay::fScaleH
protected

Definition at line 44 of file TEveCaloLegoOverlay.h.

◆ fScaleTransparency

Char_t TEveCaloLegoOverlay::fScaleTransparency
protected

Definition at line 40 of file TEveCaloLegoOverlay.h.

◆ fScaleW

Double_t TEveCaloLegoOverlay::fScaleW
protected

Definition at line 43 of file TEveCaloLegoOverlay.h.

◆ fShowPlane

Bool_t TEveCaloLegoOverlay::fShowPlane
protected

Definition at line 63 of file TEveCaloLegoOverlay.h.

◆ fShowScales

Bool_t TEveCaloLegoOverlay::fShowScales
protected

Definition at line 38 of file TEveCaloLegoOverlay.h.

◆ fShowSlider

Bool_t TEveCaloLegoOverlay::fShowSlider
protected

Definition at line 67 of file TEveCaloLegoOverlay.h.

◆ fSliderH

Float_t TEveCaloLegoOverlay::fSliderH
protected

Definition at line 68 of file TEveCaloLegoOverlay.h.

◆ fSliderPosY

Float_t TEveCaloLegoOverlay::fSliderPosY
protected

Definition at line 69 of file TEveCaloLegoOverlay.h.

◆ fSliderVal

Float_t TEveCaloLegoOverlay::fSliderVal
protected

Definition at line 70 of file TEveCaloLegoOverlay.h.


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