ROOT logo
ROOT » GRAF3D » GL » TGLAutoRotator

class TGLAutoRotator: public TObject

 Automatically rotates GL camera.

 W's are angular velocities.
 ATheta -- Theta amplitude in units of Pi/2.
 ADolly -- In/out amplitude in units of initial distance.

 Can also save images automatically.

Function Members (Methods)

TGLAutoRotator(TGLViewer* v)
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
Double_tGetADolly() const
Double_tGetATheta() const
TGLCamera*GetCamera() const
virtual Option_t*TObject::GetDrawOption() const
Double_tGetDt() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
Bool_tGetImageAutoSave() const
Int_tGetImageCount() const
TStringGetImageGUIBaseName() const
Int_tGetImageGUIOutMode() const
TStringGetImageName() const
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
TGLViewer*GetViewer() const
Double_tGetWDolly() const
Double_tGetWPhi() const
Double_tGetWTheta() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
Bool_tIsRunning() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
voidSetADolly(Double_t a)
voidSetATheta(Double_t a)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
voidSetDt(Double_t dt)
static voidTObject::SetDtorOnly(void* obj)
voidSetImageAutoSave(Bool_t s)
voidSetImageCount(Int_t ic)
voidSetImageGUIBaseName(const TString& gname)
voidSetImageGUIOutMode(Int_t m)
voidSetImageName(const TString& name)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTObject::SetUniqueID(UInt_t uid)
voidSetWDolly(Double_t w)
voidSetWPhi(Double_t w)
voidSetWTheta(Double_t w)
virtual voidShowMembers(TMemberInspector& insp)
voidStartImageAutoSave(const TString& filename)
voidStartImageAutoSaveAnimatedGif(const TString& filename)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const

Data Members


Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGLAutoRotator(TGLViewer* v)
void SetDt(Double_t dt)
 Set time between two redraws in seconds.
 Range: 0.001 -> 1.
void SetATheta(Double_t a)
 Set relative amplitude of theta oscilation.
 Value range: 0.01 -> 1.
void SetADolly(Double_t a)
 Set relative amplitude of forward/backward oscilation.
 Value range: 0.01 -> 1.
void Start()
 Start the auto-rotator.
void Stop()
 Stop the auto-rotator.
void Timeout()
 Called on every timer timeout. Moves / rotates the camera and optionally
 produces a screenshot.
void StartImageAutoSaveAnimatedGif(const TString& filename)
 Start saving into animated gif. The provided name will be used as it is,
 so make sure to end it with '.gif+'.
 Use convert tool from ImageMagic if you want to set a different delay or
 enable looping.
void StartImageAutoSave(const TString& filename)
 Start saving into a set of images. The provided name will be used as a
 format to insert additional image sequence number so it should include
 an '%' character. A good name would be something like:
 On GNU/Linux use mencoder and/or ffmpeg to bundle images into a movie.
void StopImageAutoSave()
 Stops automatic saving of images.
void SetImageGUIOutMode(Int_t m)
 Set output mode for GUI operation:
   1 - animated gif;
   2 - a series of pngs
void StartImageAutoSaveWithGUISettings()
 Start auto-saving images as set-up via GUI.
TGLAutoRotator(const TGLAutoRotator& )
TGLAutoRotator& operator=(const TGLAutoRotator& )
TGLViewer* GetViewer() const
{ return fViewer; }
TGLCamera* GetCamera() const
{ return fCamera; }
Bool_t IsRunning() const
{ return fTimerRunning; }
Double_t GetDt() const
{ return fDt; }
Double_t GetWPhi() const
{ return fWPhi; }
void SetWPhi(Double_t w)
{ fWPhi = w; }
Double_t GetWTheta() const
{ return fWTheta; }
void SetWTheta(Double_t w)
{ fWTheta = w; }
Double_t GetATheta() const
{ return fATheta; }
Double_t GetWDolly() const
{ return fWDolly; }
void SetWDolly(Double_t w)
{ fWDolly = w; }
Double_t GetADolly() const
{ return fADolly; }
TString GetImageName() const
{ return fImageName; }
void SetImageName(const TString& name)
{ fImageName = name; }
Int_t GetImageCount() const
{ return fImageCount; }
void SetImageCount(Int_t ic)
{ fImageCount = ic; }
Bool_t GetImageAutoSave() const
{ return fImageAutoSave; }
void SetImageAutoSave(Bool_t s)
TString GetImageGUIBaseName() const
{ return fImageGUIBaseName; }
void SetImageGUIBaseName(const TString& gname)
{ fImageGUIBaseName = gname; }
Int_t GetImageGUIOutMode() const
{ return fImageGUIOutMode; }