00001 // @(#)root/eve:$Id: TGLCameraGuide.h 34006 2010-06-21 10:36:05Z matevz $ 00002 // Author: Matevz Tadel 2007 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. * 00006 * All rights reserved. * 00007 * * 00008 * For the licensing terms see $ROOTSYS/LICENSE. * 00009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00010 *************************************************************************/ 00011 00012 #ifndef ROOT_TGLCameraGuide 00013 #define ROOT_TGLCameraGuide 00014 00015 #include "TGLOverlay.h" 00016 00017 class TGLCameraGuide : public TGLOverlayElement 00018 { 00019 private: 00020 TGLCameraGuide(const TGLCameraGuide&); // Not implemented 00021 TGLCameraGuide& operator=(const TGLCameraGuide&); // Not implemented 00022 00023 protected: 00024 Float_t fXPos; 00025 Float_t fYPos; 00026 Float_t fSize; 00027 00028 Int_t fSelAxis; 00029 Bool_t fInDrag; 00030 00031 public: 00032 TGLCameraGuide(Float_t x, Float_t y, Float_t s, 00033 ERole role=kUser, EState state=kActive); 00034 virtual ~TGLCameraGuide() {} 00035 00036 void SetX(Float_t x) { fXPos = x; } 00037 void SetY(Float_t y) { fYPos = y; } 00038 void SetXY(Float_t x, Float_t y) { fXPos = x; fYPos = y; } 00039 void SetSize(Float_t s) { fSize = s; } 00040 00041 virtual Bool_t MouseEnter(TGLOvlSelectRecord& selRec); 00042 virtual Bool_t Handle(TGLRnrCtx& rnrCtx, TGLOvlSelectRecord& selRec, 00043 Event_t* event); 00044 virtual void MouseLeave(); 00045 00046 virtual void Render(TGLRnrCtx& rnrCtx); 00047 00048 ClassDef(TGLCameraGuide, 0); // Short description. 00049 }; 00050 00051 #endif