Tom Hulton-Harrop
e34ea3bcaa
Fixes for viewport selection issues ( #5494 )
...
* improvements to editor selection in the viewport
Signed-off-by: Tom Hulton-Harrop <82228511+hultonha@users.noreply.github.com >
* fix issue with being able to select icons that are not showing for entities inside entity containers
Signed-off-by: Tom Hulton-Harrop <82228511+hultonha@users.noreply.github.com >
* update comment after review feedback
Signed-off-by: Tom Hulton-Harrop <82228511+hultonha@users.noreply.github.com >
* updates to viewport picking code to simplify the api
Signed-off-by: Tom Hulton-Harrop <82228511+hultonha@users.noreply.github.com >
* add test to replicate near clip intersection issue
Signed-off-by: Tom Hulton-Harrop <82228511+hultonha@users.noreply.github.com >
* small tidy-up changes
Signed-off-by: Tom Hulton-Harrop <82228511+hultonha@users.noreply.github.com >
* updates to how we perform world to screen and screen to world calculations, added test coverage and some tidy-up
Signed-off-by: Tom Hulton-Harrop <82228511+hultonha@users.noreply.github.com >
* add some more tests for ViewportInteractionImpl
Signed-off-by: Tom Hulton-Harrop <82228511+hultonha@users.noreply.github.com >
* minor tweaks before PR feedback
Signed-off-by: Tom Hulton-Harrop <82228511+hultonha@users.noreply.github.com >
* fix typo in fix
Signed-off-by: Tom Hulton-Harrop <82228511+hultonha@users.noreply.github.com >
* fix for manipulator test framework tests
Signed-off-by: Tom Hulton-Harrop <82228511+hultonha@users.noreply.github.com >
* updates to RPI::View and RenderPipeline after review feedback from VickyAtAZ
Signed-off-by: Tom Hulton-Harrop <82228511+hultonha@users.noreply.github.com >
* add constexpr to ScreenPoint, ScreenVector and ScreenSize initializing constructors
Signed-off-by: Tom Hulton-Harrop <82228511+hultonha@users.noreply.github.com >
* add PrintTo functions for Screen* types
Signed-off-by: Tom Hulton-Harrop <82228511+hultonha@users.noreply.github.com >
* downgrade error to warning temporarily
Signed-off-by: Tom Hulton-Harrop <82228511+hultonha@users.noreply.github.com >
* check incoming view is null
Signed-off-by: Tom Hulton-Harrop <82228511+hultonha@users.noreply.github.com >
* remove pragma optimize off
Signed-off-by: Tom Hulton-Harrop <82228511+hultonha@users.noreply.github.com >
2021-11-17 17:12:21 +00:00
igarri
a3c3de4a76
AR fixes
...
Signed-off-by: igarri <igarri@amazon.com >
2021-10-18 16:33:47 +01:00
igarri
f6945f1334
Fixed Viewport Interaction
...
Signed-off-by: igarri <igarri@amazon.com >
2021-10-18 16:25:25 +01:00
hultonha
de9a27597b
Additional test support for Manipulator Ditto commands ( #4191 )
...
* additional test support for manipulator ditto
Signed-off-by: hultonha <hultonha@amazon.co.uk >
* tidy-up to changes
Signed-off-by: hultonha <hultonha@amazon.co.uk >
* fix for non-unity build compile error
Signed-off-by: hultonha <hultonha@amazon.co.uk >
2021-09-20 09:49:01 +01:00
hultonha
7e85b1512a
Expose sticky select option to the SettingsRegistry and disable by default ( #4149 )
...
* expose sticky select option to the SettingsRegistry
Signed-off-by: hultonha <hultonha@amazon.co.uk >
* update missed callsites after API change to Manipulator Test Framework
Signed-off-by: hultonha <hultonha@amazon.co.uk >
* updates following review feedback
Signed-off-by: hultonha <hultonha@amazon.co.uk >
2021-09-16 09:14:37 +01:00
hultonha
9d2352c3b7
Update the viewport interaction model to support single click select ( #4094 )
...
* add support for single click select
Signed-off-by: hultonha <hultonha@amazon.co.uk >
* remove redundant profile macro
Signed-off-by: hultonha <hultonha@amazon.co.uk >
* updates following review feedback
Signed-off-by: hultonha <hultonha@amazon.co.uk >
* fix behaviour for fallthrough to match previous code
Signed-off-by: hultonha <hultonha@amazon.co.uk >
2021-09-14 13:24:01 +01:00
hultonha
7a58b72f15
Add remaining integration tests for viewport selection (box select) ( #4075 )
...
* updates to viewport box select tests
Signed-off-by: hultonha <hultonha@amazon.co.uk >
* add interface for querying keyboard modifiers
Signed-off-by: hultonha <hultonha@amazon.co.uk >
* remove redundant casts
Signed-off-by: hultonha <hultonha@amazon.co.uk >
* update formatting options for trace functions in ActionDispatcher
Signed-off-by: hultonha <hultonha@amazon.co.uk >
* remove redundant GetKeyboardModifiers call
Signed-off-by: hultonha <hultonha@amazon.co.uk >
* update how trace/log functions have been fixed to output during tests
Signed-off-by: hultonha <hultonha@amazon.co.uk >
2021-09-13 15:19:46 +01:00
hultonha
d82b2a0608
Initial test coverage for viewport selection before introducing new 'single' select functionality ( #3987 )
...
* WIP changes for viewport single select and better integration tests
Signed-off-by: hultonha <hultonha@amazon.co.uk >
* update test to verify single click selection in the viewport
Signed-off-by: hultonha <hultonha@amazon.co.uk >
* temporarily remove changes for single select
Signed-off-by: hultonha <hultonha@amazon.co.uk >
* temporarily remove ChangeSelectedEntity call
Signed-off-by: hultonha <hultonha@amazon.co.uk >
* initial tests to validate current viewport selection model
Signed-off-by: hultonha <hultonha@amazon.co.uk >
* some tidy-up before publishing PR
Signed-off-by: hultonha <hultonha@amazon.co.uk >
* add reference to const type in loop
Signed-off-by: hultonha <hultonha@amazon.co.uk >
* temporarily disable box select test
Signed-off-by: hultonha <hultonha@amazon.co.uk >
2021-09-09 10:23:55 +01:00
hultonha
052ff90c9d
Preparatory work to allow for more viewport integration tests ( #3961 )
...
* preparatory work to allow for more viewport integration tests
Signed-off-by: hultonha <hultonha@amazon.co.uk >
* minor grammatical fix
Signed-off-by: hultonha <hultonha@amazon.co.uk >
* fix for missed bus call update
Signed-off-by: hultonha <hultonha@amazon.co.uk >
2021-09-08 09:36:04 +01:00
Esteban Papp
46c6923bf7
Enabling warnings around format security
...
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com >
2021-09-07 15:17:40 -07:00
Esteban Papp
d1df0fbe47
reverting one that was changed by mistake
...
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com >
2021-09-07 08:17:06 -07:00
hultonha
a374ea29f2
Expose setting to adjust angular manipulator circle bound ( #3932 )
...
* add debug drawing for angular manipulator bounds
Signed-off-by: hultonha <hultonha@amazon.co.uk >
* remove editor viewport settings from RenderViewport
Signed-off-by: hultonha <hultonha@amazon.co.uk >
* add setting for angular manipulator circle bound
Signed-off-by: hultonha <hultonha@amazon.co.uk >
* update minimum value allowed for some camera settings
Signed-off-by: hultonha <hultonha@amazon.co.uk >
* updates following review feedback, some small tidy-up
Signed-off-by: hultonha <hultonha@amazon.co.uk >
* update comment
Signed-off-by: hultonha <hultonha@amazon.co.uk >
2021-09-06 14:22:57 +01:00
Esteban Papp
522e4bff9e
Merge branch 'development' into cmake/warn_format_security
...
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com >
# Conflicts:
# cmake/Platform/Common/Clang/Configurations_clang.cmake
2021-09-03 11:10:40 -07:00
hultonha
5851031d2e
Expose the ability to control manipulator line bounds ( #3890 )
...
Signed-off-by: hultonha <hultonha@amazon.co.uk >
2021-09-03 10:14:03 +01:00
Artur K
567c0ae24d
Modernization + AZStd::function compare fix. ( #3680 )
...
* Modernization + small fix.
Modernize ( `bool`/`override`/other) code in AzCore, AzFramework, AzQtComponents, AzToolsFramework, etc.
Replaced a `bind` or two, use `using` in a few places as well.
Fix nullptr comparison of AZStd::function.
Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com >
* Apply review-based changes
Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com >
2021-09-02 14:55:09 -05:00
Esteban Papp
0df55c3a7f
enabling warn format security and some fixes
...
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com >
2021-08-30 16:10:08 -07:00
hultonha
7fbfda0371
Fix mouse capture behavior for Editor Viewport ( #3417 )
...
* first pass of fixes for cursor capture and context menu
Signed-off-by: hultonha <hultonha@amazon.co.uk >
* restore previous behavior of HandleMouseMoveEvent
Signed-off-by: hultonha <hultonha@amazon.co.uk >
* tidy-up from previous cursor/input changes
Signed-off-by: hultonha <hultonha@amazon.co.uk >
* add missing casts
Signed-off-by: hultonha <hultonha@amazon.co.uk >
* small updates to support tests
Signed-off-by: hultonha <hultonha@amazon.co.uk >
* additional tests and some tidy-up
Signed-off-by: hultonha <hultonha@amazon.co.uk >
* small updates before publishing PR (comment/naming updates)
Signed-off-by: hultonha <hultonha@amazon.co.uk >
* add missing parameter to MouseInteractionEvent constructor
Signed-off-by: hultonha <hultonha@amazon.co.uk >
2021-08-25 09:28:41 +01:00
Steve Pham
38261d0800
Shorten copyright headers by splitting into 2 lines ( #2213 )
...
* Updated all copyright headers to split the longer original copyright line into 2 shorter lines
Signed-off-by: Steve Pham <spham@amazon.com >
2021-07-16 15:25:48 -07:00
Steve Pham
b4a2edec6a
Final update copyright headers to reference license files at the repo root ( #1693 )
...
* Final update copyright headers to reference license files at the repo root
Signed-off-by: spham <spham@amazon.com >
* Fix copyright validator unit tests to support the stale O3DE header scenario
Signed-off-by: spham <spham@amazon.com >
2021-06-30 19:51:55 -07:00
Steve Pham
70042fcdcd
O3DE Copyright Updates for Linux Foundation ( #1504 )
2021-06-23 10:55:22 -07:00
Tom Hulton-Harrop
cf8a6761bf
Formatting-only change - Update Manipulator and Viewport AzToolsFramework files ( #1143 )
...
* formatting changes to AzToolsFramework viewport related types + API comment style updates
* minor format change - include ordering
* improve formatting by moving comment
* fix compile error and switch to use AZ_Printf
* small polish changes after review feedback
2021-06-07 14:50:49 +01:00
Tom Hulton-Harrop
05e20803a8
First pass for getting things ready for grid snap button ( #1118 )
...
* first pass of change to simplify snapping for snap-to-grid button and fix snapping bug caused by non-uniform scale
2021-06-04 14:32:06 +01:00
Nicholas Van Sickle
5e87250f67
Fix viewport icon rendering on high DPI devices ( #1006 )
...
* Clarify ViewportWorldToScreen being in widget space and add DeviceScalingFactor
* -Fix viewport icons being draw wrong on high DPI displays
-Fix loading viewport icons from absolute paths, which
* Address review feedback, fix build
2021-05-27 16:31:30 -07:00
hultonha
bb76bccc06
remove unneeded temporary
2021-05-04 17:55:09 +01:00
hultonha
a206896074
remove QPoint from lower-level interfaces, switch to use AzFramework::ScreenPoint
2021-05-04 17:32:47 +01:00
alexpete
75dc720198
Integrating latest 47acbe8
2021-03-25 13:57:57 -07:00
alexpete
a10351f38d
Initial commit
2021-03-08 14:30:57 -08:00