39#ifndef EASY3D_RENDERER_MANIPULATED_CAMERA_FRAME_H
40#define EASY3D_RENDERER_MANIPULATED_CAMERA_FRAME_H
42#include <easy3d/renderer/manipulated_frame.h>
207 bool zoomsOnPivotPoint_;
A perspective or orthographic camera.
Definition camera.h:113
void setPivotPoint(const vec3 &point)
Sets the pivotPoint(), defined in the world coordinate system.
Definition manipulated_camera_frame.h:99
void action_rotate(int mouse_x, int mouse_y, int mouse_dx, int mouse_dy, Camera *camera, ScreenAxis axis) override
Rotates the frame based on mouse movement.
Definition manipulated_camera_frame.cpp:71
vec3 pivotPoint() const
Returns the point the ManipulatedCameraFrame pivots around, which is the camera's pivot point.
Definition manipulated_camera_frame.h:93
ManipulatedCameraFrame & operator=(const ManipulatedCameraFrame &mcf)
Copy assignment operator.
Definition manipulated_camera_frame.cpp:53
void action_zoom(int dy_wheel, Camera *camera) override
Zooms the frame based on mouse wheel movement.
Definition manipulated_camera_frame.cpp:175
ManipulatedCameraFrame()
Default constructor.
Definition manipulated_camera_frame.cpp:46
~ManipulatedCameraFrame() override=default
bool zoomsOnPivotPoint() const
Returns whether the QGLViewer::ZOOM action zooms on the pivot point.
Definition manipulated_camera_frame.h:114
void setZoomsOnPivotPoint(bool enabled)
Sets the value of zoomsOnPivotPoint().
Definition manipulated_camera_frame.h:120
virtual void action_turn(float angle_radian, Camera *camera)
Turns the frame around the camera's Y axis.
Definition manipulated_camera_frame.cpp:244
void action_translate(int mouse_x, int mouse_y, int mouse_dx, int mouse_dy, Camera *camera, ScreenAxis axis) override
Translates the frame based on mouse movement.
Definition manipulated_camera_frame.cpp:117
ManipulatedFrame()
Default constructor.
ScreenAxis
ScreenAxis constrains rotation or translation around/along the axis.
Definition manipulated_frame.h:164
The built-in Easy3D viewer.
Definition viewer.h:63
Definition collider.cpp:182
Vec< 3, float > vec3
A 3D point/vector of float type.
Definition types.h:44