12 #ifndef ROOT_TEveCaloLegoOverlay
13 #define ROOT_TEveCaloLegoOverlay
20 class TEveCaloLegoOverlay :
public TGLCameraOverlay
23 TEveCaloLegoOverlay(
const TEveCaloLegoOverlay&);
24 TEveCaloLegoOverlay& operator=(
const TEveCaloLegoOverlay&);
26 Bool_t SetSliderVal(Event_t* event,TGLRnrCtx& rnrCtx );
30 void RenderLogaritmicScales(TGLRnrCtx& rnrCtx);
31 void RenderPaletteScales(TGLRnrCtx& rnrCtx);
32 void RenderPlaneInterface(TGLRnrCtx& rnrCtx);
33 void RenderHeader(TGLRnrCtx& rnrCtx);
40 Char_t fScaleTransparency;
41 Double_t fScaleCoordX;
42 Double_t fScaleCoordY;
49 Char_t fFrameLineTransp;
50 Char_t fFrameBgTransp;
53 Int_t fMouseX, fMouseY;
58 Bool_t fHeaderSelected;
62 Color_t fAxisPlaneColor;
77 TEveCaloLegoOverlay();
78 virtual ~TEveCaloLegoOverlay(){}
81 virtual void Render(TGLRnrCtx& rnrCtx);
84 virtual Bool_t MouseEnter(TGLOvlSelectRecord& selRec);
85 virtual Bool_t Handle(TGLRnrCtx& rnrCtx, TGLOvlSelectRecord& selRec, Event_t* event);
86 virtual void MouseLeave();
89 TEveCaloLego* GetCaloLego() {
return fCalo;}
90 void SetCaloLego(TEveCaloLego* c) {fCalo = c;}
92 void SetShowPlane (Bool_t x) { fShowPlane = x; }
93 Bool_t GetShowPlane()
const {
return fShowPlane; }
95 void SetHeaderTxt(
const char *txt) {fHeaderTxt = txt; }
96 const char* GetHeaderTxt()
const {
return fHeaderTxt; }
98 void SetShowScales(Bool_t x) { fShowScales = x;}
99 void SetScaleColorTransparency(Color_t colIdx, Char_t transp);
100 void SetScalePosition(Double_t x, Double_t y);
102 void SetFrameAttribs(Color_t frameCol, Char_t lineTransp, Char_t bgTransp);
104 ClassDef(TEveCaloLegoOverlay, 0);