#ifndef ROOT_TEveLegoOverlay
#define ROOT_TEveLegoOverlay
#include "TGLCameraOverlay.h"
#include "TEveElement.h"
#include "TGLAxisPainter.h"
class TEveCaloLego;
class TEveLegoOverlay : public TGLCameraOverlay,
public TEveElementList
{
private:
TEveLegoOverlay(const TEveLegoOverlay&);
TEveLegoOverlay& operator=(const TEveLegoOverlay&);
void DrawSlider(TGLRnrCtx& rnrCtx);
Bool_t SetSliderVal(Event_t* event,TGLRnrCtx& rnrCtx );
TString fHeaderTxt;
Bool_t fHeaderSelected;
protected:
TEveCaloLego* fCalo;
Color_t fMainColor;
Bool_t fShowCamera;
Bool_t fShowPlane;
Float_t fMenuW;
Float_t fButtonW;
Float_t fSliderH;
Float_t fSliderPosY;
Bool_t fShowSlider;
Float_t fSliderVal;
Int_t fActiveID;
Color_t fActiveCol;
virtual void RenderPlaneInterface(TGLRnrCtx& rnrCtx);
virtual void RenderHeader(TGLRnrCtx& rnrCtx);
public:
TEveLegoOverlay();
virtual ~TEveLegoOverlay(){}
virtual Bool_t MouseEnter(TGLOvlSelectRecord& selRec);
virtual Bool_t Handle(TGLRnrCtx& rnrCtx, TGLOvlSelectRecord& selRec, Event_t* event);
virtual void MouseLeave();
virtual void Render(TGLRnrCtx& rnrCtx);
TEveCaloLego* GetCaloLego() {return fCalo;}
void SetCaloLego(TEveCaloLego* c) {fCalo = c;}
void SetShowCamera (Bool_t x) { fShowCamera = x; }
Bool_t GetShowCamera() const { return fShowCamera; }
void SetShowPlane (Bool_t x) { fShowPlane = x; }
Bool_t GetShowPlane() const { return fShowPlane; }
void SetHeaderTxt(const char *txt) {fHeaderTxt = txt; }
const char* GetHeaderTxt() const { return fHeaderTxt; }
ClassDef(TEveLegoOverlay, 0);
};
#endif
Last change: Mon Nov 24 08:18:40 2008
Last generated: 2008-11-24 08:18
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.