8344539ab6
* first pass updates to improve manipulators Signed-off-by: Tom Hulton-Harrop <82228511+hultonha@users.noreply.github.com> * add setting to enable/disable manipulator axis flipping Signed-off-by: Tom Hulton-Harrop <82228511+hultonha@users.noreply.github.com> * update manipulator cvar to use ed_ naming convention Signed-off-by: Tom Hulton-Harrop <82228511+hultonha@users.noreply.github.com> * wip updates to add AzToolsFramework values to the SettingsRegistry Signed-off-by: Tom Hulton-Harrop <82228511+hultonha@users.noreply.github.com> * expose a number of manipulator settings for configuration Signed-off-by: Tom Hulton-Harrop <82228511+hultonha@users.noreply.github.com> * add setting for manipulator base scale to change size of all manipulators together Signed-off-by: Tom Hulton-Harrop <82228511+hultonha@users.noreply.github.com> * minor updates before posting PR Signed-off-by: Tom Hulton-Harrop <82228511+hultonha@users.noreply.github.com> * add manipulator section for settings registry paths Signed-off-by: Tom Hulton-Harrop <82228511+hultonha@users.noreply.github.com> * fix for failing unit test after manipulator changes Signed-off-by: Tom Hulton-Harrop <82228511+hultonha@users.noreply.github.com> * fix total scale Signed-off-by: Tom Hulton-Harrop <82228511+hultonha@users.noreply.github.com> * fix for polygon prism component shape tests Signed-off-by: Tom Hulton-Harrop <82228511+hultonha@users.noreply.github.com>
59 lines
1.8 KiB
C++
59 lines
1.8 KiB
C++
/*
|
|
* Copyright (c) Contributors to the Open 3D Engine Project.
|
|
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "Include/IPreferencesPage.h"
|
|
#include <AzCore/Math/Vector3.h>
|
|
#include <AzCore/RTTI/RTTI.h>
|
|
#include <AzCore/Serialization/EditContext.h>
|
|
#include <AzCore/Serialization/SerializeContext.h>
|
|
#include <QIcon>
|
|
|
|
class CEditorPreferencesPage_ViewportManipulator : public IPreferencesPage
|
|
{
|
|
public:
|
|
AZ_RTTI(CEditorPreferencesPage_ViewportManipulator, "{14433511-8175-4348-954E-82D903475B06}", IPreferencesPage)
|
|
|
|
static void Reflect(AZ::SerializeContext& serialize);
|
|
|
|
CEditorPreferencesPage_ViewportManipulator();
|
|
virtual ~CEditorPreferencesPage_ViewportManipulator() = default;
|
|
|
|
const char* GetCategory() override;
|
|
const char* GetTitle() override;
|
|
QIcon& GetIcon() override;
|
|
void OnApply() override;
|
|
void OnCancel() override;
|
|
bool OnQueryCancel() override;
|
|
|
|
private:
|
|
void InitializeSettings();
|
|
|
|
struct Manipulators
|
|
{
|
|
AZ_TYPE_INFO(Manipulators, "{2974439C-4839-41F6-B526-F317999B9DB9}")
|
|
|
|
float m_manipulatorLineBoundWidth = 0.0f;
|
|
float m_manipulatorCircleBoundWidth = 0.0f;
|
|
float m_linearManipulatorAxisLength = 0.0f;
|
|
float m_planarManipulatorAxisLength = 0.0f;
|
|
float m_surfaceManipulatorRadius = 0.0f;
|
|
float m_surfaceManipulatorOpacity = 0.0f;
|
|
float m_linearManipulatorConeLength = 0.0f;
|
|
float m_linearManipulatorConeRadius = 0.0f;
|
|
float m_scaleManipulatorBoxHalfExtent = 0.0f;
|
|
float m_rotationManipulatorRadius = 0.0f;
|
|
float m_manipulatorViewBaseScale = 0.0f;
|
|
bool m_flipManipulatorAxesTowardsView = false;
|
|
};
|
|
|
|
Manipulators m_manipulators;
|
|
QIcon m_icon;
|
|
};
|