Public Member Functions | Protected Member Functions | Protected Attributes
rviz::FixedOrientationOrthoViewController Class Reference

#include <fixed_orientation_ortho_view_controller.h>

Inheritance diagram for rviz::FixedOrientationOrthoViewController:
Inheritance graph
[legend]

List of all members.

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

FloatPropertyangle_property_
bool dragging_
FloatPropertyscale_property_
FloatPropertyx_property_
FloatPropertyy_property_

Detailed Description

Definition at line 43 of file fixed_orientation_ortho_view_controller.h.


Constructor & Destructor Documentation

Definition at line 48 of file fixed_orientation_ortho_view_controller.cpp.

Definition at line 57 of file fixed_orientation_ortho_view_controller.cpp.


Member Function Documentation

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.

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.

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.

See also:
updateTargetFrame()

Reimplemented from rviz::FramePositionTrackingViewController.

Definition at line 179 of file fixed_orientation_ortho_view_controller.cpp.

Set the camera orientation based on angle_.

Definition at line 145 of file fixed_orientation_ortho_view_controller.cpp.

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.

Definition at line 185 of file fixed_orientation_ortho_view_controller.cpp.


Member Data Documentation

Definition at line 78 of file fixed_orientation_ortho_view_controller.h.

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.


The documentation for this class was generated from the following files:


rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust
autogenerated on Mon Oct 6 2014 07:26:37