17 #ifndef _ORBITVIEWCONTROLLER_HH_
18 #define _ORBITVIEWCONTROLLER_HH_
46 public:
virtual void Init();
53 public:
virtual void Update();
61 public:
static std::string GetTypeString();
65 public:
void SetDistance(
float _d);
76 public:
void HandleKeyReleaseEvent(
const std::string &_key);
79 public:
virtual void HandleKeyPressEvent(
const std::string &_key);
91 private:
void Zoom(
float _amount);
96 private:
double NormalizeYaw(
double _v);
101 private:
double NormalizePitch(
double _v);
104 private:
void UpdateRefVisual();
109 private:
void Orbit(
double _dy,
double _dp);
115 private:
float pitch;
118 private:
float distance;
127 private: std::string key;
Generic description of a mouse event.
Definition: MouseEvent.hh:32
GAZEBO_VISIBLE bool init()
init rendering engine.
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:43
Orbit view controller.
Definition: OrbitViewController.hh:36
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
boost::shared_ptr< Visual > VisualPtr
Definition: RenderTypes.hh:102
boost::shared_ptr< UserCamera > UserCameraPtr
Definition: RenderTypes.hh:86
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48
Base class for view controllers.
Definition: ViewController.hh:34