TGLAutoRotator Class Reference

#include <TGLAutoRotator.h>

Inheritance diagram for TGLAutoRotator:

TObject TObject List of all members.

Public Member Functions

 TGLAutoRotator (TGLViewer *v)
virtual ~TGLAutoRotator ()
TGLCameraGetCamera () const
void Start ()
void Stop ()
void Timeout ()
Bool_t IsRunning () const
Double_t GetDt () const
void SetDt (Double_t dt)
Double_t GetWPhi () const
void SetWPhi (Double_t w)
Double_t GetWTheta () const
void SetWTheta (Double_t w)
Double_t GetATheta () const
void SetATheta (Double_t a)
Double_t GetWDolly () const
void SetWDolly (Double_t w)
Double_t GetADolly () const
void SetADolly (Double_t a)
 ClassDef (TGLAutoRotator, 0)
 TGLAutoRotator (TGLViewer *v)
virtual ~TGLAutoRotator ()
TGLCameraGetCamera () const
void Start ()
void Stop ()
void Timeout ()
Bool_t IsRunning () const
Double_t GetDt () const
void SetDt (Double_t dt)
Double_t GetWPhi () const
void SetWPhi (Double_t w)
Double_t GetWTheta () const
void SetWTheta (Double_t w)
Double_t GetATheta () const
void SetATheta (Double_t a)
Double_t GetWDolly () const
void SetWDolly (Double_t w)
Double_t GetADolly () const
void SetADolly (Double_t a)
 ClassDef (TGLAutoRotator, 0)

Protected Attributes

TGLViewerfViewer
TGLCamerafCamera
TTimerfTimer
TStopwatchfWatch
Double_t fDt
Double_t fWPhi
Double_t fWTheta
Double_t fATheta
Double_t fWDolly
Double_t fADolly
Double_t fThetaA0
Double_t fDollyA0
Bool_t fTimerRunning
TGLViewerfViewer
TGLCamerafCamera
TTimerfTimer
TStopwatchfWatch

Private Member Functions

 TGLAutoRotator (const TGLAutoRotator &)
TGLAutoRotatoroperator= (const TGLAutoRotator &)
 TGLAutoRotator (const TGLAutoRotator &)
TGLAutoRotatoroperator= (const TGLAutoRotator &)

Detailed Description

Definition at line 22 of file TGLAutoRotator.h.


Constructor & Destructor Documentation

TGLAutoRotator::TGLAutoRotator ( const TGLAutoRotator  )  [private]

TGLAutoRotator::TGLAutoRotator ( TGLViewer v  ) 

Definition at line 32 of file TGLAutoRotator.cxx.

References TQObject::Connect(), and fTimer.

TGLAutoRotator::~TGLAutoRotator (  )  [virtual]

Definition at line 47 of file TGLAutoRotator.cxx.

References fTimer, and fWatch.

TGLAutoRotator::TGLAutoRotator ( const TGLAutoRotator  )  [private]

TGLAutoRotator::TGLAutoRotator ( TGLViewer v  ) 

virtual TGLAutoRotator::~TGLAutoRotator (  )  [virtual]


Member Function Documentation

TGLAutoRotator& TGLAutoRotator::operator= ( const TGLAutoRotator  )  [private]

TGLCamera* TGLAutoRotator::GetCamera (  )  const [inline]

Definition at line 46 of file TGLAutoRotator.h.

References fCamera.

Referenced by TGLViewer::SetCurrentCamera().

void TGLAutoRotator::Start (  ) 

Definition at line 102 of file TGLAutoRotator.cxx.

References TGLViewer::CurrentCamera(), fADolly, fATheta, fCamera, fDollyA0, fDt, fThetaA0, fTimer, fTimerRunning, fViewer, fWatch, TGLMatrix::GetBaseVec(), TGLCamera::GetCamTrans(), kTRUE, TGLVector3::Mag(), TMath::Nint(), TMath::PiOver2(), TTimer::Reset(), TTimer::SetTime(), TStopwatch::Start(), Stop(), and TTimer::TurnOn().

Referenced by TGLViewerEditor::DoRotatorStart(), and TGLViewer::SetCurrentCamera().

void TGLAutoRotator::Stop (  ) 

Definition at line 122 of file TGLAutoRotator.cxx.

