Logo ROOT   6.10/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 #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();
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
Abstract base class for viewer manipulators, which allow direct in viewer manipulation of a (TGlPhysi...
Definition: TGLManip.h:28
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:297
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.
Translation manipulator - attaches to physical shape and draws local axes widgets with arrow heads...
Definition: TGLTransManip.h:27