ROOT  6.06/09
Reference Guide
TGLCameraGuide.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 #ifndef ROOT_TGLCameraGuide
13 #define ROOT_TGLCameraGuide
14 
15 #include "TGLOverlay.h"
16 
18 {
19 private:
20  TGLCameraGuide(const TGLCameraGuide&); // Not implemented
21  TGLCameraGuide& operator=(const TGLCameraGuide&); // Not implemented
22 
23 protected:
27 
30 
31 public:
33  ERole role=kUser, EState state=kActive);
34  virtual ~TGLCameraGuide() {}
35 
36  void SetX(Float_t x) { fXPos = x; }
37  void SetY(Float_t y) { fYPos = y; }
38  void SetXY(Float_t x, Float_t y) { fXPos = x; fYPos = y; }
39  void SetSize(Float_t s) { fSize = s; }
40 
41  virtual Bool_t MouseEnter(TGLOvlSelectRecord& selRec);
42  virtual Bool_t Handle(TGLRnrCtx& rnrCtx, TGLOvlSelectRecord& selRec,
43  Event_t* event);
44  virtual void MouseLeave();
45 
46  virtual void Render(TGLRnrCtx& rnrCtx);
47 
48  ClassDef(TGLCameraGuide, 0); // Short description.
49 };
50 
51 #endif
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
Definition: TGLRnrCtx.h:40
float Float_t
Definition: RtypesCore.h:53
void SetX(Float_t x)
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
An overlay element.
Definition: TGLOverlay.h:22
virtual ~TGLCameraGuide()
void SetSize(Float_t s)
Double_t x[n]
Definition: legend1.C:17
void SetY(Float_t y)
virtual Bool_t MouseEnter(TGLOvlSelectRecord &selRec)
Mouse has entered overlay area.
virtual Bool_t Handle(TGLRnrCtx &rnrCtx, TGLOvlSelectRecord &selRec, Event_t *event)
Handle overlay event.
TGLCameraGuide & operator=(const TGLCameraGuide &)
Draws arrows showing camera orientation in the overlay.
virtual void MouseLeave()
Mouse has left overlay area.
Double_t y[n]
Definition: legend1.C:17
TGLCameraGuide(const TGLCameraGuide &)
void SetXY(Float_t x, Float_t y)
ClassDef(TGLCameraGuide, 0)
Selection record for overlay objects.
virtual void Render(TGLRnrCtx &rnrCtx)
Render the camera axis arrows.