17 void SetDefaultCameraRelative(
const plVec3& vDirection,
float fDistanceScale);
18 void SetDefaultCameraFixed(
const plVec3& vPosition);
20 void MoveCameraToDefaultPosition();
23 void SetOrbitVolume(
const plVec3& vCenterPos,
const plVec3& vHalfBoxSize);
32 virtual void DoFocusLost(
bool bCancel)
override;
34 virtual plEditorInput DoMousePressEvent(QMouseEvent* e)
override;
35 virtual plEditorInput DoMouseReleaseEvent(QMouseEvent* e)
override;
36 virtual plEditorInput DoMouseMoveEvent(QMouseEvent* e)
override;
37 virtual plEditorInput DoWheelEvent(QWheelEvent* e)
override;
38 virtual plEditorInput DoKeyPressEvent(QKeyEvent* e)
override;
39 virtual plEditorInput DoKeyReleaseEvent(QKeyEvent* e)
override;
44 virtual void UpdateContext()
override;
46 float GetCameraSpeed()
const;
49 void SetCurrentMouseMode();
61 Mode m_Mode = Mode::Off;
66 bool m_bFixedDefaultCamera =
true;
70 bool m_bMoveForwards =
false;
71 bool m_bMoveBackwards =
false;
72 bool m_bMoveRight =
false;
73 bool m_bMoveLeft =
false;
74 bool m_bMoveUp =
false;
75 bool m_bMoveDown =
false;
A simple orbit camera. Use LMB to rotate, wheel to zoom, Alt to slow down.
Definition OrbitCameraContext.h:10
plVec3 GetVolumeCenter() const
The center point around which the camera can be moved and rotated.
Definition OrbitCameraContext.h:26
plVec3 GetVolumeHalfSize() const
The half-size of the volume in which the camera may move around.
Definition OrbitCameraContext.h:29