/usr/include/root/TGLRotateManip.h is in libroot-graf3d-gl-dev 5.34.30-0ubuntu8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | // @(#)root/gl:$Id$
// Author: Richard Maunder 04/10/2005
/*************************************************************************
* Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TGLRotateManip
#define ROOT_TGLRotateManip
#ifndef ROOT_TGLManip
#include "TGLManip.h"
#endif
class TGLRotateManip : public TGLManip
{
private:
// Active ring interaction - set on mouse down
// Shallow ring interaction
// Where the ring plane forms a shallow angle to the eye direction -
// a different interaction is required in these cases - see HandleMotion()
Bool_t fShallowRing; //! does active ring form shallow angle to eye?
Bool_t fShallowFront; //! front or back of the active shallow ring?
TGLPlane fActiveRingPlane; //! plane of the active ring (widget)
TGLVertex3 fActiveRingCenter; //! center of active ring
// TODO: Is ring center required - why not get from plane?
// Normal interaction tracking (non-shallow)
TGLLine3 fRingLine;
TGLLine3 fRingLineOld;
void DrawAxisRing(const TGLVertex3& origin, const TGLVector3& axis,
Double_t radius, Float_t rgba[4]) const;
Double_t CalculateAngleDelta(const TPoint& mouse, const TGLCamera& camera);
TGLLine3 CalculateRingLine(const TPoint& mouse, const TGLCamera& camera) const;
protected:
static Double_t Angle(const TGLVector3& v1, const TGLVector3& v2);
static Double_t Angle(const TGLVector3& v1, const TGLVector3& v2, const TGLVector3& ref);
public:
TGLRotateManip();
TGLRotateManip(TGLPhysicalShape* shape);
virtual ~TGLRotateManip();
virtual void Draw(const TGLCamera& camera) const;
virtual Bool_t HandleButton(const Event_t& event, const TGLCamera& camera);
virtual Bool_t HandleMotion(const Event_t& event, const TGLCamera& camera);
ClassDef(TGLRotateManip, 0); // GL rotation manipulator widget
};
#endif
|