scg3  0.6
scg::MouseController Class Reference

A camera controller using mouse input. More...

#include "MouseController.h"

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

Public Member Functions

 MouseController (CameraSP camera)
 
virtual ~MouseController ()
 
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 MouseControllerSP 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 mouse input.

See implementation of constructor MouseController::MouseController(), which prints a list of control actions.

Definition at line 40 of file MouseController.h.

Constructor & Destructor Documentation

◆ MouseController()

scg::MouseController::MouseController ( CameraSP  camera)

Constructor with given camera transformation.

◆ ~MouseController()

virtual scg::MouseController::~MouseController ( )
virtual

Destructor.

Member Function Documentation

◆ checkInput()

virtual void scg::MouseController::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 MouseControllerSP scg::MouseController::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: