12 #ifndef ROOT_TGLAutoRotator
13 #define ROOT_TGLAutoRotator
23 class TGLAutoRotator :
public TObject
26 TGLAutoRotator(
const TGLAutoRotator&);
27 TGLAutoRotator& operator=(
const TGLAutoRotator&);
41 Double_t fWTheta, fATheta;
42 Double_t fWDolly, fADolly;
44 Double_t fThetaA0, fDollyA0;
49 Bool_t fImageAutoSave;
51 TString fImageGUIBaseName;
52 Int_t fImageGUIOutMode;
55 TGLAutoRotator(TGLViewer* v);
56 virtual ~TGLAutoRotator();
58 TGLViewer* GetViewer()
const {
return fViewer; }
59 TGLCamera* GetCamera()
const {
return fCamera; }
71 Bool_t IsRunning()
const {
return fTimerRunning; }
73 Bool_t GetRotateScene()
const {
return fRotateScene; }
74 void SetRotateScene(Bool_t rotateScene) {Stop(); fRotateScene = rotateScene; }
76 Double_t GetDeltaPhi()
const {
return fDeltaPhi; }
77 void SetDeltaPhi(Double_t dPhi) {fDeltaPhi = dPhi; }
79 Double_t GetDt()
const {
return fDt; }
80 void SetDt(Double_t dt);
82 Double_t GetWPhi()
const {
return fWPhi; }
83 void SetWPhi(Double_t w) { fWPhi = w; }
85 Double_t GetWTheta()
const {
return fWTheta; }
86 void SetWTheta(Double_t w) { fWTheta = w; }
87 Double_t GetATheta()
const {
return fATheta; }
88 void SetATheta(Double_t a);
90 Double_t GetWDolly()
const {
return fWDolly; }
91 void SetWDolly(Double_t w) { fWDolly = w; }
92 Double_t GetADolly()
const {
return fADolly; }
93 void SetADolly(Double_t a);
95 TString GetImageName()
const {
return fImageName; }
96 void SetImageName(
const TString& name) { fImageName = name; }
97 Int_t GetImageCount()
const {
return fImageCount; }
98 void SetImageCount(Int_t ic) { fImageCount = ic; }
99 Bool_t GetImageAutoSave()
const {
return fImageAutoSave; }
100 void SetImageAutoSave(Bool_t s) { fImageAutoSave = s; }
102 void StartImageAutoSaveAnimatedGif(
const TString& filename);
103 void StartImageAutoSave(
const TString& filename);
104 void StopImageAutoSave();
106 TString GetImageGUIBaseName()
const {
return fImageGUIBaseName; }
107 void SetImageGUIBaseName(
const TString& gname) { fImageGUIBaseName = gname; }
109 Int_t GetImageGUIOutMode()
const {
return fImageGUIOutMode; }
110 void SetImageGUIOutMode(Int_t m);
112 void StartImageAutoSaveWithGUISettings();
114 ClassDef(TGLAutoRotator, 0);