Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
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 
17 class TGLCameraGuide : public TGLOverlayElement
18 {
19 private:
20  TGLCameraGuide(const TGLCameraGuide&); // Not implemented
21  TGLCameraGuide& operator=(const TGLCameraGuide&); // Not implemented
22 
23 protected:
24  Float_t fXPos;
25  Float_t fYPos;
26  Float_t fSize;
27 
28  Int_t fSelAxis;
29  Bool_t fInDrag;
30 
31 public:
32  TGLCameraGuide(Float_t x, Float_t y, Float_t s,
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