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)
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 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 onReferenceFrameChanged (const Ogre::Vector3 &old_reference_position, const Ogre::Quaternion &old_reference_orientation)
virtual void onUpdate (float dt, float ros_dt)
void setOrientation (const Ogre::Quaternion &orientation)
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 
)

Definition at line 36 of file fps_view_controller.cpp.

rviz::FPSViewController::~FPSViewController (  )  [virtual]

Definition at line 43 of file fps_view_controller.cpp.


Member Function Documentation

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

Implements rviz::ViewController.

Definition at line 207 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.

void rviz::FPSViewController::handleMouseEvent ( ViewportMouseEvent evt  )  [virtual]

Reimplemented from rviz::ViewController.

Definition at line 47 of file fps_view_controller.cpp.

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

Implements rviz::ViewController.

Definition at line 144 of file fps_view_controller.cpp.

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

Definition at line 201 of file fps_view_controller.cpp.

void rviz::FPSViewController::normalizePitch (  )  [protected]

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

Definition at line 155 of file fps_view_controller.cpp.

void rviz::FPSViewController::normalizeYaw (  )  [protected]

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

Definition at line 167 of file fps_view_controller.cpp.

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

Implements rviz::ViewController.

Definition at line 120 of file fps_view_controller.cpp.

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

Implements rviz::ViewController.

Definition at line 134 of file fps_view_controller.cpp.

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

Implements rviz::ViewController.

Definition at line 150 of file fps_view_controller.cpp.

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

Reimplemented from rviz::ViewController.

Definition at line 139 of file fps_view_controller.cpp.

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

Definition at line 194 of file fps_view_controller.cpp.

void rviz::FPSViewController::setOrientation ( const Ogre::Quaternion &  orientation  )  [protected]

Definition at line 86 of file fps_view_controller.cpp.

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

Implements rviz::ViewController.

Definition at line 226 of file fps_view_controller.cpp.

void rviz::FPSViewController::updateCamera (  )  [protected]

Definition at line 177 of file fps_view_controller.cpp.

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

Definition at line 187 of file fps_view_controller.cpp.


Member Data Documentation

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

Definition at line 92 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 91 of file fps_view_controller.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


rviz
Author(s): Josh Faust
autogenerated on Fri Jan 11 09:36:32 2013