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

#include <static_camera_control.hpp>

Inheritance diagram for guik::StaticCameraControl:
Collaboration diagram for guik::StaticCameraControl:

Public Member Functions

EIGEN_MAKE_ALIGNED_OPERATOR_NEW StaticCameraControl ()
 StaticCameraControl (const Eigen::Isometry3f &T_world_camera, const Eigen::Vector2f &depth=Eigen::Vector2f(1e-3, 1e3))
 StaticCameraControl (const Eigen::Vector3f &eye, const Eigen::Vector3f &center, const Eigen::Vector3f &up, const Eigen::Vector2f &depth=Eigen::Vector2f(1e-3, 1e3))
virtual ~StaticCameraControl () override
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 reset_center ()
 Reset the shift of the camera.
virtual void lookat (const Eigen::Vector3f &pt)
 Move the camera to look at the given point. The point is expected to be in world coordinates.
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 mouse (const Eigen::Vector2f &p, int button, bool down)
 Mouse event callback. This method is called when a mouse button is pressed or released.
virtual void drag (const Eigen::Vector2f &p, int button)
 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)
 Scroll event callback. This method is called when the mouse wheel is scrolled.
virtual void update ()
 Update the camera state. This method can be called every frame to update the camera based on user input or animations.
virtual void updown (double p)
 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)
 Keyboard arrow key event callback. This method is called while the user is pressing the arrow keys.

Protected Attributes

Eigen::Vector2f depth
Eigen::Matrix4f matrix

Constructor & Destructor Documentation

◆ StaticCameraControl() [1/3]

EIGEN_MAKE_ALIGNED_OPERATOR_NEW guik::StaticCameraControl::StaticCameraControl ( )

◆ StaticCameraControl() [2/3]

guik::StaticCameraControl::StaticCameraControl ( const Eigen::Isometry3f & T_world_camera,
const Eigen::Vector2f & depth = Eigen::Vector2f(1e-3, 1e3) )

◆ StaticCameraControl() [3/3]

guik::StaticCameraControl::StaticCameraControl ( const Eigen::Vector3f & eye,
const Eigen::Vector3f & center,
const Eigen::Vector3f & up,
const Eigen::Vector2f & depth = Eigen::Vector2f(1e-3, 1e3) )

◆ ~StaticCameraControl()

virtual guik::StaticCameraControl::~StaticCameraControl ( )
overridevirtual

Member Function Documentation

◆ depth_range()

virtual Eigen::Vector2f guik::StaticCameraControl::depth_range ( ) const
overridevirtual

Get the depth range of the camera. This method can be overridden by derived classes to specify a custom depth range for rendering.

Returns
The near and far depth values as a 2D vector (x: near, y: far).

Reimplemented from guik::CameraControl.

◆ load()

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

Reimplemented from guik::CameraControl.

◆ name()

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

Reimplemented from guik::CameraControl.

◆ save()

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

Reimplemented from guik::CameraControl.

◆ view_matrix()

virtual Eigen::Matrix4f guik::StaticCameraControl::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.

Implements guik::CameraControl.

Member Data Documentation

◆ depth

Eigen::Vector2f guik::StaticCameraControl::depth
protected

◆ matrix

Eigen::Matrix4f guik::StaticCameraControl::matrix
protected

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