rviz::ViewController Class Reference

#include <view_controller.h>

Inheritance diagram for rviz::ViewController:
Inheritance graph

List of all members.


void configChanged ()

Public Member Functions

void activate (Ogre::Camera *camera, const std::string &reference_frame)
void deactivate ()
void emitConfigChanged ()
 Subclasses should call this whenever a change is made which would change the results of toString().
virtual void fromString (const std::string &str)=0
virtual std::string getClassName ()=0
const std::string & getName ()
virtual void handleMouseEvent (ViewportMouseEvent &evt)
virtual void lookAt (const Ogre::Vector3 &point)=0
virtual void reset ()=0
void setTargetFrame (const std::string &reference_frame)
virtual std::string toString ()=0
void update (float dt, float ros_dt)
 ViewController (VisualizationManager *manager, const std::string &name, Ogre::SceneNode *target_scene_node)
virtual ~ViewController ()

Protected Member Functions

virtual void onActivate ()=0
virtual void onDeactivate ()=0
virtual void onTargetFrameChanged (const Ogre::Vector3 &old_reference_position, const Ogre::Quaternion &old_reference_orientation)=0
virtual void onUpdate (float dt, float ros_dt)
void updateTargetSceneNode ()

Protected Attributes

Ogre::Camera * camera_
Ogre::Quaternion global_orientation_
std::string name_
std::string reference_frame_
Ogre::Quaternion reference_orientation_
Ogre::Vector3 reference_position_
Ogre::SceneNode * target_scene_node_

Detailed Description

Definition at line 54 of file view_controller.h.

Constructor & Destructor Documentation

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

Definition at line 42 of file view_controller.cpp.

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

Definition at line 50 of file view_controller.cpp.

Member Function Documentation

void rviz::ViewController::activate ( Ogre::Camera *  camera,
const std::string &  reference_frame 

Definition at line 55 of file view_controller.cpp.

void rviz::ViewController::configChanged (  )  [signal]
void rviz::ViewController::deactivate (  ) 

Definition at line 65 of file view_controller.cpp.

void rviz::ViewController::emitConfigChanged (  ) 

Subclasses should call this whenever a change is made which would change the results of toString().

Definition at line 79 of file view_controller.cpp.

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

Set internal state from a string.

Implemented in rviz::FixedOrientationOrthoViewController, rviz::FPSViewController, and rviz::OrbitViewController.

virtual std::string rviz::ViewController::getClassName (  )  [pure virtual]
const std::string& rviz::ViewController::getName ( void   )  [inline]

Definition at line 65 of file view_controller.h.

virtual void rviz::ViewController::handleMouseEvent ( ViewportMouseEvent evt  )  [inline, virtual]
virtual void rviz::ViewController::lookAt ( const Ogre::Vector3 &  point  )  [pure virtual]
virtual void rviz::ViewController::onActivate (  )  [protected, pure virtual]
virtual void rviz::ViewController::onDeactivate (  )  [protected, pure virtual]
virtual void rviz::ViewController::onTargetFrameChanged ( const Ogre::Vector3 &  old_reference_position,
const Ogre::Quaternion &  old_reference_orientation 
) [protected, pure virtual]
virtual void rviz::ViewController::onUpdate ( float  dt,
float  ros_dt 
) [inline, protected, virtual]
virtual void rviz::ViewController::reset (  )  [pure virtual]

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

Implemented in rviz::FixedOrientationOrthoViewController, rviz::FPSViewController, and rviz::OrbitViewController.

void rviz::ViewController::setTargetFrame ( const std::string &  reference_frame  ) 

Definition at line 84 of file view_controller.cpp.

virtual std::string rviz::ViewController::toString (  )  [pure virtual]

Return internal state as a string.

Implemented in rviz::FixedOrientationOrthoViewController, rviz::FPSViewController, and rviz::OrbitViewController.

void rviz::ViewController::update ( float  dt,
float  ros_dt 

Definition at line 73 of file view_controller.cpp.

void rviz::ViewController::updateTargetSceneNode (  )  [protected]

Definition at line 102 of file view_controller.cpp.

Member Data Documentation

Ogre::Camera* rviz::ViewController::camera_ [protected]

Definition at line 97 of file view_controller.h.

Ogre::Quaternion rviz::ViewController::global_orientation_ [protected]

Definition at line 101 of file view_controller.h.

Definition at line 96 of file view_controller.h.

std::string rviz::ViewController::name_ [protected]

Definition at line 103 of file view_controller.h.

std::string rviz::ViewController::reference_frame_ [protected]

Definition at line 98 of file view_controller.h.

Ogre::Quaternion rviz::ViewController::reference_orientation_ [protected]

Definition at line 105 of file view_controller.h.

Ogre::Vector3 rviz::ViewController::reference_position_ [protected]

Definition at line 106 of file view_controller.h.

Ogre::SceneNode* rviz::ViewController::target_scene_node_ [protected]

Definition at line 99 of file 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

Author(s): Dave Hershberger, Josh Faust
autogenerated on Wed Jun 6 11:25:48 2012