Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TGLTransManip.h
Go to the documentation of this file.
1 // @(#)root/gl:$Id$
2 // Author: Richard Maunder 16/09/2005
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2005, 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_TGLTransManip
13 #define ROOT_TGLTransManip
14 
15 #include "TGLManip.h"
16 
17 //////////////////////////////////////////////////////////////////////////
18 // //
19 // TGLTransManip //
20 // //
21 // Translation manipulator - attaches to physical shape and draws local //
22 // axes widgets with arrow heads. User can mouse over (turns yellow) and//
23 // L click/drag to translate along this axis. //
24 // Widgets use standard 3D package axes colours: X red, Y green, Z blue.//
25 //////////////////////////////////////////////////////////////////////////
26 
27 class TGLTransManip : public TGLManip
28 {
29 private:
30 
31 public:
32  TGLTransManip();
33  TGLTransManip(TGLPhysicalShape * shape);
34  virtual ~TGLTransManip();
35 
36  virtual void Draw(const TGLCamera & camera) const;
37  virtual Bool_t HandleMotion(const Event_t & event, const TGLCamera & camera);
38 
39  ClassDef(TGLTransManip,0) // GL translation manipulator widget
40 };
41 
42 #endif