Logo ROOT  
Reference Guide
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 virtual Bool_t Rotate(Int_t xDelta, Int_t yDelta, Bool_t mod1, Bool_t mod2);
35
36public:
38
41
42 virtual Bool_t HandleKey(Event_t *event);
43
46
47 TEveCaloLego* GetLego() { return fLego; }
48 void SetLego( TEveCaloLego* x) { fLego = x; }
49
50 ClassDef(TEveLegoEventHandler, 0); // A GL event handler class. Swiches perspective or orthographic camera.
51};
52
53#endif
#define h(i)
Definition: RSha256.hxx:106
bool Bool_t
Definition: RtypesCore.h:61
float Float_t
Definition: RtypesCore.h:55
#define ClassDef(name, id)
Definition: Rtypes.h:322
Visualization of calorimeter data as eta/phi histogram.
Definition: TEveCalo.h:250
A base class of TGLEventHandler.
virtual Bool_t Rotate(Int_t xDelta, Int_t yDelta, Bool_t mod1, Bool_t mod2)
Method to handle action TGLViewer::kDragCameraRotate.
void SetLego(TEveCaloLego *x)
TEveLegoEventHandler & operator=(const TEveLegoEventHandler &)
TEveLegoEventHandler(const TEveLegoEventHandler &)
void SetTransTheta(Float_t h)
TEveCaloLego * GetLego()
virtual Bool_t HandleKey(Event_t *event)
Virtual from TGLEventHandler.
Base-class and default implementation of event-handler for TGLViewer.
Mother of all ROOT objects.
Definition: TObject.h:37
Double_t x[n]
Definition: legend1.C:17