scg3  0.6
scg::KeyboardController Class Reference

A camera controller using keyboard input. More...

#include "KeyboardController.h"

Inheritance diagram for scg::KeyboardController:
[legend]
Collaboration diagram for scg::KeyboardController:
[legend]

Public Member Functions

 KeyboardController (CameraSP camera)
 
virtual ~KeyboardController ()
 
virtual void checkInput (ViewState *viewState)
 
- Public Member Functions inherited from scg::CameraController
 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)
 
- Public Member Functions inherited from scg::Controller
 Controller ()
 
virtual ~Controller ()=0
 

Static Public Member Functions

static KeyboardControllerSP create (CameraSP camera)
 

Additional Inherited Members

- Protected Attributes inherited from scg::CameraController
CameraSP camera_
 
GLfloat moveVelocity_
 
GLfloat rotateVelocity_
 
GLfloat flightVelocity_
 
GLfloat flightVelocityStep_
 
bool isFlyMode_
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ KeyboardController()

scg::KeyboardController::KeyboardController ( CameraSP  camera)

Constructor with given camera transformation.

◆ ~KeyboardController()

virtual scg::KeyboardController::~KeyboardController ( )
virtual

Destructor.

Member Function Documentation

◆ checkInput()

virtual void scg::KeyboardController::checkInput ( ViewState viewState)
virtual

Check input devices, called by Viewer::startMainLoop().

Parameters
viewStateview state managed by Viewer, may be modified by controller

Implements scg::CameraController.

◆ create()

static KeyboardControllerSP scg::KeyboardController::create ( CameraSP  camera)
static

Create shared pointer with given camera transformation.

Examples
scg3_table_scene_example.cpp.

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