ACG::GLTrackball Class Reference

Collaboration diagram for ACG::GLTrackball:
Collaboration graph
[legend]

List of all members.

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::Vec3f 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:

acg pic Project OpenFlipper, ©  Computer Graphics Group, RWTH Aachen. Documentation generated using doxygen .