#include <fixed_orientation_ortho_view_controller.h>
Public Member Functions | |
FixedOrientationOrthoViewController () | |
virtual void | handleMouseEvent (ViewportMouseEvent &evt) |
virtual void | lookAt (const Ogre::Vector3 &point_rel_world) |
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. This version calls updateTargetSceneNode(). | |
virtual void | reset () |
virtual void | update (float dt, float ros_dt) |
Called at 30Hz by ViewManager::update() while this view is active. Override with code that needs to run repeatedly. | |
virtual | ~FixedOrientationOrthoViewController () |
Protected Member Functions | |
void | move (float x, float y) |
virtual void | onTargetFrameChanged (const Ogre::Vector3 &old_reference_position, const Ogre::Quaternion &old_reference_orientation) |
Override to implement the change in properties which nullifies the change in target frame. | |
void | orientCamera () |
void | setPosition (const Ogre::Vector3 &pos_rel_target) |
void | updateCamera () |
Protected Attributes | |
FloatProperty * | angle_property_ |
bool | dragging_ |
FloatProperty * | scale_property_ |
FloatProperty * | x_property_ |
FloatProperty * | y_property_ |
Definition at line 43 of file fixed_orientation_ortho_view_controller.h.
Definition at line 48 of file fixed_orientation_ortho_view_controller.cpp.
Definition at line 57 of file fixed_orientation_ortho_view_controller.cpp.
void rviz::FixedOrientationOrthoViewController::handleMouseEvent | ( | ViewportMouseEvent & | evt | ) | [virtual] |
Reimplemented from rviz::ViewController.
Definition at line 77 of file fixed_orientation_ortho_view_controller.cpp.
void rviz::FixedOrientationOrthoViewController::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::ViewController.
Definition at line 174 of file fixed_orientation_ortho_view_controller.cpp.
void rviz::FixedOrientationOrthoViewController::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::FramePositionTrackingViewController.
Definition at line 150 of file fixed_orientation_ortho_view_controller.cpp.
void rviz::FixedOrientationOrthoViewController::move | ( | float | x, |
float | y | ||
) | [protected] |
Definition at line 210 of file fixed_orientation_ortho_view_controller.cpp.
void rviz::FixedOrientationOrthoViewController::onInitialize | ( | ) | [virtual] |
Do subclass-specific initialization. Called by ViewController::initialize after context_, target_scene_node_, and camera_ are set. This version calls updateTargetSceneNode().
Reimplemented from rviz::FramePositionTrackingViewController.
Definition at line 61 of file fixed_orientation_ortho_view_controller.cpp.
void rviz::FixedOrientationOrthoViewController::onTargetFrameChanged | ( | const Ogre::Vector3 & | old_reference_position, |
const Ogre::Quaternion & | old_reference_orientation | ||
) | [protected, virtual] |
Override to implement the change in properties which nullifies the change in target frame.
Reimplemented from rviz::FramePositionTrackingViewController.
Definition at line 179 of file fixed_orientation_ortho_view_controller.cpp.
void rviz::FixedOrientationOrthoViewController::orientCamera | ( | ) | [protected] |
Set the camera orientation based on angle_.
Definition at line 145 of file fixed_orientation_ortho_view_controller.cpp.
void rviz::FixedOrientationOrthoViewController::reset | ( | ) | [virtual] |
Reset the view controller to some sane initial state, like looking at 0,0,0 from a few meters away.
Implements rviz::ViewController.
Definition at line 69 of file fixed_orientation_ortho_view_controller.cpp.
void rviz::FixedOrientationOrthoViewController::setPosition | ( | const Ogre::Vector3 & | pos_rel_target | ) | [protected] |
Definition at line 204 of file fixed_orientation_ortho_view_controller.cpp.
void rviz::FixedOrientationOrthoViewController::update | ( | float | dt, |
float | ros_dt | ||
) | [virtual] |
Called at 30Hz by ViewManager::update() while this view is active. Override with code that needs to run repeatedly.
Reimplemented from rviz::FramePositionTrackingViewController.
Definition at line 168 of file fixed_orientation_ortho_view_controller.cpp.
void rviz::FixedOrientationOrthoViewController::updateCamera | ( | ) | [protected] |
Definition at line 185 of file fixed_orientation_ortho_view_controller.cpp.
Definition at line 78 of file fixed_orientation_ortho_view_controller.h.
bool rviz::FixedOrientationOrthoViewController::dragging_ [protected] |
Definition at line 81 of file fixed_orientation_ortho_view_controller.h.
Definition at line 77 of file fixed_orientation_ortho_view_controller.h.
Definition at line 79 of file fixed_orientation_ortho_view_controller.h.
Definition at line 80 of file fixed_orientation_ortho_view_controller.h.