ROOT  6.06/09
Reference Guide
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 ()
 
virtual void Render (TGLRnrCtx &rnrCtx)
 Display coordinates info of current frustum. More...
 
virtual Bool_t MouseEnter (TGLOvlSelectRecord &selRec)
 Mouse has entered overlay area. More...
 
virtual Bool_t Handle (TGLRnrCtx &rnrCtx, TGLOvlSelectRecord &selRec, Event_t *event)
 Handle overlay event. More...
 
virtual void MouseLeave ()
 Mouse has left overlay area. More...
 
TEveCaloLegoGetCaloLego ()
 
void SetCaloLego (TEveCaloLego *c)
 
void SetShowPlane (Bool_t x)
 
Bool_t GetShowPlane () const
 
void SetHeaderTxt (const char *txt)
 
const char * GetHeaderTxt () const
 
void SetShowScales (Bool_t x)
 
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 SetFrameAttribs (Color_t frameCol, Char_t lineTransp, Char_t bgTransp)
 Set frame attributes. More...
 
 ClassDef (TEveCaloLegoOverlay, 0)
 
- Public Member Functions inherited from TGLCameraOverlay
 TGLCameraOverlay (Bool_t showOrtho=kTRUE, Bool_t showPersp=kFALSE)
 
virtual ~TGLCameraOverlay ()
 Destructor. More...
 
TGLPlaneRefExternalRefPlane ()
 
void UseExternalRefPlane (Bool_t x)
 
Bool_t GetUseExternalRefPlane () const
 
Int_t GetPerspectiveMode () const
 
void SetPerspectiveMode (EMode m)
 
Int_t GetOrthographicMode () const
 
void SetOrthographicMode (EMode m)
 
Bool_t GetShowOrthographic () const
 
void SetShowOrthographic (Bool_t x)
 
Bool_t GetShowPerspective () const
 
void SetShowPerspective (Bool_t x)
 
void SetFrustum (TGLCamera &cam)
 Set frustum values from given camera. More...
 
TAttAxisGetAttAxis ()
 Get axis attributes. More...
 
 ClassDef (TGLCameraOverlay, 1)
 
- Public Member Functions inherited from TGLOverlayElement
 TGLOverlayElement (ERole r=kUser, EState s=kActive)
 
virtual ~TGLOverlayElement ()
 
virtual Bool_t MouseStillInside (TGLOvlSelectRecord &selRec)
 
ERole GetRole () const
 
void SetRole (ERole r)
 
EState GetState () const
 
void SetState (EState s)
 
void SetBinaryState (Bool_t s)
 

Protected Member Functions

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

Protected Attributes

TEveCaloLegofCalo
 
Bool_t fShowScales
 
Color_t fScaleColor
 
Char_t fScaleTransparency
 
Double_t fScaleCoordX
 
Double_t fScaleCoordY
 
Double_t fScaleW
 
Double_t fScaleH
 
Double_t fCellX
 
Double_t fCellY
 
Color_t fFrameColor
 
Char_t fFrameLineTransp
 
Char_t fFrameBgTransp
 
Int_t fMouseX
 
Int_t fMouseY
 
Bool_t fInDrag
 last mouse position More...
 
TString fHeaderTxt
 
Bool_t fHeaderSelected
 
TAxisfPlaneAxis
 
Color_t fAxisPlaneColor
 
Bool_t fShowPlane
 
Float_t fMenuW
 
Float_t fButtonW
 
Bool_t fShowSlider
 
Float_t fSliderH
 
Float_t fSliderPosY
 
Float_t fSliderVal
 
Int_t fActiveID
 
Color_t fActiveCol
 
- Protected Attributes inherited from TGLCameraOverlay
Bool_t fShowOrthographic
 
Bool_t fShowPerspective
 
EMode fOrthographicMode
 
EMode fPerspectiveMode
 
TGLAxisPainterfAxisPainter
 
TAxisfAxis
 
Float_t fAxisExtend
 
Bool_t fUseAxisColors
 
TGLPlane fExternalRefPlane
 
Bool_t fUseExternalRefPlane
 
Double_t fFrustum [4]
 
- 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:
+ Collaboration diagram for TEveCaloLegoOverlay:

Constructor & Destructor Documentation

TEveCaloLegoOverlay::TEveCaloLegoOverlay ( const TEveCaloLegoOverlay )
private
TEveCaloLegoOverlay::TEveCaloLegoOverlay ( )

Constructor.

