Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TEveLegoEventHandler.h
Go to the documentation of this file.
1// @(#)root/eve:$Id$
2// Author: Matevz 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
13#ifndef ROOT_TEveLegoEventHandler
14#define ROOT_TEveLegoEventHandler
15
16#include "TGLEventHandler.h"
17#include "TGLCamera.h"
18
19class TEveCaloLego;
20
22{
23private:
24 TEveLegoEventHandler(const TEveLegoEventHandler&); // Not implemented
26
27protected:
29
30 EMode_e fMode; // current rotation mode
31 Float_t fTransTheta; // transition theta in radians
33
34 Bool_t Rotate(Int_t xDelta, Int_t yDelta, Bool_t mod1, Bool_t mod2) override;
35
36public:
38
41
42 Bool_t HandleKey(Event_t *event) override;
43
46
47 TEveCaloLego* GetLego() { return fLego; }
48 void SetLego( TEveCaloLego* x) { fLego = x; }
49
50 ClassDefOverride(TEveLegoEventHandler, 0); // A GL event handler class. Switches perspective or orthographic camera.
51};
52
53#endif
#define h(i)
Definition RSha256.hxx:106
bool Bool_t
Definition RtypesCore.h:63
float Float_t
Definition RtypesCore.h:57
Visualization of calorimeter data as eta/phi histogram.
Definition TEveCalo.h:251
A base class of TGLEventHandler.
void SetLego(TEveCaloLego *x)
TEveLegoEventHandler & operator=(const TEveLegoEventHandler &)
TEveLegoEventHandler(const TEveLegoEventHandler &)
void SetTransTheta(Float_t h)
Bool_t HandleKey(Event_t *event) override
Virtual from TGLEventHandler.
Bool_t Rotate(Int_t xDelta, Int_t yDelta, Bool_t mod1, Bool_t mod2) override
Method to handle action TGLViewer::kDragCameraRotate.
ClassDefOverride(TEveLegoEventHandler, 0)
Base-class and default implementation of event-handler for TGLViewer.
ROOT GUI Window base class.
Definition TGWindow.h:23
Mother of all ROOT objects.
Definition TObject.h:41
void lego()
Definition lego.C:31
Double_t x[n]
Definition legend1.C:17
Event structure.
Definition GuiTypes.h:174