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 |
virtual AzFramework::CameraState | GetCameraState ()=0 |
Returns the camera state. | |
virtual void | SetCameraState (const AzFramework::CameraState &cameraState)=0 |
Sets the camera state. | |
virtual AzFramework::DebugDisplayRequests & | GetDebugDisplay ()=0 |
Retrieves the debug display. | |
virtual void | SetGridSnapping (bool enabled)=0 |
Sets if grid snapping is enabled or not. | |
virtual void | SetAngularSnapping (bool enabled)=0 |
Sets if angular snapping is enabled or not. | |
virtual void | SetGridSize (float size)=0 |
Sets the grid size. | |
virtual void | SetAngularStep (float step)=0 |
Sets the angular step. | |
virtual AzFramework::ViewportId | GetViewportId () const =0 |
Gets the viewport id. | |
virtual void | UpdateVisibility ()=0 |
virtual void | SetStickySelect (bool enabled)=0 |
Sets if sticky select is enabled or not. | |
virtual void | SetIconsVisible (bool visible)=0 |
Sets if icons are visible in the viewport. | |
virtual void | SetHelpersVisible (bool visible)=0 |
Sets if helpers are visible in the viewport. | |
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.