Developer Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
ACG::GLTrackball Class Reference

Public Member Functions

 GLTrackball (GLState &_state)
 
void set_center (const Vec3f &_center)
 
void mouse_press (int button, int x, int y)
 
void mouse_move (int x, int y)
 
void mouse_release (int button, int x, int y)
 

Private Types

enum  { ROTATION, TRANSLATION, ZOOM }
 

Private Member Functions

void rotation (int x, int y)
 
void translation (int x, int y)
 
void zoom (int x, int y)
 
bool map_to_sphere (const Vec2i &_point, Vec3f &_result)
 

Private Attributes

GLStateglstate_
 
ACG::Vec3d center_
 
Vec2i last_point_2D_
 
Vec3f last_point_3D_
 
bool last_point_ok_
 
enum ACG::GLTrackball:: { ... }  action_
 
bool button_down_ [10]
 

Detailed Description

Definition at line 72 of file GLTrackball.hh.


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