Go to the documentation of this file.
17 #ifndef GAZEBO_GUI_OCULUS_WINDOW_HH_
18 #define GAZEBO_GUI_OCULUS_WINDOW_HH_
45 public:
OculusWindow(
int _x,
int _y,
const std::string &_visual,
46 QWidget *_parent = 0);
53 public:
bool CreateCamera();
56 protected:
virtual void showEvent(QShowEvent *_e);
59 protected:
virtual void resizeEvent(QResizeEvent *_e);
62 protected:
void keyPressEvent(QKeyEvent *_event);
66 private: std::string GetOgreHandle()
const;
69 private:
void AttachCameraToVisual();
72 private: QFrame *renderFrame;
75 private:
int windowId;
78 private: rendering::OculusCameraPtr oculusCamera;
84 private:
bool isFullScreen;
93 private: std::string visualName;
96 private: std::thread *attachCameraThread;
Forward declarations for the common classes.
Definition: Animation.hh:26
virtual void resizeEvent(QResizeEvent *_e)
virtual ~OculusWindow()
Destructor.
Forward declarations for transport.
void keyPressEvent(QKeyEvent *_event)
boost::shared_ptr< Scene > ScenePtr
Definition: RenderTypes.hh:82
virtual void showEvent(QShowEvent *_e)
gui
Definition: KeyEventHandler.hh:29
OculusWindow(int _x, int _y, const std::string &_visual, QWidget *_parent=0)
Constructor.
A widget that renders a camera view suitable for the Oculus Rift.
Definition: OculusWindow.hh:40
bool CreateCamera()
Initialize Oculus and create a camera.