TArcBall Class Reference

#include <TArcBall.h>

List of all members.

Public Member Functions

 TArcBall (UInt_t NewWidth=100, UInt_t NewHeight=100)
virtual ~TArcBall ()
void SetBounds (UInt_t NewWidth, UInt_t NewHeight)
void Click (const TPoint &NewPt)
void Drag (const TPoint &NewPt)
const Double_tGetRotMatrix () const
 TArcBall (UInt_t NewWidth=100, UInt_t NewHeight=100)
virtual ~TArcBall ()
void SetBounds (UInt_t NewWidth, UInt_t NewHeight)
void Click (const TPoint &NewPt)
void Drag (const TPoint &NewPt)
const Double_tGetRotMatrix () const

Protected Member Functions

void MapToSphere (const TPoint &NewPt, Double_t *NewVec) const
void MapToSphere (const TPoint &NewPt, Double_t *NewVec) const

Private Member Functions

 TArcBall (const TArcBall &)
TArcBalloperator= (const TArcBall &)
void ResetMatrices ()
 TArcBall (const TArcBall &)
TArcBalloperator= (const TArcBall &)
void ResetMatrices ()

Private Attributes

Double_t fThisRot [9]
Double_t fLastRot [9]
Double_t fTransform [16]
Double_t fStVec [3]
Double_t fEnVec [3]
Double_t fAdjustWidth
Double_t fAdjustHeight


Detailed Description

Definition at line 21 of file TArcBall.h.


Constructor & Destructor Documentation

TArcBall::TArcBall ( const TArcBall  )  [private]

TArcBall::TArcBall ( UInt_t  NewWidth = 100,
UInt_t  NewHeight = 100 
)

virtual TArcBall::~TArcBall (  )  [inline, virtual]

Definition at line 38 of file TArcBall.h.

TArcBall::TArcBall ( const TArcBall  )  [private]

TArcBall::TArcBall ( UInt_t  NewWidth = 100,
UInt_t  NewHeight = 100 
)

virtual TArcBall::~TArcBall (  )  [inline, virtual]

Definition at line 38 of file TArcBall.h.


Member Function Documentation

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

void TArcBall::ResetMatrices (  )  [private]

Definition at line 266 of file TArcBall.cxx.

References fLastRot, fThisRot, and fTransform.

void TArcBall::MapToSphere ( const TPoint NewPt,
Double_t NewVec 
) const [protected]

Referenced by Click(), and Drag().

void TArcBall::SetBounds ( UInt_t  NewWidth,
UInt_t  NewHeight 
) [inline]

Definition at line 40 of file TArcBall.h.

References fAdjustHeight, and fAdjustWidth.

Referenced by TGLPlotCamera::SetViewport().

void TArcBall::Click ( const TPoint NewPt  ) 

Definition at line 230 of file TArcBall.cxx.

References fLastRot, fStVec, fThisRot, i, and MapToSphere().

Referenced by TGLPlotCamera::StartRotation().

void TArcBall::Drag ( const TPoint NewPt  ) 

Definition at line 240 of file TArcBall.cxx.

References Epsilon, fEnVec, fLastRot, fStVec, fThisRot, fTransform, and MapToSphere().

Referenced by TGLPlotCamera::RotateCamera().

const Double_t* TArcBall::GetRotMatrix (  )  const [inline]

Definition at line 49 of file TArcBall.h.

References fTransform.

Referenced by TGLPlotCamera::Apply().

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

void TArcBall::ResetMatrices (  )  [private]

void TArcBall::MapToSphere ( const TPoint NewPt,
Double_t NewVec 
) const [protected]

void TArcBall::SetBounds ( UInt_t  NewWidth,
UInt_t  NewHeight 
) [inline]

Definition at line 40 of file TArcBall.h.

References fAdjustHeight, and fAdjustWidth.

void TArcBall::Click ( const TPoint NewPt  ) 

void TArcBall::Drag ( const TPoint NewPt  ) 

const Double_t* TArcBall::GetRotMatrix (  )  const [inline]

Definition at line 49 of file TArcBall.h.

References fTransform.


Member Data Documentation

Double_t TArcBall::fThisRot [private]

Definition at line 23 of file TArcBall.h.

Referenced by Click(), Drag(), and ResetMatrices().

Double_t TArcBall::fLastRot [private]

Definition at line 24 of file TArcBall.h.

Referenced by Click(), Drag(), and ResetMatrices().

Double_t TArcBall::fTransform [private]

Definition at line 25 of file TArcBall.h.

Referenced by Drag(), GetRotMatrix(), and ResetMatrices().

Double_t TArcBall::fStVec [private]

Definition at line 26 of file TArcBall.h.

Referenced by Click(), and Drag().

Double_t TArcBall::fEnVec [private]

Definition at line 27 of file TArcBall.h.

Referenced by Drag().

Double_t TArcBall::fAdjustWidth [private]

Definition at line 28 of file TArcBall.h.

Referenced by SetBounds().

Double_t TArcBall::fAdjustHeight [private]

Definition at line 29 of file TArcBall.h.

Referenced by SetBounds().


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