Dispatches actions immediately to the manipulators. More...
#include <ImmediateModeActionDispatcher.h>
Inherits AzManipulatorTestFramework::ActionDispatcher< ImmediateModeActionDispatcher >, AzToolsFramework::ViewportInteraction::EditorModifierKeyRequestBus::Handler, and AzToolsFramework::ViewportInteraction::EditorViewportInputTimeNowRequestBus::Handler.
Public Member Functions | |
| ImmediateModeActionDispatcher (ManipulatorViewportInteraction &manipulatorViewportInteraction) | |
| ImmediateModeActionDispatcher * | ResetEvent () |
| Clear the current event state. | |
| ImmediateModeActionDispatcher * | ExpectTrue (bool result) |
| Expect the expression to be true. | |
| ImmediateModeActionDispatcher * | ExpectFalse (bool result) |
| Expect the expression to be false. | |
| template<typename ActualT , typename ExpectedT > | |
| ImmediateModeActionDispatcher * | ExpectEq (const ActualT &actual, const ExpectedT &expected) |
| Expect the two values to be equivalent. | |
| template<typename ValueT , typename MatcherT > | |
| ImmediateModeActionDispatcher * | ExpectThat (const ValueT &value, const MatcherT &matcher) |
| Expect the value to match the matcher. | |
| ImmediateModeActionDispatcher * | GetEntityWorldTransform (AZ::EntityId entityId, AZ::Transform &transform) |
| Get the world transform of the specified entity. | |
| ImmediateModeActionDispatcher * | GetKeyboardModifiers (KeyboardModifiers &keyboardModifiers) |
| ImmediateModeActionDispatcher * | ExecuteBlock (const AZStd::function< void()> &blockFn) |
| Execute an arbitrary section of code inline in the action dispatcher. | |
| KeyboardModifiers | QueryKeyboardModifiers () override |
| AZStd::chrono::milliseconds | EditorViewportInputTimeNow () override |
Public Member Functions inherited from AzManipulatorTestFramework::ActionDispatcher< ImmediateModeActionDispatcher > | |
| ImmediateModeActionDispatcher * | SetSnapToGrid (bool enabled) |
| Enable/disable grid snapping. | |
| ImmediateModeActionDispatcher * | GridSize (float size) |
| Set the grid size. | |
| ImmediateModeActionDispatcher * | SetStickySelect (bool enabled) |
| Enable/disable sticky select. | |
| ImmediateModeActionDispatcher * | LogActions (bool logging) |
| Enable/disable action logging. | |
| ImmediateModeActionDispatcher * | Trace (const char *format, const Args &... args) |
| Output a trace debug message. | |
| ImmediateModeActionDispatcher * | CameraState (const AzFramework::CameraState &cameraState) |
| Set the camera state. | |
| ImmediateModeActionDispatcher * | MouseLButtonDown () |
| Set the left mouse button down. | |
| ImmediateModeActionDispatcher * | MouseLButtonUp () |
| Set the left mouse button up. | |
| ImmediateModeActionDispatcher * | MouseMButtonDown () |
| Set the middle mouse button down. | |
| ImmediateModeActionDispatcher * | MouseMButtonUp () |
| Set the middle mouse button up. | |
| ImmediateModeActionDispatcher * | MouseRButtonDown () |
| Set the right mouse button down. | |
| ImmediateModeActionDispatcher * | MouseRButtonUp () |
| Set the right mouse button up. | |
| ImmediateModeActionDispatcher * | MouseLButtonDoubleClick () |
| Send a double click event. | |
| ImmediateModeActionDispatcher * | KeyboardModifierDown (AzToolsFramework::ViewportInteraction::KeyboardModifier keyModifier) |
| Set the keyboard modifier button down. | |
| ImmediateModeActionDispatcher * | KeyboardModifierUp (AzToolsFramework::ViewportInteraction::KeyboardModifier keyModifier) |
| Set the keyboard modifier button up. | |
| ImmediateModeActionDispatcher * | MousePosition (const AzFramework::ScreenPoint &position) |
| Set the mouse position to the specified screen space position. | |
| ImmediateModeActionDispatcher * | ExpectManipulatorBeingInteracted () |
| Expect the selected manipulator to be interacting. | |
| ImmediateModeActionDispatcher * | ExpectManipulatorNotBeingInteracted () |
| Do not expect the selected manipulator to be interacting. | |
| ImmediateModeActionDispatcher * | SetEntityWorldTransform (AZ::EntityId entityId, const AZ::Transform &transform) |
| Set the world transform of the specified entity. | |
| ImmediateModeActionDispatcher * | SetSelectedEntity (AZ::EntityId entity) |
| Select the specified entity. | |
| ImmediateModeActionDispatcher * | SetSelectedEntities (const AzToolsFramework::EntityIdList &entities) |
| Select the specified entities. | |
| ImmediateModeActionDispatcher * | EnterComponentMode (const AZ::Uuid &uuid) |
| Enter component mode for the specified component type's uuid. | |
| ImmediateModeActionDispatcher * | EnterComponentMode () |
| Enter component mode for the specified component type. | |
| ImmediateModeActionDispatcher * | DebugBreak () |
| Break out to the debugger mid action sequence (note: do not leave uses in production code). | |
Protected Member Functions | |
| void | SetSnapToGridImpl (bool enabled) override |
| void | SetStickySelectImpl (bool enabled) override |
| void | GridSizeImpl (float size) override |
| void | CameraStateImpl (const AzFramework::CameraState &cameraState) override |
| void | MouseLButtonDownImpl () override |
| void | MouseLButtonUpImpl () override |
| void | MouseMButtonDownImpl () override |
| void | MouseMButtonUpImpl () override |
| void | MouseRButtonDownImpl () override |
| void | MouseRButtonUpImpl () override |
| void | MouseLButtonDoubleClickImpl () override |
| void | MousePositionImpl (const AzFramework::ScreenPoint &position) override |
| void | KeyboardModifierDownImpl (KeyboardModifier keyModifier) override |
| void | KeyboardModifierUpImpl (KeyboardModifier keyModifier) override |
| void | ExpectManipulatorBeingInteractedImpl () override |
| void | ExpectManipulatorNotBeingInteractedImpl () override |
| void | SetEntityWorldTransformImpl (AZ::EntityId entityId, const AZ::Transform &transform) override |
| void | SetSelectedEntityImpl (AZ::EntityId entity) override |
| void | SetSelectedEntitiesImpl (const AzToolsFramework::EntityIdList &entities) override |
| void | EnterComponentModeImpl (const AZ::Uuid &uuid) override |
Protected Member Functions inherited from AzManipulatorTestFramework::ActionDispatcher< ImmediateModeActionDispatcher > | |
| void | Log (const char *format, const Args &... args) |
Additional Inherited Members | |
Protected Attributes inherited from AzManipulatorTestFramework::ActionDispatcher< ImmediateModeActionDispatcher > | |
| bool | m_logging |
Dispatches actions immediately to the manipulators.
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
inline |
Get the current state of the keyboard modifiers.
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |