pgl
PrimitiveOpenGL3Dprimitivelibrary
Public Member Functions | Public Attributes | Protected Types | Protected Attributes | List of all members
pgl::OrbitController Class Reference

Camera Controller which orbits around a center. More...

#include <controller.h>

Inheritance diagram for pgl::OrbitController:
Inheritance graph
[legend]
Collaboration diagram for pgl::OrbitController:
Collaboration graph
[legend]

Public Member Functions

 OrbitController (Camera *_camera)
 
void view (double _azimuth, double _elevation, double _distance)
 
void click (int button, int action, int, double xpos, double ypos)
 Click handler.
 
void scroll (double, double yoffset)
 Scroll wheel handler.
 
void motion (double xpos, double ypos)
 Mouse motion handler.
 
void apply ()
 
- Public Member Functions inherited from pgl::Controller
 Controller (Camera *_camera)
 

Public Attributes

Vector3 center
 
double azimuth
 
double elevation
 
double distance
 
- Public Attributes inherited from pgl::Controller
Cameracamera
 Camera to move.
 

Protected Types

enum  { modeNone, modeAngle, modeDistance, modeCenter }
 

Protected Attributes

Vector3 old_center_
 
double old_azimuth_
 
double old_elevation_
 
double old_distance_
 
double old_xpos_
 
double old_ypos_
 
enum pgl::OrbitController:: { ... }  mode_
 

Detailed Description

Camera Controller which orbits around a center.


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