|
||||
Warning, file /include/root/TGLScaleManip.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 // @(#)root/gl:$Id$ 0002 // Author: Richard Maunder 16/09/2005 0003 0004 /************************************************************************* 0005 * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. * 0006 * All rights reserved. * 0007 * * 0008 * For the licensing terms see $ROOTSYS/LICENSE. * 0009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 0010 *************************************************************************/ 0011 0012 #ifndef ROOT_TGLScaleManip 0013 #define ROOT_TGLScaleManip 0014 0015 #include "TGLManip.h" 0016 0017 0018 ////////////////////////////////////////////////////////////////////////// 0019 // // 0020 // TGLScaleManip // 0021 // // 0022 // Scale manipulator - attaches to physical shape and draws local axes // 0023 // widgets with box heads. User can mouse over (turns yellow) and L // 0024 // click/drag to scale along this axis. // 0025 // Widgets use standard 3D package axes colours: X red, Y green, Z blue.// 0026 ////////////////////////////////////////////////////////////////////////// 0027 0028 class TGLScaleManip : public TGLManip 0029 { 0030 private: 0031 TGLVector3 fStartScale; //! initial scaling factors 0032 0033 void LimitScale(Double_t & factor) const; 0034 0035 public: 0036 TGLScaleManip(); 0037 TGLScaleManip(TGLPhysicalShape * shape); 0038 ~TGLScaleManip() override; 0039 0040 void Draw(const TGLCamera & camera) const override; 0041 Bool_t HandleButton(const Event_t & event, const TGLCamera & camera) override; 0042 Bool_t HandleMotion(const Event_t & event, const TGLCamera & camera) override; 0043 0044 ClassDefOverride(TGLScaleManip,0) // GL scaling manipulator widget 0045 }; 0046 0047 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |