VAPOR3 3.9.4
Public Member Functions | List of all members
Trackball Class Reference

#include <TrackBall.h>

Public Member Functions

 Trackball ()
 
 Trackball (float scale[3])
 
void TrackballSetMatrix ()
 
void TrackballFlip (int axis)
 
void TrackballSpin ()
 
void TrackballStopSpinning ()
 
int TrackballSpinning ()
 
void TrackballSetPosition (double newx, double newy)
 
void TrackballRotate (double newx, double newy)
 
void TrackballPan (double newx, double newy)
 
void TrackballZoom (double newx, double newy)
 
void TrackballCopyTo (Trackball *dst)
 
void TrackballReset ()
 
void GetCenter (double center[3]) const
 
bool ReconstructCamera (double position[3], double upVec[3], double viewDir[3]) const
 
void MouseOnTrackball (int eventType, int thisButton, int xcrd, int ycrd, int width, int height)
 
bool setFromFrame (const std::vector< double > &posvec, const std::vector< double > &dirvec, const std::vector< double > &upvec, const std::vector< double > &centerRot, bool perspective)
 
bool setFromFrame (const double posvec[3], const double dirvec[3], const double upvec[3], const double centerRot[3], bool perspective)
 
void SetScale (const double scale[3])
 
double GetOrthoSize () const
 
const double * GetModelViewMatrix () const
 

Detailed Description

Definition at line 59 of file TrackBall.h.

Constructor & Destructor Documentation

◆ Trackball() [1/2]

Trackball::Trackball ( )

◆ Trackball() [2/2]

Trackball::Trackball ( float  scale[3])

Member Function Documentation

◆ GetCenter()

void Trackball::GetCenter ( double  center[3]) const
inline

Definition at line 76 of file TrackBall.h.

◆ GetModelViewMatrix()

const double * Trackball::GetModelViewMatrix ( ) const
inline

Definition at line 112 of file TrackBall.h.

◆ GetOrthoSize()

double Trackball::GetOrthoSize ( ) const

◆ MouseOnTrackball()

void Trackball::MouseOnTrackball ( int  eventType,
int  thisButton,
int  xcrd,
int  ycrd,
int  width,
int  height 
)

◆ ReconstructCamera()

bool Trackball::ReconstructCamera ( double  position[3],
double  upVec[3],
double  viewDir[3] 
) const

◆ setFromFrame() [1/2]

bool Trackball::setFromFrame ( const double  posvec[3],
const double  dirvec[3],
const double  upvec[3],
const double  centerRot[3],
bool  perspective 
)
inline

Definition at line 91 of file TrackBall.h.

◆ setFromFrame() [2/2]

bool Trackball::setFromFrame ( const std::vector< double > &  posvec,
const std::vector< double > &  dirvec,
const std::vector< double > &  upvec,
const std::vector< double > &  centerRot,
bool  perspective 
)

◆ SetScale()

void Trackball::SetScale ( const double  scale[3])
inline

Definition at line 103 of file TrackBall.h.

◆ TrackballCopyTo()

void Trackball::TrackballCopyTo ( Trackball dst)

◆ TrackballFlip()

void Trackball::TrackballFlip ( int  axis)

◆ TrackballPan()

void Trackball::TrackballPan ( double  newx,
double  newy 
)

◆ TrackballReset()

void Trackball::TrackballReset ( )

◆ TrackballRotate()

void Trackball::TrackballRotate ( double  newx,
double  newy 
)

◆ TrackballSetMatrix()

void Trackball::TrackballSetMatrix ( )

◆ TrackballSetPosition()

void Trackball::TrackballSetPosition ( double  newx,
double  newy 
)

◆ TrackballSpin()

void Trackball::TrackballSpin ( )

◆ TrackballSpinning()

int Trackball::TrackballSpinning ( )

◆ TrackballStopSpinning()

void Trackball::TrackballStopSpinning ( )

◆ TrackballZoom()

void Trackball::TrackballZoom ( double  newx,
double  newy 
)

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