Class XYOrbitViewController

Inheritance Relationships

Base Type

Derived Type

Class Documentation

class XYOrbitViewController : public rviz_default_plugins::view_controllers::OrbitViewController

Like the orbit view controller, but focal point moves only in the x-y plane.

Subclassed by rviz_default_plugins::view_controllers::ThirdPersonFollowerViewController

Public Functions

virtual void onInitialize() override

Do subclass-specific initialization.

Called by ViewController::initialize after context_, target_scene_node_, and camera_ are set.

virtual void lookAt(const Ogre::Vector3 &point) override

Look at a given location by changing the distance and angles.

void mimic(ViewController *source_view) override

Configure the settings of this view controller to give, as much as possible, a similar view as that given by the.

Parameters:
  • source_view.

  • source_view – must return a valid Ogre::Camera* from getCamera().

Protected Functions

virtual void updateCamera() override
virtual void moveFocalPoint(float distance, int32_t diff_x, int32_t diff_y, int32_t last_x, int32_t last_y) override
std::pair<bool, Ogre::Vector3> intersectGroundPlane(Ogre::Ray mouse_ray)
virtual void handleWheelEvent(rviz_common::ViewportMouseEvent &event, float distance) override
virtual void handleRightClick(rviz_common::ViewportMouseEvent &event, float distance, int32_t diff_y) override
virtual void setShiftOrbitStatus() override
void setNewFocalPointKeepingViewIfPossible(ViewController *source_view)
void calculateNewCameraPositionAndOrientation(const Ogre::Camera *source_camera, Ogre::Ray &camera_dir_ray)