Files
o3de/Code/Sandbox/Editor/EditorViewportSettings.h
T
Tom Hulton-Harrop 0f09a6d8bf Move new camera settings to the Settings Registry and connect them to viewport border elements (#1267)
* ensure the new camera respects changing ui values and move camera settings to the settings registry

* factor out creation of modular camera controller

* small updates before posting PR

* updates following review feedback

* updates following review feedback
2021-06-14 12:32:35 +01:00

71 lines
2.4 KiB
C++

/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or the license accompanying this file. Do not
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
*/
#pragma once
#include <SandboxAPI.h>
namespace SandboxEditor
{
SANDBOX_API bool GridSnappingEnabled();
SANDBOX_API void SetGridSnapping(bool enabled);
SANDBOX_API float GridSnappingSize();
SANDBOX_API void SetGridSnappingSize(float size);
SANDBOX_API bool AngleSnappingEnabled();
SANDBOX_API void SetAngleSnapping(bool enabled);
SANDBOX_API float AngleSnappingSize();
SANDBOX_API void SetAngleSnappingSize(float size);
SANDBOX_API bool ShowingGrid();
SANDBOX_API void SetShowingGrid(bool showing);
SANDBOX_API float CameraTranslateSpeed();
SANDBOX_API void SetCameraTranslateSpeed(float speed);
SANDBOX_API float CameraBoostMultiplier();
SANDBOX_API void SetCameraBoostMultiplier(float multiplier);
SANDBOX_API float CameraRotateSpeed();
SANDBOX_API void SetCameraRotateSpeed(float speed);
SANDBOX_API float CameraScrollSpeed();
SANDBOX_API void SetCameraScrollSpeed(float speed);
SANDBOX_API float CameraDollyMotionSpeed();
SANDBOX_API void SetCameraDollyMotionSpeed(float speed);
SANDBOX_API bool CameraOrbitYawRotationInverted();
SANDBOX_API void SetCameraOrbitYawRotationInverted(bool inverted);
SANDBOX_API bool CameraPanInvertedX();
SANDBOX_API void SetCameraPanInvertedX(bool inverted);
SANDBOX_API bool CameraPanInvertedY();
SANDBOX_API void SetCameraPanInvertedY(bool inverted);
SANDBOX_API float CameraPanSpeed();
SANDBOX_API void SetCameraPanSpeed(float speed);
SANDBOX_API float CameraRotateSmoothness();
SANDBOX_API void SetCameraRotateSmoothness(float smoothness);
SANDBOX_API float CameraTranslateSmoothness();
SANDBOX_API void SetCameraTranslateSmoothness(float smoothness);
//! Return if the new editor camera system is enabled or not.
//! @note This is implemented in EditorViewportWidget.cpp
SANDBOX_API bool UsingNewCameraSystem();
} // namespace SandboxEditor