Implementation of the viewport interaction model to handle viewport interaction requests. More...
#include <ViewportInteraction.h>
Inherits AzManipulatorTestFramework::ViewportInteractionInterface, AzToolsFramework::ViewportInteraction::ViewportInteractionRequestBus::Handler, UnitTest::ViewportSettingsTestImpl, and AzToolsFramework::ViewportInteraction::EditorEntityViewportInteractionRequestBus::Handler.
Public Member Functions | |
| ViewportInteraction (AZStd::shared_ptr< AzFramework::DebugDisplayRequests > debugDisplayRequests) | |
| void | SetCameraState (const AzFramework::CameraState &cameraState) override |
| Sets the camera state. | |
| AzFramework::DebugDisplayRequests & | GetDebugDisplay () override |
| Retrieves the debug display. | |
| void | SetGridSnapping (bool enabled) override |
| Sets if grid snapping is enabled or not. | |
| void | SetAngularSnapping (bool enabled) override |
| Sets if angular snapping is enabled or not. | |
| void | SetGridSize (float size) override |
| Sets the grid size. | |
| void | SetAngularStep (float step) override |
| Sets the angular step. | |
| AzFramework::ViewportId | GetViewportId () const override |
| Gets the viewport id. | |
| void | UpdateVisibility () override |
| void | SetStickySelect (bool enabled) override |
| Sets if sticky select is enabled or not. | |
| void | SetIconsVisible (bool visible) override |
| Sets if icons are visible in the viewport. | |
| void | SetHelpersVisible (bool visible) override |
| Sets if helpers are visible in the viewport. | |
| AzFramework::CameraState | GetCameraState () override |
| Returns the camera state. | |
| AzFramework::ScreenPoint | ViewportWorldToScreen (const AZ::Vector3 &worldPosition) override |
| AZ::Vector3 | ViewportScreenToWorld (const AzFramework::ScreenPoint &screenPosition) override |
| AzToolsFramework::ViewportInteraction::ProjectedViewportRay | ViewportScreenToWorldRay (const AzFramework::ScreenPoint &screenPosition) override |
| float | DeviceScalingFactor () override |
| void | FindVisibleEntities (AZStd::vector< AZ::EntityId > &visibleEntities) override |
Implementation of the viewport interaction model to handle viewport interaction requests.
|
overridevirtual |
Returns the camera state.
Implements AzManipulatorTestFramework::ViewportInteractionInterface.
|
overridevirtual |
Retrieves the debug display.
Implements AzManipulatorTestFramework::ViewportInteractionInterface.
|
overridevirtual |
Gets the viewport id.
Implements AzManipulatorTestFramework::ViewportInteractionInterface.
|
overridevirtual |
Sets if angular snapping is enabled or not.
Implements AzManipulatorTestFramework::ViewportInteractionInterface.
|
overridevirtual |
Sets the angular step.
Implements AzManipulatorTestFramework::ViewportInteractionInterface.
|
overridevirtual |
Sets the camera state.
Implements AzManipulatorTestFramework::ViewportInteractionInterface.
|
overridevirtual |
Sets the grid size.
Implements AzManipulatorTestFramework::ViewportInteractionInterface.
|
overridevirtual |
Sets if grid snapping is enabled or not.
Implements AzManipulatorTestFramework::ViewportInteractionInterface.
|
overridevirtual |
Sets if helpers are visible in the viewport.
Implements AzManipulatorTestFramework::ViewportInteractionInterface.
|
overridevirtual |
Sets if icons are visible in the viewport.
Implements AzManipulatorTestFramework::ViewportInteractionInterface.
|
overridevirtual |
Sets if sticky select is enabled or not.
Implements AzManipulatorTestFramework::ViewportInteractionInterface.
|
overridevirtual |
Updates the visibility state. Updates which entities are currently visible given the current camera state.
Implements AzManipulatorTestFramework::ViewportInteractionInterface.