![]() |
scg3
0.6
|
A camera controller using keyboard input. More...
#include "KeyboardController.h"
Public Member Functions | |
KeyboardController (CameraSP camera) | |
virtual | ~KeyboardController () |
virtual void | checkInput (ViewState *viewState) |
![]() | |
CameraController (CameraSP camera) | |
virtual | ~CameraController ()=0 |
void | setCamera (CameraSP camera) |
void | setMoveVelocity (GLfloat moveVelocity) |
void | setRotateVelocity (GLfloat rotateVelocity) |
void | setFlightVelocity (GLfloat flightVelocity) |
void | setFlightVelocityStep (GLfloat flightVelocityStep) |
![]() | |
Controller () | |
virtual | ~Controller ()=0 |
Static Public Member Functions | |
static KeyboardControllerSP | create (CameraSP camera) |
Additional Inherited Members | |
![]() | |
CameraSP | camera_ |
GLfloat | moveVelocity_ |
GLfloat | rotateVelocity_ |
GLfloat | flightVelocity_ |
GLfloat | flightVelocityStep_ |
bool | isFlyMode_ |
A camera controller using keyboard input.
See implementation of constructor KeyboardController::KeyboardController(), which prints a list of control actions.
Definition at line 41 of file KeyboardController.h.
scg::KeyboardController::KeyboardController | ( | CameraSP | camera | ) |
Constructor with given camera transformation.
|
virtual |
Destructor.
|
virtual |
Check input devices, called by Viewer::startMainLoop().
viewState | view state managed by Viewer, may be modified by controller |
Implements scg::CameraController.
|
static |
Create shared pointer with given camera transformation.