Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
27class TGLTransManip : public TGLManip
28{
29private:
30
31public:
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
#define ClassDef(name, id)
Definition Rtypes.h:325
Abstract base camera class - concrete classes for orthographic and perspective cameras derive from it...
Definition TGLCamera.h:44
Abstract base class for viewer manipulators, which allow direct in viewer manipulation of a (TGlPhysi...
Definition TGLManip.h:29
Concrete physical shape - a GL drawable.
Translation manipulator - attaches to physical shape and draws local axes widgets with arrow heads.
virtual ~TGLTransManip()
Destroy the translation manipulator.
virtual Bool_t HandleMotion(const Event_t &event, const TGLCamera &camera)
Handle mouse motion over manipulator - if active (selected widget) translate physical along selected ...
TGLTransManip()
Construct translation manipulator not bound to any physical shape.
Event structure.
Definition GuiTypes.h:174
th1 Draw()