Like the orbit view controller, but focal point moves only in the x-y plane. More...
#include <third_person_follower_view_controller.h>
Public Member Functions | |
virtual void | handleMouseEvent (ViewportMouseEvent &evt) |
virtual void | lookAt (const Ogre::Vector3 &point) |
This should be implemented in each subclass to aim the camera at the given point in space (relative to the fixed frame). | |
virtual void | mimic (ViewController *source_view) |
Configure the settings of this view controller to give, as much as possible, a similar view as that given by the source_view. | |
virtual void | onInitialize () |
Do subclass-specific initialization. Called by ViewController::initialize after context_, target_scene_node_, and camera_ are set. | |
Protected Member Functions | |
bool | intersectGroundPlane (Ogre::Ray mouse_ray, Ogre::Vector3 &intersection_3d) |
virtual void | updateCamera () |
virtual void | updateTargetSceneNode () |
Update the position of the target_scene_node_ from the TF frame specified in the Target Frame property. |
Like the orbit view controller, but focal point moves only in the x-y plane.
Definition at line 50 of file third_person_follower_view_controller.h.
void rviz::ThirdPersonFollowerViewController::handleMouseEvent | ( | ViewportMouseEvent & | evt | ) | [virtual] |
Reimplemented from rviz::OrbitViewController.
Definition at line 81 of file third_person_follower_view_controller.cpp.
bool rviz::ThirdPersonFollowerViewController::intersectGroundPlane | ( | Ogre::Ray | mouse_ray, |
Ogre::Vector3 & | intersection_3d | ||
) | [protected] |
Definition at line 63 of file third_person_follower_view_controller.cpp.
void rviz::ThirdPersonFollowerViewController::lookAt | ( | const Ogre::Vector3 & | point | ) | [virtual] |
This should be implemented in each subclass to aim the camera at the given point in space (relative to the fixed frame).
Reimplemented from rviz::OrbitViewController.
Definition at line 225 of file third_person_follower_view_controller.cpp.
void rviz::ThirdPersonFollowerViewController::mimic | ( | ViewController * | source_view | ) | [virtual] |
Configure the settings of this view controller to give, as much as possible, a similar view as that given by the source_view.
source_view must return a valid Ogre::Camera*
from getCamera().
Reimplemented from rviz::OrbitViewController.
Definition at line 177 of file third_person_follower_view_controller.cpp.
void rviz::ThirdPersonFollowerViewController::onInitialize | ( | ) | [virtual] |
Do subclass-specific initialization. Called by ViewController::initialize after context_, target_scene_node_, and camera_ are set.
Reimplemented from rviz::OrbitViewController.
Definition at line 57 of file third_person_follower_view_controller.cpp.
void rviz::ThirdPersonFollowerViewController::updateCamera | ( | ) | [protected, virtual] |
Reimplemented from rviz::OrbitViewController.
Definition at line 206 of file third_person_follower_view_controller.cpp.
void rviz::ThirdPersonFollowerViewController::updateTargetSceneNode | ( | ) | [protected, virtual] |
Update the position of the target_scene_node_ from the TF frame specified in the Target Frame property.
Reimplemented from rviz::FramePositionTrackingViewController.
Definition at line 212 of file third_person_follower_view_controller.cpp.