Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TEveCaloLegoOverlay Class Reference

GL-overlay control GUI for TEveCaloLego.

Definition at line 20 of file TEveCaloLegoOverlay.h.

Public Member Functions

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

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TGLCameraOverlay
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 

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.
 
- Protected Member Functions inherited from TGLCameraOverlay
void RenderAxis (TGLRnrCtx &rnrCtx, Bool_t drawGrid)
 Draw axis on four edges and a transparent grid.
 
void RenderBar (TGLRnrCtx &rnrCtx)
 Show frustum size with fixed screen line length and printed value.
 
void RenderGrid (TGLRnrCtx &rnrCtx)
 
void RenderPlaneIntersect (TGLRnrCtx &rnrCtx)
 Draw cross section coordinates in top right corner of screen.
 
- 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
 
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 44 of file TEveCaloLegoOverlay.cxx.

◆ ~TEveCaloLegoOverlay()

TEveCaloLegoOverlay::~TEveCaloLegoOverlay ( )
inlineoverride

Definition at line 78 of file TEveCaloLegoOverlay.h.

Member Function Documentation

◆ Class()

static TClass * TEveCaloLegoOverlay::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TEveCaloLegoOverlay::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TEveCaloLegoOverlay::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 104 of file TEveCaloLegoOverlay.h.

◆ DeclFileName()

static const char * TEveCaloLegoOverlay::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 104 of file TEveCaloLegoOverlay.h.

◆ 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 
)
overridevirtual

Handle overlay event.

Return TRUE if event was handled.

Reimplemented from TGLOverlayElement.

Definition at line 102 of file TEveCaloLegoOverlay.cxx.

◆ IsA()

TClass * TEveCaloLegoOverlay::IsA ( ) const
inlineoverride
Returns
TClass describing current object

Definition at line 104 of file TEveCaloLegoOverlay.h.

◆ MouseEnter()

Bool_t TEveCaloLegoOverlay::MouseEnter ( TGLOvlSelectRecord selRec)
overridevirtual

Mouse has entered overlay area.

Reimplemented from TGLOverlayElement.

Definition at line 198 of file TEveCaloLegoOverlay.cxx.

◆ MouseLeave()

void TEveCaloLegoOverlay::MouseLeave ( )
overridevirtual

Mouse has left overlay area.

Reimplemented from TGLOverlayElement.

Definition at line 206 of file TEveCaloLegoOverlay.cxx.

◆ operator=()

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

◆ Render()

void TEveCaloLegoOverlay::Render ( TGLRnrCtx rnrCtx)
overridevirtual

Implements TGLOverlayElement.

Definition at line 596 of file TEveCaloLegoOverlay.cxx.

◆ RenderHeader()

void TEveCaloLegoOverlay::RenderHeader ( TGLRnrCtx rnrCtx)
protected

Definition at line 240 of file TEveCaloLegoOverlay.cxx.

◆ RenderLogaritmicScales()

void TEveCaloLegoOverlay::RenderLogaritmicScales ( TGLRnrCtx rnrCtx)
protected

Definition at line 378 of file TEveCaloLegoOverlay.cxx.

◆ RenderPaletteScales()

void TEveCaloLegoOverlay::RenderPaletteScales ( TGLRnrCtx rnrCtx)
protected

Definition at line 517 of file TEveCaloLegoOverlay.cxx.

◆ RenderPlaneInterface()

void TEveCaloLegoOverlay::RenderPlaneInterface ( TGLRnrCtx rnrCtx)
protected

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

Definition at line 280 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 232 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 214 of file TEveCaloLegoOverlay.cxx.

◆ SetScalePosition()

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

Set scale coordinates in range [0,1].

Definition at line 223 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 81 of file TEveCaloLegoOverlay.cxx.

◆ Streamer()

void TEveCaloLegoOverlay::Streamer ( TBuffer )
override

◆ StreamerNVirtual()

void TEveCaloLegoOverlay::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 104 of file TEveCaloLegoOverlay.h.

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.

Libraries for TEveCaloLegoOverlay:

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