OGRE
1.12.13
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... | |
void | setFixedYaw (bool fixed) |
fix the yaw axis to be Vector3::UNIT_Y of the parent node (tabletop mode) More... | |
void | setPivotOffset (const Ogre::Vector3 &offset) |
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 (const Ogre::Radian &yaw, const Ogre::Radian &pitch, Ogre::Real dist) |
Sets the spatial offset from the target. More... | |
Public Member Functions inherited from OgreBites::InputListener | |
virtual | ~InputListener () |
virtual bool | axisMoved (const AxisEvent &evt) |
virtual bool | buttonPressed (const ButtonEvent &evt) |
virtual bool | buttonReleased (const ButtonEvent &evt) |
virtual bool | textInput (const TextInputEvent &evt) |
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 | ( | const Ogre::Radian & | yaw, |
const 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.
|
inline |
fix the yaw axis to be Vector3::UNIT_Y of the parent node (tabletop mode)
otherwise the yaw axis can change freely
References Ogre::Node::TS_LOCAL, and Ogre::Node::TS_PARENT.
void OgreBites::CameraMan::setPivotOffset | ( | const Ogre::Vector3 & | offset | ) |