Definition at line 46 of file TEveCaloLegoOverlay.cxx.

virtual TEveCaloLegoOverlay::~TEveCaloLegoOverlay ( )
inlinevirtual

Definition at line 78 of file TEveCaloLegoOverlay.h.

Member Function Documentation

TEveCaloLegoOverlay::ClassDef ( TEveCaloLegoOverlay  ,
 
)
TEveCaloLego* TEveCaloLegoOverlay::GetCaloLego ( )
inline

Definition at line 89 of file TEveCaloLegoOverlay.h.

const char* TEveCaloLegoOverlay::GetHeaderTxt ( ) const
inline

Definition at line 96 of file TEveCaloLegoOverlay.h.

Bool_t TEveCaloLegoOverlay::GetShowPlane ( ) const
inline

Definition at line 93 of file TEveCaloLegoOverlay.h.

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.

Bool_t TEveCaloLegoOverlay::MouseEnter ( TGLOvlSelectRecord selRec)
virtual

Mouse has entered overlay area.

Reimplemented from TGLOverlayElement.

Definition at line 200 of file TEveCaloLegoOverlay.cxx.

void TEveCaloLegoOverlay::MouseLeave ( )
virtual

Mouse has left overlay area.

Reimplemented from TGLOverlayElement.

Definition at line 208 of file TEveCaloLegoOverlay.cxx.

TEveCaloLegoOverlay& TEveCaloLegoOverlay::operator= ( const TEveCaloLegoOverlay )
private
void TEveCaloLegoOverlay::Render ( TGLRnrCtx rnrCtx)
virtual

Display coordinates info of current frustum.

Reimplemented from TGLCameraOverlay.

Definition at line 598 of file TEveCaloLegoOverlay.cxx.

void TEveCaloLegoOverlay::RenderHeader ( TGLRnrCtx rnrCtx)
protected

Definition at line 242 of file TEveCaloLegoOverlay.cxx.

Referenced by Render().

void TEveCaloLegoOverlay::RenderLogaritmicScales ( TGLRnrCtx rnrCtx)
protected

Definition at line 380 of file TEveCaloLegoOverlay.cxx.

Referenced by Render().

void TEveCaloLegoOverlay::RenderPaletteScales ( TGLRnrCtx rnrCtx)
protected

Definition at line 519 of file TEveCaloLegoOverlay.cxx.

Referenced by Render().

void TEveCaloLegoOverlay::RenderPlaneInterface ( TGLRnrCtx rnrCtx)
protected

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

Definition at line 282 of file TEveCaloLegoOverlay.cxx.

Referenced by Render().

void TEveCaloLegoOverlay::SetCaloLego ( TEveCaloLego c)
inline

Definition at line 90 of file TEveCaloLegoOverlay.h.

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

Set frame attributes.

Definition at line 234 of file TEveCaloLegoOverlay.cxx.

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

Definition at line 95 of file TEveCaloLegoOverlay.h.

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

Set color and transparency of scales.

Definition at line 216 of file TEveCaloLegoOverlay.cxx.

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

Set scale coordinates in range [0,1].

Definition at line 225 of file TEveCaloLegoOverlay.cxx.

void TEveCaloLegoOverlay::SetShowPlane ( Bool_t  x)
inline

Definition at line 92 of file TEveCaloLegoOverlay.h.

void TEveCaloLegoOverlay::SetShowScales ( Bool_t  x)
inline

Definition at line 98 of file TEveCaloLegoOverlay.h.

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

Definition at line 83 of file TEveCaloLegoOverlay.cxx.

Referenced by Handle().

Member Data Documentation

Color_t TEveCaloLegoOverlay::fActiveCol
protected

Definition at line 73 of file TEveCaloLegoOverlay.h.

Referenced by RenderHeader(), and RenderPlaneInterface().

Int_t TEveCaloLegoOverlay::fActiveID
protected

Definition at line 72 of file TEveCaloLegoOverlay.h.

Referenced by Handle(), MouseLeave(), and RenderPlaneInterface().

Color_t TEveCaloLegoOverlay::fAxisPlaneColor
protected

Definition at line 62 of file TEveCaloLegoOverlay.h.

Float_t TEveCaloLegoOverlay::fButtonW
protected

Definition at line 66 of file TEveCaloLegoOverlay.h.

Referenced by RenderPlaneInterface().

TEveCaloLego* TEveCaloLegoOverlay::fCalo
protected
Double_t TEveCaloLegoOverlay::fCellX
protected

Definition at line 45 of file TEveCaloLegoOverlay.h.

Referenced by Render(), and RenderLogaritmicScales().

Double_t TEveCaloLegoOverlay::fCellY
protected

Definition at line 46 of file TEveCaloLegoOverlay.h.

Referenced by Render(), and RenderLogaritmicScales().

Char_t TEveCaloLegoOverlay::fFrameBgTransp
protected

Definition at line 50 of file TEveCaloLegoOverlay.h.

Referenced by RenderLogaritmicScales(), and SetFrameAttribs().

Color_t TEveCaloLegoOverlay::fFrameColor
protected

Definition at line 48 of file TEveCaloLegoOverlay.h.

Referenced by RenderLogaritmicScales(), and SetFrameAttribs().

Char_t TEveCaloLegoOverlay::fFrameLineTransp
protected

Definition at line 49 of file TEveCaloLegoOverlay.h.

Referenced by RenderLogaritmicScales(), and SetFrameAttribs().

Bool_t TEveCaloLegoOverlay::fHeaderSelected
protected

Definition at line 58 of file TEveCaloLegoOverlay.h.

Referenced by Handle(), and RenderHeader().

TString TEveCaloLegoOverlay::fHeaderTxt
protected

Definition at line 57 of file TEveCaloLegoOverlay.h.

Referenced by GetHeaderTxt(), Render(), and RenderHeader().

Bool_t TEveCaloLegoOverlay::fInDrag
protected

last mouse position

Definition at line 54 of file TEveCaloLegoOverlay.h.

Referenced by Handle().

Float_t TEveCaloLegoOverlay::fMenuW
protected

Definition at line 65 of file TEveCaloLegoOverlay.h.

Referenced by RenderPlaneInterface().

Int_t TEveCaloLegoOverlay::fMouseX
protected

Definition at line 53 of file TEveCaloLegoOverlay.h.

Referenced by Handle().

Int_t TEveCaloLegoOverlay::fMouseY
protected

Definition at line 53 of file TEveCaloLegoOverlay.h.

Referenced by Handle().

TAxis* TEveCaloLegoOverlay::fPlaneAxis
protected

Definition at line 61 of file TEveCaloLegoOverlay.h.

Referenced by RenderPlaneInterface(), and TEveCaloLegoOverlay().

Color_t TEveCaloLegoOverlay::fScaleColor
protected

Definition at line 39 of file TEveCaloLegoOverlay.h.

Referenced by RenderLogaritmicScales(), and SetScaleColorTransparency().

Double_t TEveCaloLegoOverlay::fScaleCoordX
protected
Double_t TEveCaloLegoOverlay::fScaleCoordY
protected
Double_t TEveCaloLegoOverlay::fScaleH
protected

Definition at line 44 of file TEveCaloLegoOverlay.h.

Referenced by Handle(), RenderLogaritmicScales(), and RenderPaletteScales().

Char_t TEveCaloLegoOverlay::fScaleTransparency
protected

Definition at line 40 of file TEveCaloLegoOverlay.h.

Referenced by RenderLogaritmicScales(), and SetScaleColorTransparency().

Double_t TEveCaloLegoOverlay::fScaleW
protected

Definition at line 43 of file TEveCaloLegoOverlay.h.

Referenced by Handle(), RenderLogaritmicScales(), and RenderPaletteScales().

Bool_t TEveCaloLegoOverlay::fShowPlane
protected

Definition at line 63 of file TEveCaloLegoOverlay.h.

Referenced by GetShowPlane(), and Render().

Bool_t TEveCaloLegoOverlay::fShowScales
protected

Definition at line 38 of file TEveCaloLegoOverlay.h.

Referenced by Render().

Bool_t TEveCaloLegoOverlay::fShowSlider
protected

Definition at line 67 of file TEveCaloLegoOverlay.h.

Referenced by Handle(), and RenderPlaneInterface().

Float_t TEveCaloLegoOverlay::fSliderH
protected

Definition at line 68 of file TEveCaloLegoOverlay.h.

Referenced by RenderPlaneInterface(), and SetSliderVal().

Float_t TEveCaloLegoOverlay::fSliderPosY
protected

Definition at line 69 of file TEveCaloLegoOverlay.h.

Referenced by RenderPlaneInterface(), and SetSliderVal().

Float_t TEveCaloLegoOverlay::fSliderVal
protected

Definition at line 70 of file TEveCaloLegoOverlay.h.

Referenced by RenderPlaneInterface(), and SetSliderVal().


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