iridescence
Loading...
Searching...
No Matches
guik::OrbitCameraControlXZ Class Reference

#include <orbit_camera_control_xz.hpp>

Inheritance diagram for guik::OrbitCameraControlXZ:
Collaboration diagram for guik::OrbitCameraControlXZ:

Public Member Functions

EIGEN_MAKE_ALIGNED_OPERATOR_NEW OrbitCameraControlXZ ()
 OrbitCameraControlXZ (double distance, double theta, double phi)
virtual ~OrbitCameraControlXZ () override
virtual void drag (const Eigen::Vector2f &p, int button) override
 Mouse drag event callback. This method is called when the mouse is moved while a button is pressed.
virtual Eigen::Quaternionf rotation () const override
virtual Eigen::Matrix4f view_matrix () const override
 Get the view matrix of the camera. This method must be implemented by derived classes to return the current view transformation matrix.
virtual std::string name () const override
virtual void load (std::istream &ist) override
virtual void save (std::ostream &ost) const override
Public Member Functions inherited from guik::OrbitCameraControlXY
EIGEN_MAKE_ALIGNED_OPERATOR_NEW OrbitCameraControlXY ()
 OrbitCameraControlXY (double theta, double phi, double distance)
virtual ~OrbitCameraControlXY () override
virtual void reset_center () override
 Reset the shift of the camera.
virtual void lookat (const Eigen::Vector3f &pt) override
 Move the camera to look at the given point. The point is expected to be in world coordinates.
virtual void mouse (const Eigen::Vector2f &p, int button, bool down) override
 Mouse event callback. This method is called when a mouse button is pressed or released.
virtual void scroll (const Eigen::Vector2f &rel) override
 Scroll event callback. This method is called when the mouse wheel is scrolled.
virtual void updown (double p) override
 Keyboard page up/down event callback. This method is called while the user is pressing the page up/down keys.
virtual void arrow (const Eigen::Vector2f &p) override
 Keyboard arrow key event callback. This method is called while the user is pressing the arrow keys.
virtual Eigen::Vector2f depth_range () const override
 Get the depth range of the camera. This method can be overridden by derived classes to specify a custom depth range for rendering.
Public Member Functions inherited from guik::CameraControl
virtual ~CameraControl ()
virtual void lookat (const Eigen::Isometry3f &T_world_sensor)
 Move the camera to look at the given transform. The camera will look at the translation part of the transform, and optionally align its orientation with the rotation part.
virtual void lookat (const Eigen::Isometry3d &T_world_sensor)
virtual void update ()
 Update the camera state. This method can be called every frame to update the camera based on user input or animations.

Additional Inherited Members

Protected Attributes inherited from guik::OrbitCameraControlXY
Eigen::Vector3f center_offset
Eigen::Vector3f center
double distance
Eigen::Vector2f drag_last_pos
bool left_button_down
bool right_button_down
double theta
double phi
bool middle_button_down

Constructor & Destructor Documentation

◆ OrbitCameraControlXZ() [1/2]

EIGEN_MAKE_ALIGNED_OPERATOR_NEW guik::OrbitCameraControlXZ::OrbitCameraControlXZ ( )

◆ OrbitCameraControlXZ() [2/2]

guik::OrbitCameraControlXZ::OrbitCameraControlXZ ( double distance,
double theta,
double phi )

◆ ~OrbitCameraControlXZ()

virtual guik::OrbitCameraControlXZ::~OrbitCameraControlXZ ( )
overridevirtual

Member Function Documentation

◆ drag()

virtual void guik::OrbitCameraControlXZ::drag ( const Eigen::Vector2f & p,
int button )
overridevirtual

Mouse drag event callback. This method is called when the mouse is moved while a button is pressed.

Parameters
pThe current mouse position in screen coordinates (pixels).
buttonThe mouse button index (0: left, 1: right, 2: middle).

Reimplemented from guik::OrbitCameraControlXY.

◆ load()

virtual void guik::OrbitCameraControlXZ::load ( std::istream & ist)
overridevirtual

Reimplemented from guik::OrbitCameraControlXY.

◆ name()

virtual std::string guik::OrbitCameraControlXZ::name ( ) const
inlineoverridevirtual

Reimplemented from guik::OrbitCameraControlXY.

◆ rotation()

virtual Eigen::Quaternionf guik::OrbitCameraControlXZ::rotation ( ) const
overridevirtual

Reimplemented from guik::OrbitCameraControlXY.

◆ save()

virtual void guik::OrbitCameraControlXZ::save ( std::ostream & ost) const
overridevirtual

Reimplemented from guik::OrbitCameraControlXY.

◆ view_matrix()

virtual Eigen::Matrix4f guik::OrbitCameraControlXZ::view_matrix ( ) const
overridevirtual

Get the view matrix of the camera. This method must be implemented by derived classes to return the current view transformation matrix.

Returns
The 4x4 view matrix as an Eigen::Matrix4f.

Reimplemented from guik::OrbitCameraControlXY.


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