libmoldeo (Moldeo 1.0 Core)  1.0
libmoldeo is the group of objects and functions that executes the basic operations of Moldeo 1.0 Platform.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ArcBall_t Class Reference

Objeto para la rotación esférica de la vista 3d. More...

#include <moArcBall.h>

Public Member Functions

 ArcBall_t ()
 
 ArcBall_t (GLfloat NewWidth, GLfloat NewHeight)
 
 ~ArcBall_t ()
 
void setBounds (GLfloat NewWidth, GLfloat NewHeight)
 
void click (const Point2fT *NewPt)
 
void drag (const Point2fT *NewPt, Quat4fT *NewRot)
 

Protected Member Functions

void _mapToSphere (const Point2fT *NewPt, Vector3fT *NewVec) const
 

Protected Attributes

Vector3fT StVec
 
Vector3fT EnVec
 
GLfloat AdjustWidth
 
GLfloat AdjustHeight
 

Detailed Description

Objeto para la rotación esférica de la vista 3d.

Al arrastrar el mouse alrededor del objeto, simula una esfera que es rotada con el objeto dentro.

Definition at line 439 of file moArcBall.h.

Constructor & Destructor Documentation

ArcBall_t::ArcBall_t ( )

Definition at line 70 of file moArcBall.cpp.

ArcBall_t::ArcBall_t ( GLfloat  NewWidth,
GLfloat  NewHeight 
)

Definition at line 84 of file moArcBall.cpp.

ArcBall_t::~ArcBall_t ( )
inline

Definition at line 449 of file moArcBall.h.

Member Function Documentation

void ArcBall_t::_mapToSphere ( const Point2fT NewPt,
Vector3fT NewVec 
) const
inlineprotected

KempoApi: The Turloc Toolkit * * ** ** Filename: ArcBall.cpp ** Version: Common ** Arcball class for mouse manipulation. (C) 1999-2003 Tatewake.com History: 08/17/2003 -(TJG) - Creation 09/23/2003 -(TJG) - Bug fix and optimization 09/25/2003 -(TJG) - Version for NeHe Basecode users

Definition at line 32 of file moArcBall.cpp.

void ArcBall_t::click ( const Point2fT NewPt)

Definition at line 100 of file moArcBall.cpp.

void ArcBall_t::drag ( const Point2fT NewPt,
Quat4fT NewRot 
)

Definition at line 107 of file moArcBall.cpp.

void ArcBall_t::setBounds ( GLfloat  NewWidth,
GLfloat  NewHeight 
)
inline

Definition at line 453 of file moArcBall.h.

Member Data Documentation

GLfloat ArcBall_t::AdjustHeight
protected

Definition at line 472 of file moArcBall.h.

GLfloat ArcBall_t::AdjustWidth
protected

Definition at line 471 of file moArcBall.h.

Vector3fT ArcBall_t::EnVec
protected

Definition at line 470 of file moArcBall.h.

Vector3fT ArcBall_t::StVec
protected

Definition at line 469 of file moArcBall.h.


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