18#ifndef GAZEBO_OCULUS_CAMERA_HH_
19#define GAZEBO_OCULUS_CAMERA_HH_
29 class OculusCameraPrivate;
48 public:
void Load(sdf::ElementPtr _sdf);
68 public:
void Resize(
unsigned int _w,
unsigned int _h);
116 bool _inheritOrientation,
double _minDist = 0,
117 double _maxDist = 0);
128 private:
void OnControl(ConstWorldControlPtr &_data);
131 private:
void Oculus();
135 private: OculusCameraPrivate *dataPtr;
rendering
Definition RenderEngine.hh:31
Basic camera sensor.
Definition Camera.hh:86
A camera used for user visualization of a scene.
Definition OculusCamera.hh:37
virtual bool TrackVisualImpl(VisualPtr _visual)
Set the camera to track a scene node.
void ResetSensor()
Reset the Oculus Rift sensor orientation.
virtual void RenderImpl()
Implementation of the render call.
void AdjustAspect(double _v)
Change screen aspect ratio.
virtual ~OculusCamera()
Destructor.
OculusCamera(const std::string &_name, ScenePtr _scene)
Constructor.
virtual bool AttachToVisualImpl(VisualPtr _visual, bool _inheritOrientation, double _minDist=0, double _maxDist=0)
Set the camera to be attached to a visual.
virtual void SetRenderTarget(Ogre::RenderTarget *_target)
Set to true to enable rendering.
void MoveToVisual(VisualPtr _visual)
Move the camera to focus on a visual.
void MoveToVisual(const std::string &_visualName)
Move the camera to focus on a visual.
void Load(sdf::ElementPtr _sdf)
Load the user camera.
void Load()
Generic load function.
bool Ready()
Used to check if Oculus is plugged in and can be used.
virtual void PostRender()
Post render.
void Resize(unsigned int _w, unsigned int _h)
Resize the camera.
virtual void Update()
Render the camera.
virtual unsigned int GetImageHeight() const
virtual unsigned int GetImageWidth() const
std::shared_ptr< Visual > VisualPtr
Definition RenderTypes.hh:114
boost::shared_ptr< Scene > ScenePtr
Definition RenderTypes.hh:82
Forward declarations for the common classes.
Definition Animation.hh:27