#include <Gui/Viewer/FlightCameraManipulator.hpp>
|
void | setCameraPosition (const Core::Vector3 &position) override |
|
void | setCameraTarget (const Core::Vector3 &target) override |
|
void | fitScene (const Core::Aabb &aabb) override |
|
void | resetCamera () override |
|
void | mapCameraBehaviourToAabb (const Core::Aabb &aabb) |
| Set the AABB to restrain the camera behavior against.
|
|
void | unmapCameraBehaviourToAabb () |
| Free the camera from AABB restriction.
|
|
virtual void | fitScene (const Core::Aabb &aabb)=0 |
| Setup the Camera according to the AABB of the scene to render.
|
|
virtual void | setCameraPosition (const Core::Vector3 &position)=0 |
| Set the Camera position to position .
|
|
virtual void | setCameraTarget (const Core::Vector3 &target)=0 |
| Set the Camera target to target .
|
|
virtual void | resetCamera ()=0 |
| Reset the Camera settings to default values.
|
|
void | setCameraSensitivity (Scalar sensitivity) |
|
void | setCameraFov (Scalar fov) |
|
void | setCameraFovInDegrees (Scalar fov) |
|
void | setCameraZNear (Scalar zNear) |
|
void | setCameraZFar (Scalar zFar) |
|
|
| FlightCameraManipulator (const CameraManipulator &other) |
| [Constructor]
|
|
virtual | ~FlightCameraManipulator () |
| [Constructor]
|
|
KeyMappingManager::Context | mappingContext () override |
|
bool | handleMousePressEvent (QMouseEvent *event, const Qt::MouseButtons &buttons, const Qt::KeyboardModifiers &modifiers, int key) override |
|
bool | handleMouseReleaseEvent (QMouseEvent *event) override |
|
bool | handleMouseMoveEvent (QMouseEvent *event, const Qt::MouseButtons &buttons, const Qt::KeyboardModifiers &modifiers, int key) override |
|
bool | handleWheelEvent (QWheelEvent *event, const Qt::MouseButtons &buttons, const Qt::KeyboardModifiers &modifiers, int key) override |
|
bool | handleKeyPressEvent (QKeyEvent *event, const KeyMappingManager::KeyMappingAction &action) override |
|
void | updateCamera () override |
|
| CameraManipulator () |
| Initializes a manipulator for a given viewport size.
|
|
| CameraManipulator (const CameraManipulator &other) |
|
virtual | ~CameraManipulator () |
|
virtual bool | handleKeyReleaseEvent (QKeyEvent *event, const KeyMappingManager::KeyMappingAction &action) |
|
const Core::Asset::Camera * | getCamera () const |
| Pointer access to the camera.
|
|
Core::Asset::Camera * | getCamera () |
| Pointer access to the camera.
|
|
void | attachLight (Engine::Scene::Light *light) |
|
bool | hasLightAttached () const |
|
Engine::Scene::Light * | getLight () |
| pointer acces to the attached light if it exists, returns nullptr otherwise.
|
|
|
virtual void | handleCameraRotate (Scalar dx, Scalar dy) |
|
virtual void | handleCameraPan (Scalar dx, Scalar dy) |
|
virtual void | handleCameraZoom (Scalar dx, Scalar dy) |
|
virtual void | handleCameraZoom (Scalar z) |
|
std::pair< Scalar, Scalar > | computeDeltaMouseMove (const QMouseEvent *mouseEvent) |
|
FlightCameraManipulator & | self () |
|
A Flight manipulator for Cameras. [Declare class]
Definition at line 13 of file FlightCameraManipulator.hpp.
◆ handleKeyPressEvent()
◆ handleMouseMoveEvent()
bool Ra::Gui::FlightCameraManipulator::handleMouseMoveEvent |
( |
QMouseEvent * |
event, |
|
|
const Qt::MouseButtons & |
buttons, |
|
|
const Qt::KeyboardModifiers & |
modifiers, |
|
|
int |
key |
|
) |
| |
|
overridevirtual |
◆ handleMousePressEvent()
bool Ra::Gui::FlightCameraManipulator::handleMousePressEvent |
( |
QMouseEvent * |
event, |
|
|
const Qt::MouseButtons & |
buttons, |
|
|
const Qt::KeyboardModifiers & |
modifiers, |
|
|
int |
key |
|
) |
| |
|
overridevirtual |
◆ handleMouseReleaseEvent()
bool Ra::Gui::FlightCameraManipulator::handleMouseReleaseEvent |
( |
QMouseEvent * |
event | ) |
|
|
overridevirtual |
◆ handleWheelEvent()
bool Ra::Gui::FlightCameraManipulator::handleWheelEvent |
( |
QWheelEvent * |
event, |
|
|
const Qt::MouseButtons & |
buttons, |
|
|
const Qt::KeyboardModifiers & |
modifiers, |
|
|
int |
key |
|
) |
| |
|
overridevirtual |
◆ mappingContext()
◆ updateCamera()
void Ra::Gui::FlightCameraManipulator::updateCamera |
( |
| ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files: