$search

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 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 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,
Ogre::SceneNode *  target_scene_node 
)

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 205 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 142 of file fps_view_controller.cpp.

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

Definition at line 199 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 153 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 165 of file fps_view_controller.cpp.

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

Implements rviz::ViewController.

Definition at line 121 of file fps_view_controller.cpp.

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

Implements rviz::ViewController.

Definition at line 133 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 148 of file fps_view_controller.cpp.

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

Reimplemented from rviz::ViewController.

Definition at line 137 of file fps_view_controller.cpp.

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

Definition at line 192 of file fps_view_controller.cpp.

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

Definition at line 87 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 175 of file fps_view_controller.cpp.

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

Definition at line 185 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, Dave Hershberger
autogenerated on Sat Mar 2 14:17:34 2013