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