References fTimer, fTimerRunning, fWatch, kFALSE, TStopwatch::Stop(), and TTimer::TurnOff().

Referenced by TGLViewerEditor::DoRotatorStop(), TGLViewer::SetCurrentCamera(), and Start().

void TGLAutoRotator::Timeout (  ) 

Definition at line 133 of file TGLAutoRotator.cxx.

References TStopwatch::Continue(), TMath::Cos(), TObject::Error(), fCamera, fDollyA0, fDt, fThetaA0, fTimer, fTimerRunning, fViewer, fWatch, fWDolly, fWPhi, fWTheta, TGLCamera::GetTheta(), gTQSender, TGLRnrCtx::kLODHigh, TGLMatrix::MoveLF(), TStopwatch::RealTime(), TGLCamera::RefCamTrans(), TGLViewer::RequestDraw(), TGLCamera::RotateRad(), and TStopwatch::Stop().

Bool_t TGLAutoRotator::IsRunning (  )  const [inline]

Definition at line 57 of file TGLAutoRotator.h.

References fTimerRunning.

Referenced by TGLViewer::SetCurrentCamera().

Double_t TGLAutoRotator::GetDt (  )  const [inline]

Definition at line 59 of file TGLAutoRotator.h.

References fDt.

void TGLAutoRotator::SetDt ( Double_t  dt  ) 

Definition at line 58 of file TGLAutoRotator.cxx.

References fDt, fTimer, fTimerRunning, TMath::Nint(), TMath::Range(), TTimer::Reset(), and TTimer::SetTime().

Double_t TGLAutoRotator::GetWPhi (  )  const [inline]

Definition at line 62 of file TGLAutoRotator.h.

References fWPhi.

void TGLAutoRotator::SetWPhi ( Double_t  w  )  [inline]

Definition at line 63 of file TGLAutoRotator.h.

References fWPhi.

Double_t TGLAutoRotator::GetWTheta (  )  const [inline]

Definition at line 65 of file TGLAutoRotator.h.

References fWTheta.

void TGLAutoRotator::SetWTheta ( Double_t  w  )  [inline]

Definition at line 66 of file TGLAutoRotator.h.

References fWTheta.

Double_t TGLAutoRotator::GetATheta (  )  const [inline]

Definition at line 67 of file TGLAutoRotator.h.

References fATheta.

void TGLAutoRotator::SetATheta ( Double_t  a  ) 

Definition at line 72 of file TGLAutoRotator.cxx.

References fATheta, fThetaA0, fTimerRunning, and TMath::Range().

Double_t TGLAutoRotator::GetWDolly (  )  const [inline]

Definition at line 70 of file TGLAutoRotator.h.

References fWDolly.

void TGLAutoRotator::SetWDolly ( Double_t  w  )  [inline]

Definition at line 71 of file TGLAutoRotator.h.

References fWDolly.

Double_t TGLAutoRotator::GetADolly (  )  const [inline]

Definition at line 72 of file TGLAutoRotator.h.

References fADolly.

void TGLAutoRotator::SetADolly ( Double_t  a  ) 

Definition at line 86 of file TGLAutoRotator.cxx.

References fADolly, fDollyA0, fTimerRunning, and TMath::Range().

TGLAutoRotator::ClassDef ( TGLAutoRotator  ,
 
)

TGLAutoRotator& TGLAutoRotator::operator= ( const TGLAutoRotator  )  [private]

TGLCamera* TGLAutoRotator::GetCamera (  )  const [inline]

Definition at line 46 of file TGLAutoRotator.h.

References fCamera.

void TGLAutoRotator::Start (  ) 

void TGLAutoRotator::Stop (  ) 

void TGLAutoRotator::Timeout (  ) 

Bool_t TGLAutoRotator::IsRunning (  )  const [inline]

Definition at line 57 of file TGLAutoRotator.h.

References fTimerRunning.

Double_t TGLAutoRotator::GetDt (  )  const [inline]

Definition at line 59 of file TGLAutoRotator.h.

References fDt.

void TGLAutoRotator::SetDt ( Double_t  dt  ) 

Double_t TGLAutoRotator::GetWPhi (  )  const [inline]

Definition at line 62 of file TGLAutoRotator.h.

References fWPhi.

void TGLAutoRotator::SetWPhi ( Double_t  w  )  [inline]

Definition at line 63 of file TGLAutoRotator.h.

References fWPhi.

Double_t TGLAutoRotator::GetWTheta (  )  const [inline]

Definition at line 65 of file TGLAutoRotator.h.

References fWTheta.

void TGLAutoRotator::SetWTheta ( Double_t  w  )  [inline]

Definition at line 66 of file TGLAutoRotator.h.

References fWTheta.

Double_t TGLAutoRotator::GetATheta (  )  const [inline]

Definition at line 67 of file TGLAutoRotator.h.

References fATheta.

void TGLAutoRotator::SetATheta ( Double_t  a  ) 

Double_t TGLAutoRotator::GetWDolly (  )  const [inline]

Definition at line 70 of file TGLAutoRotator.h.

References fWDolly.

void TGLAutoRotator::SetWDolly ( Double_t  w  )  [inline]

Definition at line 71 of file TGLAutoRotator.h.

References fWDolly.

Double_t TGLAutoRotator::GetADolly (  )  const [inline]

Definition at line 72 of file TGLAutoRotator.h.

References fADolly.

void TGLAutoRotator::SetADolly ( Double_t  a  ) 

TGLAutoRotator::ClassDef ( TGLAutoRotator  ,
 
)


Member Data Documentation

TGLViewer* TGLAutoRotator::fViewer [protected]

Definition at line 29 of file TGLAutoRotator.h.

Referenced by Start(), and Timeout().

TGLCamera* TGLAutoRotator::fCamera [protected]

Definition at line 30 of file TGLAutoRotator.h.

Referenced by GetCamera(), Start(), and Timeout().

TTimer* TGLAutoRotator::fTimer [protected]

Definition at line 31 of file TGLAutoRotator.h.

Referenced by SetDt(), Start(), Stop(), TGLAutoRotator(), Timeout(), and ~TGLAutoRotator().

TStopwatch* TGLAutoRotator::fWatch [protected]

Definition at line 32 of file TGLAutoRotator.h.

Referenced by Start(), Stop(), Timeout(), and ~TGLAutoRotator().

Double_t TGLAutoRotator::fDt [protected]

Definition at line 34 of file TGLAutoRotator.h.

Referenced by GetDt(), SetDt(), Start(), and Timeout().

Double_t TGLAutoRotator::fWPhi [protected]

Definition at line 35 of file TGLAutoRotator.h.

Referenced by GetWPhi(), SetWPhi(), and Timeout().

Double_t TGLAutoRotator::fWTheta [protected]

Definition at line 36 of file TGLAutoRotator.h.

Referenced by GetWTheta(), SetWTheta(), and Timeout().

Double_t TGLAutoRotator::fATheta [protected]

Definition at line 36 of file TGLAutoRotator.h.

Referenced by GetATheta(), SetATheta(), and Start().

Double_t TGLAutoRotator::fWDolly [protected]

Definition at line 37 of file TGLAutoRotator.h.

Referenced by GetWDolly(), SetWDolly(), and Timeout().

Double_t TGLAutoRotator::fADolly [protected]

Definition at line 37 of file TGLAutoRotator.h.

Referenced by GetADolly(), SetADolly(), and Start().

Double_t TGLAutoRotator::fThetaA0 [protected]

Definition at line 39 of file TGLAutoRotator.h.

Referenced by SetATheta(), Start(), and Timeout().

Double_t TGLAutoRotator::fDollyA0 [protected]

Definition at line 39 of file TGLAutoRotator.h.

Referenced by SetADolly(), Start(), and Timeout().

Bool_t TGLAutoRotator::fTimerRunning [protected]

Definition at line 40 of file TGLAutoRotator.h.

Referenced by IsRunning(), SetADolly(), SetATheta(), SetDt(), Start(), Stop(), and Timeout().

TGLViewer* TGLAutoRotator::fViewer [protected]

Definition at line 29 of file TGLAutoRotator.h.

TGLCamera* TGLAutoRotator::fCamera [protected]

Definition at line 30 of file TGLAutoRotator.h.

TTimer* TGLAutoRotator::fTimer [protected]

Definition at line 31 of file TGLAutoRotator.h.

TStopwatch* TGLAutoRotator::fWatch [protected]

Definition at line 32 of file TGLAutoRotator.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:39:56 2011 for ROOT_528-00b_version by  doxygen 1.5.1