Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TArcBall Class Reference

Implements the arc-ball rotation manipulator.

Used by plot-painters.

Arcball sphere constants:

  • Diameter is 2.0f
  • Radius is 1.0f

Definition at line 19 of file TArcBall.h.

Public Member Functions

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

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 

Protected Member Functions

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

Private Member Functions

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

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

◆ Class()

static TClass * TArcBall::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TArcBall::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TArcBall::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 52 of file TArcBall.h.

◆ Click()

void TArcBall::Click ( const TPoint NewPt)

Mouse down.

Definition at line 249 of file TArcBall.cxx.

◆ DeclFileName()

static const char * TArcBall::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 52 of file TArcBall.h.

◆ 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.

◆ IsA()

virtual TClass * TArcBall::IsA ( ) const
inlinevirtual
Returns
TClass describing current object

Definition at line 52 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.

◆ Streamer()

virtual void TArcBall::Streamer ( TBuffer )
virtual

◆ StreamerNVirtual()

void TArcBall::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 52 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.

Libraries for TArcBall:

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