Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

sheep::Arcball Class Reference

#include <arcball.h>

List of all members.

Public Member Functions

 Arcball ()
void BeginDrag (const Vector2 &p)
void UpdateDrag (const Vector2 &p)
void EndDrag ()
void CancelDrag ()
bool IsDragging () const
void SetOrientation (const Quaternion &q)
const QuaternionGetOrientation () const

Private Member Functions

Vector3 point_on_sphere (const Vector2 &p) const

Private Attributes

Quaternion m_q
Quaternion m_start_q
Vector3 m_from
bool m_is_dragging


Constructor & Destructor Documentation

Arcball::Arcball  )  [inline]
 

Definition at line 84 of file arcball.h.


Member Function Documentation

void Arcball::BeginDrag const Vector2 p  )  [inline]
 

Definition at line 90 of file arcball.h.

void Arcball::CancelDrag  )  [inline]
 

Definition at line 116 of file arcball.h.

void Arcball::EndDrag  )  [inline]
 

Definition at line 110 of file arcball.h.

const Quaternion & Arcball::GetOrientation  )  const [inline]
 

Definition at line 134 of file arcball.h.

bool Arcball::IsDragging  )  const [inline]
 

Definition at line 123 of file arcball.h.

Vector3 Arcball::point_on_sphere const Vector2 p  )  const [private]
 

Definition at line 30 of file arcball.cpp.

References sheep::feq(), sheep::Vector2::m_x, sheep::Vector3::m_x, sheep::Vector2::m_y, sheep::Vector3::m_y, sheep::Vector3::m_z, sheep::Vector3::Norm(), sheep::Real, and sheep::sq().

void Arcball::SetOrientation const Quaternion q  )  [inline]
 

Definition at line 128 of file arcball.h.

void Arcball::UpdateDrag const Vector2 p  )  [inline]
 

Definition at line 100 of file arcball.h.


Member Data Documentation

Vector3 sheep::Arcball::m_from [private]
 

Definition at line 55 of file arcball.h.

bool sheep::Arcball::m_is_dragging [private]
 

Definition at line 56 of file arcball.h.

Quaternion sheep::Arcball::m_q [private]
 

Definition at line 54 of file arcball.h.

Quaternion sheep::Arcball::m_start_q [private]
 

Definition at line 54 of file arcball.h.


The documentation for this class was generated from the following files:
Generated on Tue May 11 01:31:56 2004 for toxic by doxygen 1.3.6