|
iridescence
|
#include <arcball_camera_control.hpp>


Public Member Functions | |
| EIGEN_MAKE_ALIGNED_OPERATOR_NEW | ArcBallCameraControl () |
| ArcBallCameraControl (double distance, const Eigen::Quaternionf &quat=Eigen::Quaternionf::Identity()) | |
| virtual | ~ArcBallCameraControl () 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 | 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 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. | |
| 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::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. | |
Protected Attributes | |
| double | distance |
| Eigen::Vector3f | center |
| Eigen::Vector3f | center_offset |
| Eigen::Vector3f | delta_trans |
| Eigen::Quaternionf | orientation |
| Eigen::Quaternionf | delta_orientation |
| bool | left_button_down |
| bool | middle_button_down |
| Eigen::Vector2f | mouse_down_pos |
| Eigen::Vector2f | drag_last_pos |
| EIGEN_MAKE_ALIGNED_OPERATOR_NEW guik::ArcBallCameraControl::ArcBallCameraControl | ( | ) |
| guik::ArcBallCameraControl::ArcBallCameraControl | ( | double | distance, |
| const Eigen::Quaternionf & | quat = Eigen::Quaternionf::Identity() ) |
|
overridevirtual |
|
overridevirtual |
Keyboard arrow key event callback. This method is called while the user is pressing the arrow keys.
| p | The amount of movement in the x and y directions. |
Reimplemented from guik::CameraControl.
|
overridevirtual |
Get the depth range of the camera. This method can be overridden by derived classes to specify a custom depth range for rendering.
Reimplemented from guik::CameraControl.
|
overridevirtual |
Mouse drag event callback. This method is called when the mouse is moved while a button is pressed.
| p | The current mouse position in screen coordinates (pixels). |
| button | The mouse button index (0: left, 1: right, 2: middle). |
Reimplemented from guik::CameraControl.
|
overridevirtual |
Reimplemented from guik::CameraControl.
|
overridevirtual |
Move the camera to look at the given point. The point is expected to be in world coordinates.
| pt | The point to look at, in world coordinates. |
Reimplemented from guik::CameraControl.
|
overridevirtual |
Mouse event callback. This method is called when a mouse button is pressed or released.
| p | The current mouse position in screen coordinates (pixels). |
| button | The mouse button index (0: left, 1: right, 2: middle). |
| down | True if the button is pressed, false if released. |
Reimplemented from guik::CameraControl.
|
inlineoverridevirtual |
Reimplemented from guik::CameraControl.
|
overridevirtual |
Reset the shift of the camera.
Reimplemented from guik::CameraControl.
|
overridevirtual |
Reimplemented from guik::CameraControl.
|
overridevirtual |
Scroll event callback. This method is called when the mouse wheel is scrolled.
| rel | The relative scroll amount. |
Reimplemented from guik::CameraControl.
|
overridevirtual |
Keyboard page up/down event callback. This method is called while the user is pressing the page up/down keys.
| p | The amount of movement. Positive for page up, negative for page down. |
Reimplemented from guik::CameraControl.
|
overridevirtual |
Get the view matrix of the camera. This method must be implemented by derived classes to return the current view transformation matrix.
Implements guik::CameraControl.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |