17#ifndef GAZEBO_RENDERING_ORTHOVIEWCONTROLLER_HH_
18#define GAZEBO_RENDERING_ORTHOVIEWCONTROLLER_HH_
21#include <ignition/math/Vector2.hh>
31 class OrthoViewControllerPrivate;
48 public:
virtual void Init();
51 public:
virtual void Init(
const ignition::math::Vector3d &_focalPoint,
52 const double _yaw = 0,
const double _pitch = 0);
65 private:
void Zoom(
const float _amount,
66 const ignition::math::Vector2i &_point =
67 ignition::math::Vector2i(0, 0));
70 public:
virtual void Resize(
const unsigned int _width,
71 const unsigned int _height);
80 private: Ogre::Matrix4 BuildScaledOrthoMatrix(
81 const float _left,
const float _right,
82 const float _bottom,
const float _top,
83 const float _near,
const float _far)
const;
87 private: OrthoViewControllerPrivate *dataPtr;
rendering
Definition RenderEngine.hh:31
Generic description of a mouse event.
Definition MouseEvent.hh:36
Orbit view controller.
Definition OrbitViewController.hh:38
Orthographic view controller.
Definition OrthoViewController.hh:39
virtual ~OrthoViewController()
Destructor.
virtual void Init()
Initialize the controller.
virtual void Resize(const unsigned int _width, const unsigned int _height)
Called by the UserCamera when a resize event occurs.
static std::string GetTypeString()
Get the type name of this view controller.
OrthoViewController(UserCameraPtr _camera)
Constructor.
virtual void HandleMouseEvent(const common::MouseEvent &_event)
Handle a mouse event.
virtual void Init(const ignition::math::Vector3d &_focalPoint, const double _yaw=0, const double _pitch=0)
Initialize with a focus point.
boost::shared_ptr< UserCamera > UserCameraPtr
Definition RenderTypes.hh:94
Forward declarations for the common classes.
Definition Animation.hh:27
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition system.hh:59