Warning, file /include/root/TGLRotateManip.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT_TGLRotateManip
0013 #define ROOT_TGLRotateManip
0014
0015 #include "TGLManip.h"
0016
0017
0018 class TGLRotateManip : public TGLManip
0019 {
0020 private:
0021
0022
0023
0024
0025 Bool_t fShallowRing;
0026 Bool_t fShallowFront;
0027 TGLPlane fActiveRingPlane;
0028 TGLVertex3 fActiveRingCenter;
0029
0030
0031
0032 TGLLine3 fRingLine;
0033 TGLLine3 fRingLineOld;
0034
0035 void DrawAxisRing(const TGLVertex3& origin, const TGLVector3& axis,
0036 Double_t radius, Float_t rgba[4]) const;
0037 Double_t CalculateAngleDelta(const TPoint& mouse, const TGLCamera& camera);
0038 TGLLine3 CalculateRingLine(const TPoint& mouse, const TGLCamera& camera) const;
0039
0040 protected:
0041 static Double_t Angle(const TGLVector3& v1, const TGLVector3& v2);
0042 static Double_t Angle(const TGLVector3& v1, const TGLVector3& v2, const TGLVector3& ref);
0043
0044 public:
0045 TGLRotateManip();
0046 TGLRotateManip(TGLPhysicalShape* shape);
0047 ~TGLRotateManip() override;
0048
0049 void Draw(const TGLCamera& camera) const override;
0050 Bool_t HandleButton(const Event_t& event, const TGLCamera& camera) override;
0051 Bool_t HandleMotion(const Event_t& event, const TGLCamera& camera) override;
0052
0053 ClassDefOverride(TGLRotateManip, 0);
0054 };
0055
0056 #endif