17 #ifndef GAZEBO_RENDERING_VIEWCONTROLLER_HH_
18 #define GAZEBO_RENDERING_VIEWCONTROLLER_HH_
22 #include <ignition/math/Vector3.hh>
52 public:
virtual void Init() = 0;
66 public:
virtual void Init(
const ignition::math::Vector3d &_focalPoint,
67 const double _yaw = 0,
const double _pitch = 0);
71 public:
virtual void Update() = 0;
76 public:
virtual void Resize(
const unsigned int _width,
77 const unsigned int _height);
81 public:
void SetEnabled(
bool _value);
85 public:
virtual void HandleMouseEvent(
90 public:
virtual void HandleKeyReleaseEvent(
const std::string &_key) = 0;
94 public:
virtual void HandleKeyPressEvent(
const std::string &_key) = 0;
98 public: std::string GetTypeString()
const;
std::string typeString
Type of view controller.
Definition: ViewController.hh:107
Generic description of a mouse event.
Definition: MouseEvent.hh:35
boost::shared_ptr< UserCamera > UserCameraPtr
Definition: RenderTypes.hh:93
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:44
bool enabled
True if enabled.
Definition: ViewController.hh:104
#define GAZEBO_DEPRECATED(version)
Definition: system.hh:302
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
Base class for view controllers.
Definition: ViewController.hh:42
UserCameraPtr camera
Pointer to the camera to control.
Definition: ViewController.hh:101