sofa::helper::gl::Trackball Class Reference

#include <Trackball.h>

Collaboration diagram for sofa::helper::gl::Trackball:

Collaboration graph
[legend]

Public Member Functions

 Trackball ()
 ~Trackball ()
void SetQuaternion (sofa::defaulttype::Quaternion Q)
sofa::defaulttype::Quaternion GetQuaternion (void)
void ComputeQuaternion (double p1x, double p1y, double p2x, double p2y)
void AxisToQuat (double a[3], double phi, double q[4])

Private Attributes

sofa::defaulttype::Quaternion _quat

Detailed Description

Definition at line 91 of file Trackball.h.


Constructor & Destructor Documentation

sofa::helper::gl::Trackball::Trackball (  ) 

Definition at line 102 of file Trackball.cpp.

References _quat.

sofa::helper::gl::Trackball::~Trackball (  ) 

Definition at line 111 of file Trackball.cpp.


Member Function Documentation

void sofa::helper::gl::Trackball::AxisToQuat ( double  a[3],
double  phi,
double  q[4] 
)

void sofa::helper::gl::Trackball::ComputeQuaternion ( double  p1x,
double  p1y,
double  p2x,
double  p2y 
)

Quaternion sofa::helper::gl::Trackball::GetQuaternion ( void   ) 

void sofa::helper::gl::Trackball::SetQuaternion ( sofa::defaulttype::Quaternion  Q  ) 

Definition at line 127 of file Trackball.cpp.

References _quat.


Field Documentation

Definition at line 115 of file Trackball.h.

Referenced by ComputeQuaternion(), GetQuaternion(), SetQuaternion(), and Trackball().


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

Generated on Sun Nov 23 04:24:18 2008 for Sofa by  doxygen 1.5.7.1