30 #ifndef OGRE_TOOLS_ORBIT_CAMERA_H_ 31 #define OGRE_TOOLS_ORBIT_CAMERA_H_ 34 #include <OgreVector3.h> 72 void zoom(
float amount);
77 void setFocalPoint(
const Ogre::Vector3& focal_point);
97 void yaw(
float angle)
override;
98 void pitch(
float angle)
override;
99 void roll(
float angle)
override;
100 void setOrientation(
float x,
float y,
float z,
float w)
override;
101 void setPosition(
float x,
float y,
float z)
override;
102 void move(
float x,
float y,
float z)
override;
104 Ogre::Vector3 getPosition()
override;
105 Ogre::Quaternion getOrientation()
override;
107 void lookAt(
const Ogre::Vector3& point)
override;
109 void mouseLeftDrag(
int diff_x,
int diff_y,
bool ctrl,
bool alt,
bool shift)
override;
110 void mouseMiddleDrag(
int diff_x,
int diff_y,
bool ctrl,
bool alt,
bool shift)
override;
111 void mouseRightDrag(
int diff_x,
int diff_y,
bool ctrl,
bool alt,
bool shift)
override;
112 void scrollWheel(
int diff,
bool ctrl,
bool alt,
bool shift)
override;
120 void mouseLeftDown(
int x,
int y)
override;
121 void mouseMiddleDown(
int x,
int y)
override;
122 void mouseRightDown(
int x,
int y)
override;
123 void mouseLeftUp(
int x,
int y)
override;
124 void mouseMiddleUp(
int x,
int y)
override;
125 void mouseRightUp(
int x,
int y)
override;
127 void fromString(
const std::string& str)
override;
128 std::string toString()
override;
131 Ogre::Vector3 getGlobalFocalPoint();
137 void calculatePitchYawFromPosition(
const Ogre::Vector3& position);
141 void normalizePitch();
float distance_
The camera's distance from the focal point.
const Ogre::Vector3 & getFocalPoint()
Ogre::Vector3 focal_point_
The camera's focal point.
Generic interface for a camera.
IMETHOD Vector diff(const Vector &p_w_a, const Vector &p_w_b, double dt=1)
TFSIMD_FORCE_INLINE tfScalar angle(const Quaternion &q1, const Quaternion &q2)
void update(const std::string &key, const XmlRpc::XmlRpcValue &v)
Shape * focal_point_object_
float pitch_
The camera's pitch (rotation around the x-axis), in radians.
float yaw_
The camera's yaw (rotation around the y-axis), in radians.
An orbital camera, controlled by yaw, pitch, distance, and focal point.