TGLTransManip.h

Go to the documentation of this file.
00001 // @(#)root/gl:$Id: TGLTransManip.h 20882 2007-11-19 11:31:26Z rdm $
00002 // Author:  Richard Maunder  16/09/2005
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2005, 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_TGLTransManip
00013 #define ROOT_TGLTransManip
00014 
00015 #ifndef ROOT_TGLManip
00016 #include "TGLManip.h"
00017 #endif
00018 
00019 //////////////////////////////////////////////////////////////////////////
00020 //                                                                      //
00021 // TGLTransManip                                                        //
00022 //                                                                      //
00023 // Translation manipulator - attaches to physical shape and draws local //
00024 // axes widgets with arrow heads. User can mouse over (turns yellow) and//
00025 // L click/drag to translate along this axis.                           //
00026 // Widgets use standard 3D package axes colours: X red, Y green, Z blue.//
00027 //////////////////////////////////////////////////////////////////////////
00028 
00029 class TGLTransManip : public TGLManip
00030 {
00031 private:
00032 
00033 public:
00034    TGLTransManip();
00035    TGLTransManip(TGLPhysicalShape * shape);
00036    virtual ~TGLTransManip();
00037 
00038    virtual void   Draw(const TGLCamera & camera) const;
00039    virtual Bool_t HandleMotion(const Event_t & event, const TGLCamera & camera);
00040 
00041    ClassDef(TGLTransManip,0) // GL translation manipulator widget
00042 };
00043 
00044 #endif

Generated on Tue Jul 5 14:16:55 2011 for ROOT_528-00b_version by  doxygen 1.5.1