17 #ifndef _ORBITVIEWCONTROLLER_HH_
18 #define _ORBITVIEWCONTROLLER_HH_
46 public:
virtual void Init();
50 const double _yaw = 0,
const double _pitch = 0);
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);
81 public:
double Pitch()
const;
83 public:
double Yaw()
const;
95 protected:
void Zoom(
float _amount);
100 protected:
double NormalizeYaw(
double _v);
105 protected:
double NormalizePitch(
double _v);
108 protected:
void UpdateRefVisual();
113 protected:
void Orbit(
double _dy,
double _dp);
128 protected: std::string
key;
float distance
Distance to the focal point.
Definition: OrbitViewController.hh:122
math::Vector3 focalPoint
The focal point.
Definition: OrbitViewController.hh:135
Generic description of a mouse event.
Definition: MouseEvent.hh:35
float pitch
Pitch value.
Definition: OrbitViewController.hh:119
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:39
Orbit view controller.
Definition: OrbitViewController.hh:36
float yaw
Yaw value.
Definition: OrbitViewController.hh:116
#define GZ_RENDERING_VISIBLE
Definition: system.hh:241
VisualPtr refVisual
A reference visual.
Definition: OrbitViewController.hh:125
bool init
A flag used to inidicate that the view controller has just been initialized.
Definition: OrbitViewController.hh:132
std::string key
Key that is currently pressed.
Definition: OrbitViewController.hh:128
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
boost::shared_ptr< Visual > VisualPtr
Definition: RenderTypes.hh:107
boost::shared_ptr< UserCamera > UserCameraPtr
Definition: RenderTypes.hh:91
Base class for view controllers.
Definition: ViewController.hh:34