23 #ifndef __QTFREECAMERAWIDGET__ 24 #define __QTFREECAMERAWIDGET__ 50 Eigen::Vector2f screen_pos (event->x(),
event->y());
51 if (event->button() == Qt::LeftButton)
56 if (event->button() == Qt::MiddleButton)
61 if (event->button() == Qt::RightButton)
70 Eigen::Vector2f screen_pos (event->x(),
event->y());
71 if (event->buttons() & Qt::LeftButton)
76 if(event->buttons() & Qt::MiddleButton)
81 if (event->buttons() & Qt::RightButton)
98 if (event->button() == Qt::RightButton)
virtual Eigen::Quaternion< float > rotateCamera(const Eigen::Vector2f &pos)
Computes and applies the rotation transformations to the trackball given new position.
Definition: trackball.hpp:455
Definition: bufferobject.hpp:34
virtual void rotate(Eigen::Vector2f new_mouse_pos)
Rotates the camera view direction.
Definition: flycamera.hpp:269
virtual void endRotation(void)
Indicates that a rotation has ended. Disables the rotating flag, indicating that the mouse callback f...
Definition: trackball.hpp:279
Free camera class for manipulating a camera.
Definition: freecamera.hpp:38
virtual void rotateZ(Eigen::Vector2f new_mouse_pos)
Rotates the camera view direction around Z axis. Default implementation does nothing.
Definition: flycamera.hpp:297
void startRotation(Eigen::Vector2f pos)
Begin view direction rotation.
Definition: flycamera.hpp:260
virtual void updateViewMatrix()
Compose rotation and translation.
Definition: flycamera.hpp:166