Public Member Functions | Protected Member Functions | Protected Attributes
rviz::FPSMotionViewController Class Reference

A first-person camera, controlled by yaw, pitch, and position. More...

#include <fps_motion_view_controller.h>

Inheritance diagram for rviz::FPSMotionViewController:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void changeZ (float z)
void fly (float x, float y, float z)
 FPSMotionViewController ()
virtual void handleMouseEvent (ViewportMouseEvent &evt)
virtual void lookAt (const Ogre::Vector3 &point)
virtual void mimic (ViewController *source_view)
 Configure the settings of this view controller to give, as much as possible, a similar view as that given by the source_view.
void move (float x, float y, float z)
virtual void onInitialize ()
void pitch (float angle)
virtual void reset ()
void setCamera (Ogre::Camera *source_camera)
virtual void update (float dt, float ros_dt)
void yaw (float angle)
virtual ~FPSMotionViewController ()

Protected Member Functions

Ogre::Quaternion getOrientation ()
 Return a Quaternion based on the yaw and pitch properties.
virtual void onTargetFrameChanged (const Ogre::Vector3 &old_reference_position, const Ogre::Quaternion &old_reference_orientation)
void setPropertiesFromCamera (Ogre::Camera *source_camera)
void updateCamera ()
void updateCamera (Ogre::Vector3 &position, Ogre::Quaternion &orientation)

Protected Attributes

BoolPropertyfly_property_
FloatPropertypitch_property_
 The camera's pitch (rotation around the x-axis), in radians.
VectorPropertyposition_property_
FloatPropertyyaw_property_
 The camera's yaw (rotation around the y-axis), in radians.

Detailed Description

A first-person camera, controlled by yaw, pitch, and position.

Definition at line 49 of file fps_motion_view_controller.h.


Constructor & Destructor Documentation

Definition at line 58 of file fps_motion_view_controller.cpp.

Definition at line 69 of file fps_motion_view_controller.cpp.


Member Function Documentation

Definition at line 217 of file fps_motion_view_controller.cpp.

void rviz::FPSMotionViewController::fly ( float  x,
float  y,
float  z 
)

Definition at line 224 of file fps_motion_view_controller.cpp.

Ogre::Quaternion rviz::FPSMotionViewController::getOrientation ( ) [protected]

Return a Quaternion based on the yaw and pitch properties.

Definition at line 199 of file fps_motion_view_controller.cpp.

Reimplemented from rviz::ViewController.

Definition at line 90 of file fps_motion_view_controller.cpp.

void rviz::FPSMotionViewController::lookAt ( const Ogre::Vector3 point) [virtual]

Reimplemented from rviz::ViewController.

Definition at line 165 of file fps_motion_view_controller.cpp.

void rviz::FPSMotionViewController::mimic ( ViewController source_view) [virtual]

Configure the settings of this view controller to give, as much as possible, a similar view as that given by the source_view.

source_view must return a valid Ogre::Camera* from getCamera().

Reimplemented from rviz::FramePositionTrackingViewController.

Definition at line 153 of file fps_motion_view_controller.cpp.

void rviz::FPSMotionViewController::move ( float  x,
float  y,
float  z 
)

Definition at line 209 of file fps_motion_view_controller.cpp.

Reimplemented from rviz::FramePositionTrackingViewController.

Definition at line 73 of file fps_motion_view_controller.cpp.

void rviz::FPSMotionViewController::onTargetFrameChanged ( const Ogre::Vector3 old_reference_position,
const Ogre::Quaternion &  old_reference_orientation 
) [protected, virtual]

Reimplemented from rviz::FramePositionTrackingViewController.

Definition at line 171 of file fps_motion_view_controller.cpp.

void rviz::FPSMotionViewController::pitch ( float  angle)

Definition at line 194 of file fps_motion_view_controller.cpp.

Implements rviz::ViewController.

Definition at line 79 of file fps_motion_view_controller.cpp.

void rviz::FPSMotionViewController::setCamera ( Ogre::Camera *  source_camera) [inline]

Definition at line 79 of file fps_motion_view_controller.h.

void rviz::FPSMotionViewController::setPropertiesFromCamera ( Ogre::Camera *  source_camera) [protected]

Definition at line 117 of file fps_motion_view_controller.cpp.

void rviz::FPSMotionViewController::update ( float  dt,
float  ros_dt 
) [virtual]

Reimplemented from rviz::FramePositionTrackingViewController.

Definition at line 159 of file fps_motion_view_controller.cpp.

Definition at line 176 of file fps_motion_view_controller.cpp.

void rviz::FPSMotionViewController::updateCamera ( Ogre::Vector3 position,
Ogre::Quaternion &  orientation 
) [protected]

Definition at line 182 of file fps_motion_view_controller.cpp.

void rviz::FPSMotionViewController::yaw ( float  angle)

Definition at line 189 of file fps_motion_view_controller.cpp.


Member Data Documentation

Definition at line 93 of file fps_motion_view_controller.h.

The camera's pitch (rotation around the x-axis), in radians.

Definition at line 91 of file fps_motion_view_controller.h.

Definition at line 92 of file fps_motion_view_controller.h.

The camera's yaw (rotation around the y-axis), in radians.

Definition at line 90 of file fps_motion_view_controller.h.


The documentation for this class was generated from the following files:


rviz_fps_plugin
Author(s): hdeeken
autogenerated on Thu Jun 6 2019 20:43:59