Logo ROOT   6.07/09
Reference Guide
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 #ifndef ROOT_TGLManip
16 #include "TGLManip.h"
17 #endif
18 
19 //////////////////////////////////////////////////////////////////////////
20 // //
21 // TGLTransManip //
22 // //
23 // Translation manipulator - attaches to physical shape and draws local //
24 // axes widgets with arrow heads. User can mouse over (turns yellow) and//
25 // L click/drag to translate along this axis. //
26 // Widgets use standard 3D package axes colours: X red, Y green, Z blue.//
27 //////////////////////////////////////////////////////////////////////////
28 
29 class TGLTransManip : public TGLManip
30 {
31 private:
32 
33 public:
34  TGLTransManip();
36  virtual ~TGLTransManip();
37 
38  virtual void Draw(const TGLCamera & camera) const;
39  virtual Bool_t HandleMotion(const Event_t & event, const TGLCamera & camera);
40 
41  ClassDef(TGLTransManip,0) // GL translation manipulator widget
42 };
43 
44 #endif
virtual void Draw(const TGLCamera &camera) const
Draw translation manipulator - tubes with arrow heads, in local axes of attached shape, in red(X), green(Y) and blue(Z), with white center sphere.
Abstract base class for viewer manipulators, which allow direct in viewer manipulation of a (TGlPhysi...
Definition: TGLManip.h:36
Abstract base camera class - concrete classes for orthographic and perspective cameras derive from it...
Definition: TGLCamera.h:43
TGLTransManip()
Construct translation manipulator not bound to any physical shape.
bool Bool_t
Definition: RtypesCore.h:59
virtual Bool_t HandleMotion(const Event_t &event, const TGLCamera &camera)
Handle mouse motion over manipulator - if active (selected widget) translate physical along selected ...
virtual ~TGLTransManip()
Destroy the translation manipulator.
Concrete physical shape - a GL drawable.
#define ClassDef(name, id)
Definition: Rtypes.h:254
Translation manipulator - attaches to physical shape and draws local axes widgets with arrow heads...
Definition: TGLTransManip.h:29