Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TEveCaloLegoOverlay.h
Go to the documentation of this file.
1// @(#)root/eve:$Id$
2// Author: Alja Mrak-Tadel 2007
3
4/*************************************************************************
5 * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TEveCaloLegoOverlay
13#define ROOT_TEveCaloLegoOverlay
14
15#include "TGLCameraOverlay.h"
16#include "TEveElement.h"
17
18class TEveCaloLego;
19
21{
22private:
23 TEveCaloLegoOverlay(const TEveCaloLegoOverlay&); // Not implemented
25
26 Bool_t SetSliderVal(Event_t* event,TGLRnrCtx& rnrCtx );
27
28
29protected:
31 void RenderPaletteScales(TGLRnrCtx& rnrCtx);
32 void RenderPlaneInterface(TGLRnrCtx& rnrCtx);
33 void RenderHeader(TGLRnrCtx& rnrCtx);
34
36
37 // 2D scales
40 Char_t fScaleTransparency; //transaprency in %
47
51
52 // move of scales
53 Int_t fMouseX, fMouseY; //! last mouse position
55
56 // text top right corner
59
60 // plane ojects
64 // plane state
68 Float_t fSliderH; // slider height in % of viewport
69 Float_t fSliderPosY; // y position of slider bottom up
71 // plane event-handling
74
75
76public:
79
80 //rendering
81 void Render(TGLRnrCtx& rnrCtx) override;
82
83 // event handling
84 Bool_t MouseEnter(TGLOvlSelectRecord& selRec) override;
85 Bool_t Handle(TGLRnrCtx& rnrCtx, TGLOvlSelectRecord& selRec, Event_t* event) override;
86 void MouseLeave() override;
87
88
91
93 Bool_t GetShowPlane() const { return fShowPlane; }
94
95 void SetHeaderTxt(const char *txt) {fHeaderTxt = txt; }
96 const char* GetHeaderTxt() const { return fHeaderTxt; }
97
99 void SetScaleColorTransparency(Color_t colIdx, Char_t transp);
101
102 void SetFrameAttribs(Color_t frameCol, Char_t lineTransp, Char_t bgTransp);
103
104 ClassDefOverride(TEveCaloLegoOverlay, 0); // GL-overaly control GUI for TEveCaloLego.
105};
106
107#endif
#define c(i)
Definition RSha256.hxx:101
bool Bool_t
Definition RtypesCore.h:63
short Color_t
Definition RtypesCore.h:85
char Char_t
Definition RtypesCore.h:37
float Float_t
Definition RtypesCore.h:57
double Double_t
Definition RtypesCore.h:59
#define ClassDefOverride(name, id)
Definition Rtypes.h:346
Class to manage histogram axis.
Definition TAxis.h:32
GL-overlay control GUI for TEveCaloLego.
Bool_t fInDrag
last mouse position
void RenderPlaneInterface(TGLRnrCtx &rnrCtx)
Render menu for plane-value and the plane if marked.
TEveCaloLegoOverlay & operator=(const TEveCaloLegoOverlay &)
void RenderHeader(TGLRnrCtx &rnrCtx)
void SetScaleColorTransparency(Color_t colIdx, Char_t transp)
Set color and transparency of scales.
Bool_t MouseEnter(TGLOvlSelectRecord &selRec) override
Mouse has entered overlay area.
Bool_t GetShowPlane() const
void Render(TGLRnrCtx &rnrCtx) override
TEveCaloLegoOverlay(const TEveCaloLegoOverlay &)
void MouseLeave() override
Mouse has left overlay area.
TEveCaloLegoOverlay()
Constructor.
void RenderPaletteScales(TGLRnrCtx &rnrCtx)
Bool_t SetSliderVal(Event_t *event, TGLRnrCtx &rnrCtx)
void SetShowScales(Bool_t x)
void SetScalePosition(Double_t x, Double_t y)
Set scale coordinates in range [0,1].
void RenderLogaritmicScales(TGLRnrCtx &rnrCtx)
TEveCaloLego * GetCaloLego()
void SetHeaderTxt(const char *txt)
void SetShowPlane(Bool_t x)
const char * GetHeaderTxt() const
Bool_t Handle(TGLRnrCtx &rnrCtx, TGLOvlSelectRecord &selRec, Event_t *event) override
Handle overlay event.
void SetCaloLego(TEveCaloLego *c)
void SetFrameAttribs(Color_t frameCol, Char_t lineTransp, Char_t bgTransp)
Set frame attributes.
Visualization of calorimeter data as eta/phi histogram.
Definition TEveCalo.h:251
A GL overlay element which displays camera furstum.
Selection record for overlay objects.
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
Definition TGLRnrCtx.h:41
Basic string class.
Definition TString.h:139
Double_t y[n]
Definition legend1.C:17
Double_t x[n]
Definition legend1.C:17
Event structure.
Definition GuiTypes.h:174