$search
#include <view_controller.h>
Public Member Functions | |
void | activate (Ogre::Camera *camera, const std::string &reference_frame) |
void | deactivate () |
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 |
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 | resetTargetSceneNodePosition () |
void | updateTargetSceneNode () |
Protected Attributes | |
Ogre::Camera * | camera_ |
Ogre::Quaternion | global_orientation_ |
VisualizationManager * | manager_ |
std::string | name_ |
std::string | reference_frame_ |
Ogre::Quaternion | reference_orientation_ |
Ogre::Vector3 | reference_position_ |
Ogre::SceneNode * | target_scene_node_ |
Definition at line 52 of file view_controller.h.
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.
void rviz::ViewController::activate | ( | Ogre::Camera * | camera, | |
const std::string & | reference_frame | |||
) |
Definition at line 55 of file view_controller.cpp.
void rviz::ViewController::deactivate | ( | ) |
Definition at line 65 of file view_controller.cpp.
virtual void rviz::ViewController::fromString | ( | const std::string & | str | ) | [pure virtual] |
virtual std::string rviz::ViewController::getClassName | ( | ) | [pure virtual] |
const std::string& rviz::ViewController::getName | ( | void | ) | [inline] |
Definition at line 62 of file view_controller.h.
virtual void rviz::ViewController::handleMouseEvent | ( | ViewportMouseEvent & | evt | ) | [inline, virtual] |
Reimplemented in rviz::FixedOrientationOrthoViewController, rviz::FPSViewController, rviz::OrbitViewController, and rviz::XYOrbitViewController.
Definition at line 64 of file view_controller.h.
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] |
Reimplemented in rviz::FixedOrientationOrthoViewController, rviz::FPSViewController, rviz::OrbitViewController, and rviz::XYOrbitViewController.
Definition at line 74 of file view_controller.h.
void rviz::ViewController::resetTargetSceneNodePosition | ( | ) | [protected] |
Reset the target_scene_node_ position to match that of the target frame.
Definition at line 91 of file view_controller.cpp.
void rviz::ViewController::setTargetFrame | ( | const std::string & | reference_frame | ) |
Definition at line 79 of file view_controller.cpp.
virtual std::string rviz::ViewController::toString | ( | ) | [pure virtual] |
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 101 of file view_controller.cpp.
Ogre::Camera* rviz::ViewController::camera_ [protected] |
Definition at line 82 of file view_controller.h.
Ogre::Quaternion rviz::ViewController::global_orientation_ [protected] |
Definition at line 86 of file view_controller.h.
VisualizationManager* rviz::ViewController::manager_ [protected] |
Definition at line 81 of file view_controller.h.
std::string rviz::ViewController::name_ [protected] |
Definition at line 88 of file view_controller.h.
std::string rviz::ViewController::reference_frame_ [protected] |
Definition at line 83 of file view_controller.h.
Ogre::Quaternion rviz::ViewController::reference_orientation_ [protected] |
Definition at line 90 of file view_controller.h.
Ogre::Vector3 rviz::ViewController::reference_position_ [protected] |
Definition at line 91 of file view_controller.h.
Ogre::SceneNode* rviz::ViewController::target_scene_node_ [protected] |
Definition at line 84 of file view_controller.h.