6 #ifndef HIRO_DRAW_VISUAL_CAMERA_CONTROLLER_H 7 #define HIRO_DRAW_VISUAL_CAMERA_CONTROLLER_H 8 #include <GLW/WindowEventObserver.h> 9 #include <HIRO_DRAW/Scene.h> 53 void SetScenes(
const std::vector<hiro::draw::PScene> &scenes);
56 void AddScene(
const hiro::draw::PScene &scene);
59 void Update(
double delta_time);
73 void SetCameraPoi(uint32_t scene_id,
const glm::vec3 &poi);
76 glm::vec3 GetCameraPoi(uint32_t scene_id)
const;
79 void SetCameraGroup(
const std::set<uint32_t> &scene_ids);
82 const std::set<uint32_t> &GetCameraGroup()
const;
89 void UpdateGroupedCameras(
const uint32_t source_scene_id)
const;
94 void SetCameraSensitivity(
float sens);
96 float GetCameraSensitivity();
99 virtual void OnMouseMove(
double xpos,
double ypos)
override;
100 virtual void OnMouseDown(
int button,
int mods)
override;
101 virtual void OnMouseUp(
int button,
int mods)
override;
103 virtual void NotifyOnCameraChange(uint32_t scene_id);
105 virtual void OnMouseWheel(
double xoffset,
double yoffset)
override;
106 virtual void OnKeyDown(
int key,
int mods,
bool is_repeat)
override;
107 virtual void OnKeyUp(
int key,
int mods)
override;
111 std::unique_ptr<hiro::draw::VisualCameraController::Impl> m;
114 int32_t GetSceneUnderMousePos();
ORBIT_FREE, with up vector fixed to negative X.
Camera orbits defined 3D point.
ORBIT_FREE, with up vector fixed to positive Y.
std::function< void(uint32_t)> OnCameraChangeCallback
Callback function which is called each time a scene camera changes it's state.
Definition: VisualCameraController.h:45
ORBIT_FREE, with up vector fixed to negative Y.
ORBIT_FREE, with up vector fixed to positive X.
Cinematic mode. Camera can be moved freely.
Extensions for object visualization. Implements a higher level of OpenGL rendering.
Definition: API.h:20
ORBIT_FREE, with up vector fixed to positive Z.
ORBIT_FREE, with up vector fixed to negative Z.
CameraMode
Defines camera manipulation behavior.
Definition: VisualCameraController.h:17
Provides an automatic interface to camera manipulation by runtime user interaction.
Definition: VisualCameraController.h:37