Go to the documentation of this file.
30 #ifndef OGRE_TOOLS_CAMERA_BASE_H_
31 #define OGRE_TOOLS_CAMERA_BASE_H_
34 #include <OgreQuaternion.h>
89 virtual void setPosition(
const Ogre::Vector3& position);
107 virtual void yaw(
float angle) = 0;
120 virtual void pitch(
float angle) = 0;
133 virtual void roll(
float angle) = 0;
138 virtual void setOrientation(
float x,
float y,
float z,
float w) = 0;
142 virtual void setPosition(
float x,
float y,
float z) = 0;
166 virtual void lookAt(
const Ogre::Vector3& point) = 0;
175 virtual void move(
float x,
float y,
float z) = 0;
202 virtual void mouseLeftDrag(
int diff_x,
int diff_y,
bool ctrl,
bool alt,
bool shift) = 0;
209 virtual void mouseMiddleDrag(
int diff_x,
int diff_y,
bool ctrl,
bool alt,
bool shift) = 0;
216 virtual void mouseRightDrag(
int diff_x,
int diff_y,
bool ctrl,
bool alt,
bool shift) = 0;
223 virtual void scrollWheel(
int diff,
bool ctrl,
bool alt,
bool shift) = 0;
229 virtual void fromString(
const std::string& str) = 0;
Ogre::Camera * getOgreCamera()
Get the Ogre camera associated with this camera object.
virtual void setPosition(const Ogre::Vector3 &position)
Set the position of the camera.
virtual void roll(float angle)=0
Roll the camera.
virtual void yaw(float angle)=0
Yaw the camera.
virtual void mouseMiddleUp(int, int)
Ogre::Camera * camera_
Ogre camera associated with this camera object.
virtual void mouseLeftDrag(int diff_x, int diff_y, bool ctrl, bool alt, bool shift)=0
Handle a left mouse button drag.
Ogre::SceneNode * relative_node_
void setRelativeNode(Ogre::SceneNode *node)
Set a scene node that all camera transformations should be relative to.
virtual void mouseRightDrag(int diff_x, int diff_y, bool ctrl, bool alt, bool shift)=0
Handle a right mouse button drag.
virtual std::string toString()=0
Returns a string representation of the camera's configuration.
Generic interface for a camera.
virtual void mouseMiddleDrag(int diff_x, int diff_y, bool ctrl, bool alt, bool shift)=0
Handle a middle mouse button drag.
CameraBase(Ogre::SceneManager *scene_manager)
Constructor.
virtual void lookAt(const Ogre::Vector3 &point)=0
Point the camera at the specified point.
virtual void mouseMiddleDown(int, int)
virtual void mouseRightUp(int, int)
virtual void mouseLeftDown(int, int)
virtual Ogre::Quaternion getOrientation()=0
Get the orientation of this camera.
virtual void setFrom(CameraBase *camera)=0
Set the position/orientation of this camera from another camera.
virtual void move(float x, float y, float z)=0
Move the camera relative to its orientation.
virtual void setOrientation(const Ogre::Quaternion &orientation)
Set the orientation of the camera.
virtual void mouseLeftUp(int, int)
virtual void pitch(float angle)=0
Pitch the camera.
virtual void scrollWheel(int diff, bool ctrl, bool alt, bool shift)=0
Handle a scrollwheel change.
virtual void mouseRightDown(int, int)
virtual Ogre::Vector3 getPosition()=0
Get the position of this camera.
virtual void fromString(const std::string &str)=0
Loads the camera's configure from the supplied string (generated through toString())
virtual void relativeNodeChanged()
Called when the relative node changes.
Ogre::SceneManager * scene_manager_
Scene manager this camera is part of.
rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust, William Woodall
autogenerated on Fri Aug 2 2024 08:43:09