Orbit view controller.
More...
#include <OrbitViewController.hh>
gazebo::rendering::OrbitViewController::OrbitViewController |
( |
UserCameraPtr |
_camera, |
|
|
const std::string & |
_name = "OrbitViewController" |
|
) |
| |
Constructor.
- Parameters
-
[in] | _camera | Pointer to the camera to control. |
[in] | _name | Name of the view controller. A subclass of OrbitViewController should use a name other than "OrbitViewController". |
virtual gazebo::rendering::OrbitViewController::~OrbitViewController |
( |
| ) |
|
|
virtual |
math::Vector3 gazebo::rendering::OrbitViewController::GetFocalPoint |
( |
| ) |
const |
Get the focal point.
- Returns
- The focal point
static std::string gazebo::rendering::OrbitViewController::GetTypeString |
( |
| ) |
|
|
static |
Get the type name of this view controller.
- Returns
- The view controller name: "orbit".
virtual void gazebo::rendering::OrbitViewController::HandleKeyPressEvent |
( |
const std::string & |
_key | ) |
|
|
virtual |
void gazebo::rendering::OrbitViewController::HandleKeyReleaseEvent |
( |
const std::string & |
_key | ) |
|
|
virtual |
virtual void gazebo::rendering::OrbitViewController::HandleMouseEvent |
( |
const common::MouseEvent & |
_event | ) |
|
|
virtual |
virtual void gazebo::rendering::OrbitViewController::Init |
( |
| ) |
|
|
virtual |
virtual void gazebo::rendering::OrbitViewController::Init |
( |
const math::Vector3 & |
_focalPoint, |
|
|
const double |
_yaw = 0 , |
|
|
const double |
_pitch = 0 |
|
) |
| |
|
virtual |
double gazebo::rendering::OrbitViewController::NormalizePitch |
( |
double |
_v | ) |
|
|
protected |
Normalize pitch value.
[in] _v Normalize a pitch value.
- Returns
- The normalized value.
double gazebo::rendering::OrbitViewController::NormalizeYaw |
( |
double |
_v | ) |
|
|
protected |
Normalize yaw value.
[in] _v Normalize a yaw value.
- Returns
- The normalized value.
void gazebo::rendering::OrbitViewController::Orbit |
( |
double |
_dy, |
|
|
double |
_dp |
|
) |
| |
|
protected |
Update the camera's pose based on a rotation update.
- Parameters
-
[in] | _dy | Delta yaw movement. |
[in] | _dp | Delta pitch movement. |
double gazebo::rendering::OrbitViewController::Pitch |
( |
| ) |
const |
void gazebo::rendering::OrbitViewController::SetDistance |
( |
float |
_d | ) |
|
Set the distance to the focal point.
- Parameters
-
[in] | _d | The distance from the focal point. |
void gazebo::rendering::OrbitViewController::SetFocalPoint |
( |
const math::Vector3 & |
_fp | ) |
|
Set the focal point.
- Parameters
-
void gazebo::rendering::OrbitViewController::TranslateGlobal |
( |
const math::Vector3 & |
_vec | ) |
|
|
protected |
Translate the focal point in the global coordinate frame.
- Parameters
-
[in] | _vec | Direction and amount to translate the camera. |
void gazebo::rendering::OrbitViewController::TranslateLocal |
( |
const math::Vector3 & |
_vec | ) |
|
|
protected |
Translate the focal point in the local coordinate frame.
- Parameters
-
[in] | _vec | Direction and amount to translate the camera. |
virtual void gazebo::rendering::OrbitViewController::Update |
( |
| ) |
|
|
virtual |
void gazebo::rendering::OrbitViewController::UpdateRefVisual |
( |
| ) |
|
|
protected |
Update the reference visual.
double gazebo::rendering::OrbitViewController::Yaw |
( |
| ) |
const |
void gazebo::rendering::OrbitViewController::Zoom |
( |
float |
_amount | ) |
|
|
protected |
Zoom the camera.
[in] _amount Zoom quatity.
float gazebo::rendering::OrbitViewController::distance |
|
protected |
Distance to the focal point.
ignition::math::Vector3d gazebo::rendering::OrbitViewController::focalPoint |
|
protected |
bool gazebo::rendering::OrbitViewController::init |
|
protected |
A flag used to inidicate that the view controller has just been initialized.
std::string gazebo::rendering::OrbitViewController::key |
|
protected |
Key that is currently pressed.
float gazebo::rendering::OrbitViewController::pitch |
|
protected |
VisualPtr gazebo::rendering::OrbitViewController::refVisual |
|
protected |
float gazebo::rendering::OrbitViewController::yaw |
|
protected |
The documentation for this class was generated from the following file: