Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
rviz::FPSViewController Class Reference

#include <fps_view_controller.h>

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

List of all members.

Public Member Functions

 FPSViewController (VisualizationManager *manager, const std::string &name, Ogre::SceneNode *target_scene_node)
virtual void fromString (const std::string &str)
virtual std::string getClassName ()
virtual void handleMouseEvent (ViewportMouseEvent &evt)
virtual void lookAt (const Ogre::Vector3 &point)
void move (float x, float y, float z)
void pitch (float angle)
virtual void reset ()
virtual std::string toString ()
void yaw (float angle)
virtual ~FPSViewController ()

Static Public Member Functions

static std::string getClassNameStatic ()

Protected Member Functions

void normalizePitch ()
 Normalizes the camera's pitch, preventing it from reaching vertical (or turning upside down)
void normalizeYaw ()
 Normalizes the camera's yaw in the range [0, 2*pi)
virtual void onActivate ()
virtual void onDeactivate ()
virtual void onTargetFrameChanged (const Ogre::Vector3 &old_reference_position, const Ogre::Quaternion &old_reference_orientation)
virtual void onUpdate (float dt, float ros_dt)
void setYawPitchFromCamera ()
void updateCamera ()

Protected Attributes

float pitch_
 The camera's pitch (rotation around the x-axis), in radians.
float yaw_
 The camera's yaw (rotation around the y-axis), in radians.

Detailed Description

Definition at line 51 of file fps_view_controller.h.


Constructor & Destructor Documentation

rviz::FPSViewController::FPSViewController ( VisualizationManager manager,
const std::string &  name,
Ogre::SceneNode *  target_scene_node 
)

Definition at line 56 of file fps_view_controller.cpp.

Definition at line 63 of file fps_view_controller.cpp.


Member Function Documentation

void rviz::FPSViewController::fromString ( const std::string &  str) [virtual]

Set internal state from a string.

Implements rviz::ViewController.

Definition at line 247 of file fps_view_controller.cpp.

virtual std::string rviz::FPSViewController::getClassName ( ) [inline, virtual]

Implements rviz::ViewController.

Definition at line 69 of file fps_view_controller.h.

static std::string rviz::FPSViewController::getClassNameStatic ( ) [inline, static]

Definition at line 68 of file fps_view_controller.h.

Reimplemented from rviz::ViewController.

Definition at line 82 of file fps_view_controller.cpp.

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

Implements rviz::ViewController.

Definition at line 181 of file fps_view_controller.cpp.

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

Definition at line 240 of file fps_view_controller.cpp.

Normalizes the camera's pitch, preventing it from reaching vertical (or turning upside down)

Definition at line 192 of file fps_view_controller.cpp.

Normalizes the camera's yaw in the range [0, 2*pi)

Definition at line 204 of file fps_view_controller.cpp.

void rviz::FPSViewController::onActivate ( ) [protected, virtual]

Implements rviz::ViewController.

Definition at line 160 of file fps_view_controller.cpp.

void rviz::FPSViewController::onDeactivate ( ) [protected, virtual]

Implements rviz::ViewController.

Definition at line 172 of file fps_view_controller.cpp.

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

Implements rviz::ViewController.

Definition at line 187 of file fps_view_controller.cpp.

void rviz::FPSViewController::onUpdate ( float  dt,
float  ros_dt 
) [protected, virtual]

Reimplemented from rviz::ViewController.

Definition at line 176 of file fps_view_controller.cpp.

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

Definition at line 232 of file fps_view_controller.cpp.

void rviz::FPSViewController::reset ( ) [virtual]

Reset the view controller to some sane initial state, like looking at 0,0,0 of the target frame.

Implements rviz::ViewController.

Definition at line 67 of file fps_view_controller.cpp.

Definition at line 124 of file fps_view_controller.cpp.

std::string rviz::FPSViewController::toString ( ) [virtual]

Return internal state as a string.

Implements rviz::ViewController.

Definition at line 262 of file fps_view_controller.cpp.

Definition at line 214 of file fps_view_controller.cpp.

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

Definition at line 224 of file fps_view_controller.cpp.


Member Data Documentation

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

Definition at line 93 of file fps_view_controller.h.

float rviz::FPSViewController::yaw_ [protected]

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

Definition at line 92 of file fps_view_controller.h.


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


rviz
Author(s): Dave Hershberger, Josh Faust
autogenerated on Mon Jan 6 2014 11:54:33