Logo ROOT   6.16/01
Reference Guide
List of all members | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
TArcBall Class Reference

Implements the arc-ball rotation manipulator.

Used by plot-painters.

Arcball sphere constants:

Definition at line 19 of file TArcBall.h.

Public Member Functions

 TArcBall (UInt_t NewWidth=100, UInt_t NewHeight=100)
 constructor More...
 
virtual ~TArcBall ()
 
void Click (const TPoint &NewPt)
 Mouse down. More...
 
void Drag (const TPoint &NewPt)
 Mouse drag, calculate rotation. More...
 
const Double_tGetRotMatrix () const
 
void SetBounds (UInt_t NewWidth, UInt_t NewHeight)
 

Protected Member Functions

void MapToSphere (const TPoint &NewPt, Double_t *NewVec) const
 map to sphere More...
 

Private Member Functions

 TArcBall (const TArcBall &)
 
TArcBalloperator= (const TArcBall &)
 
void ResetMatrices ()
 Set rotation matrix as union. More...
 

Private Attributes

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

#include <TArcBall.h>

Constructor & Destructor Documentation

◆ TArcBall() [1/2]

TArcBall::TArcBall ( const TArcBall )
private

◆ TArcBall() [2/2]

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

constructor

Definition at line 236 of file TArcBall.cxx.

◆ ~TArcBall()

virtual TArcBall::~TArcBall ( )
inlinevirtual

Definition at line 36 of file TArcBall.h.

Member Function Documentation

◆ Click()

void TArcBall::Click ( const TPoint NewPt)

Mouse down.

Definition at line 249 of file TArcBall.cxx.

◆ Drag()

void TArcBall::Drag ( const TPoint NewPt)

Mouse drag, calculate rotation.

Definition at line 260 of file TArcBall.cxx.

◆ GetRotMatrix()

const Double_t * TArcBall::GetRotMatrix ( ) const
inline

Definition at line 47 of file TArcBall.h.

◆ MapToSphere()

void TArcBall::MapToSphere ( const TPoint NewPt,
Double_t NewVec 
) const
inlineprotected

map to sphere

Definition at line 210 of file TArcBall.cxx.

◆ operator=()

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

◆ ResetMatrices()

void TArcBall::ResetMatrices ( )
private

Set rotation matrix as union.

Definition at line 287 of file TArcBall.cxx.

◆ SetBounds()

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

Definition at line 38 of file TArcBall.h.

Member Data Documentation

◆ fAdjustHeight

Double_t TArcBall::fAdjustHeight
private

Definition at line 27 of file TArcBall.h.

◆ fAdjustWidth

Double_t TArcBall::fAdjustWidth
private

Definition at line 26 of file TArcBall.h.

◆ fEnVec

Double_t TArcBall::fEnVec[3]
private

Definition at line 25 of file TArcBall.h.

◆ fLastRot

Double_t TArcBall::fLastRot[9]
private

Definition at line 22 of file TArcBall.h.

◆ fStVec

Double_t TArcBall::fStVec[3]
private

Definition at line 24 of file TArcBall.h.

◆ fThisRot

Double_t TArcBall::fThisRot[9]
private

Definition at line 21 of file TArcBall.h.

◆ fTransform

Double_t TArcBall::fTransform[16]
private

Definition at line 23 of file TArcBall.h.


The documentation for this class was generated from the following files: