OGRE
1.10.12
Object-Oriented Graphics Rendering Engine
|
Utility class for controlling the camera in samples. More...
#include <OgreCameraMan.h>
Public Member Functions | |
CameraMan (Ogre::SceneNode *cam) | |
void | frameRendered (const Ogre::FrameEvent &evt) |
Ogre::SceneNode * | getCamera () |
CameraStyle | getStyle () |
Ogre::SceneNode * | getTarget () |
Ogre::Real | getTopSpeed () |
bool | keyPressed (const KeyboardEvent &evt) |
Processes key presses for free-look style movement. More... | |
bool | keyReleased (const KeyboardEvent &evt) |
Processes key releases for free-look style movement. More... | |
void | manualStop () |
Manually stops the camera when in free-look mode. More... | |
bool | mouseMoved (const MouseMotionEvent &evt) |
Processes mouse movement differently for each style. More... | |
bool | mousePressed (const MouseButtonEvent &evt) |
Processes mouse presses. More... | |
bool | mouseReleased (const MouseButtonEvent &evt) |
Processes mouse releases. More... | |
bool | mouseWheelRolled (const MouseWheelEvent &evt) |
void | setCamera (Ogre::SceneNode *cam) |
Swaps the camera on our camera man for another camera. More... | |
virtual void | setStyle (CameraStyle style) |
Sets the movement style of our camera man. More... | |
virtual void | setTarget (Ogre::SceneNode *target) |
Sets the target we will revolve around. More... | |
void | setTopSpeed (Ogre::Real topSpeed) |
Sets the camera's top speed. More... | |
void | setYawPitchDist (Ogre::Radian yaw, Ogre::Radian pitch, Ogre::Real dist) |
Sets the spatial offset from the target. More... | |
virtual bool | touchMoved (const TouchFingerEvent &evt) |
virtual bool | touchPressed (const TouchFingerEvent &evt) |
virtual bool | touchReleased (const TouchFingerEvent &evt) |
Utility class for controlling the camera in samples.
OgreBites::CameraMan::CameraMan | ( | Ogre::SceneNode * | cam | ) |
void OgreBites::CameraMan::setCamera | ( | Ogre::SceneNode * | cam | ) |
Swaps the camera on our camera man for another camera.
|
inline |
|
virtual |
Sets the target we will revolve around.
Only applies for orbit style.
|
inline |
void OgreBites::CameraMan::setYawPitchDist | ( | Ogre::Radian | yaw, |
Ogre::Radian | pitch, | ||
Ogre::Real | dist | ||
) |
Sets the spatial offset from the target.
Only applies for orbit style.
|
inline |
Sets the camera's top speed.
Only applies for free-look style.
|
inline |
|
virtual |
Sets the movement style of our camera man.
|
inline |
void OgreBites::CameraMan::manualStop | ( | ) |
Manually stops the camera when in free-look mode.
|
virtual |
Reimplemented from OgreBites::InputListener.
|
virtual |
Processes key presses for free-look style movement.
Reimplemented from OgreBites::InputListener.
|
virtual |
Processes key releases for free-look style movement.
Reimplemented from OgreBites::InputListener.
|
virtual |
Processes mouse movement differently for each style.
Reimplemented from OgreBites::InputListener.
|
virtual |
Reimplemented from OgreBites::InputListener.
|
virtual |
Processes mouse presses.
Only applies for orbit style. Left button is for orbiting, and right button is for zooming.
Reimplemented from OgreBites::InputListener.
|
virtual |
Processes mouse releases.
Only applies for orbit style. Left button is for orbiting, and right button is for zooming.
Reimplemented from OgreBites::InputListener.
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |