Open 3D Engine AzManipulatorTestFramework API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AzManipulatorTestFramework::ImmediateModeActionDispatcher Class Reference

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)
 
ImmediateModeActionDispatcherResetEvent ()
 Clear the current event state.
 
ImmediateModeActionDispatcherExpectTrue (bool result)
 Expect the expression to be true.
 
ImmediateModeActionDispatcherExpectFalse (bool result)
 Expect the expression to be false.
 
template<typename ActualT , typename ExpectedT >
ImmediateModeActionDispatcherExpectEq (const ActualT &actual, const ExpectedT &expected)
 Expect the two values to be equivalent.
 
template<typename ValueT , typename MatcherT >
ImmediateModeActionDispatcherExpectThat (const ValueT &value, const MatcherT &matcher)
 Expect the value to match the matcher.
 
ImmediateModeActionDispatcherGetEntityWorldTransform (AZ::EntityId entityId, AZ::Transform &transform)
 Get the world transform of the specified entity.
 
ImmediateModeActionDispatcherGetKeyboardModifiers (KeyboardModifiers &keyboardModifiers)
 
ImmediateModeActionDispatcherExecuteBlock (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 >
ImmediateModeActionDispatcherSetSnapToGrid (bool enabled)
 Enable/disable grid snapping.
 
ImmediateModeActionDispatcherGridSize (float size)
 Set the grid size.
 
ImmediateModeActionDispatcherSetStickySelect (bool enabled)
 Enable/disable sticky select.
 
ImmediateModeActionDispatcherLogActions (bool logging)
 Enable/disable action logging.
 
ImmediateModeActionDispatcherTrace (const char *format, const Args &... args)
 Output a trace debug message.
 
ImmediateModeActionDispatcherCameraState (const AzFramework::CameraState &cameraState)
 Set the camera state.
 
ImmediateModeActionDispatcherMouseLButtonDown ()
 Set the left mouse button down.
 
ImmediateModeActionDispatcherMouseLButtonUp ()
 Set the left mouse button up.
 
ImmediateModeActionDispatcherMouseMButtonDown ()
 Set the middle mouse button down.
 
ImmediateModeActionDispatcherMouseMButtonUp ()
 Set the middle mouse button up.
 
ImmediateModeActionDispatcherMouseRButtonDown ()
 Set the right mouse button down.
 
ImmediateModeActionDispatcherMouseRButtonUp ()
 Set the right mouse button up.
 
ImmediateModeActionDispatcherMouseLButtonDoubleClick ()
 Send a double click event.
 
ImmediateModeActionDispatcherKeyboardModifierDown (AzToolsFramework::ViewportInteraction::KeyboardModifier keyModifier)
 Set the keyboard modifier button down.
 
ImmediateModeActionDispatcherKeyboardModifierUp (AzToolsFramework::ViewportInteraction::KeyboardModifier keyModifier)
 Set the keyboard modifier button up.
 
ImmediateModeActionDispatcherMousePosition (const AzFramework::ScreenPoint &position)
 Set the mouse position to the specified screen space position.
 
ImmediateModeActionDispatcherExpectManipulatorBeingInteracted ()
 Expect the selected manipulator to be interacting.
 
ImmediateModeActionDispatcherExpectManipulatorNotBeingInteracted ()
 Do not expect the selected manipulator to be interacting.
 
ImmediateModeActionDispatcherSetEntityWorldTransform (AZ::EntityId entityId, const AZ::Transform &transform)
 Set the world transform of the specified entity.
 
ImmediateModeActionDispatcherSetSelectedEntity (AZ::EntityId entity)
 Select the specified entity.
 
ImmediateModeActionDispatcherSetSelectedEntities (const AzToolsFramework::EntityIdList &entities)
 Select the specified entities.
 
ImmediateModeActionDispatcherEnterComponentMode (const AZ::Uuid &uuid)
 Enter component mode for the specified component type's uuid.
 
ImmediateModeActionDispatcherEnterComponentMode ()
 Enter component mode for the specified component type.
 
ImmediateModeActionDispatcherDebugBreak ()
 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 >
virtual void SetSnapToGridImpl (bool enabled)=0
 
virtual void SetStickySelectImpl (bool enabled)=0
 
virtual void GridSizeImpl (float size)=0
 
virtual void CameraStateImpl (const AzFramework::CameraState &cameraState)=0
 
virtual void MouseLButtonDownImpl ()=0
 
virtual void MouseLButtonUpImpl ()=0
 
virtual void MouseMButtonDownImpl ()=0
 
virtual void MouseMButtonUpImpl ()=0
 
virtual void MouseRButtonDownImpl ()=0
 
virtual void MouseRButtonUpImpl ()=0
 
virtual void MouseLButtonDoubleClickImpl ()=0
 
virtual void MousePositionImpl (const AzFramework::ScreenPoint &position)=0
 
virtual void KeyboardModifierDownImpl (AzToolsFramework::ViewportInteraction::KeyboardModifier keyModifier)=0
 
virtual void KeyboardModifierUpImpl (AzToolsFramework::ViewportInteraction::KeyboardModifier keyModifier)=0
 
virtual void ExpectManipulatorBeingInteractedImpl ()=0
 
virtual void ExpectManipulatorNotBeingInteractedImpl ()=0
 
virtual void SetEntityWorldTransformImpl (AZ::EntityId entityId, const AZ::Transform &transform)=0
 
virtual void SetSelectedEntityImpl (AZ::EntityId entity)=0
 
virtual void SetSelectedEntitiesImpl (const AzToolsFramework::EntityIdList &entities)=0
 
virtual void EnterComponentModeImpl (const AZ::Uuid &uuid)=0
 
void Log (const char *format, const Args &... args)
 

Additional Inherited Members

- Protected Attributes inherited from AzManipulatorTestFramework::ActionDispatcher< ImmediateModeActionDispatcher >
bool m_logging
 

Detailed Description

Dispatches actions immediately to the manipulators.

Member Function Documentation

◆ CameraStateImpl()

void AzManipulatorTestFramework::ImmediateModeActionDispatcher::CameraStateImpl ( const AzFramework::CameraState &  cameraState)
overrideprotectedvirtual

◆ EnterComponentModeImpl()

void AzManipulatorTestFramework::ImmediateModeActionDispatcher::EnterComponentModeImpl ( const AZ::Uuid &  uuid)
overrideprotectedvirtual

◆ ExpectManipulatorBeingInteractedImpl()

void AzManipulatorTestFramework::ImmediateModeActionDispatcher::ExpectManipulatorBeingInteractedImpl ( )
overrideprotectedvirtual

◆ ExpectManipulatorNotBeingInteractedImpl()

void AzManipulatorTestFramework::ImmediateModeActionDispatcher::ExpectManipulatorNotBeingInteractedImpl ( )
overrideprotectedvirtual

◆ GetKeyboardModifiers()

ImmediateModeActionDispatcher * AzManipulatorTestFramework::ImmediateModeActionDispatcher::GetKeyboardModifiers ( KeyboardModifiers &  keyboardModifiers)
inline

Get the current state of the keyboard modifiers.

Note
Chained version - KeyboardModifiers is returned via an out param.

◆ GridSizeImpl()

void AzManipulatorTestFramework::ImmediateModeActionDispatcher::GridSizeImpl ( float  size)
overrideprotectedvirtual

◆ KeyboardModifierDownImpl()

void AzManipulatorTestFramework::ImmediateModeActionDispatcher::KeyboardModifierDownImpl ( KeyboardModifier  keyModifier)
overrideprotectedvirtual

◆ KeyboardModifierUpImpl()

void AzManipulatorTestFramework::ImmediateModeActionDispatcher::KeyboardModifierUpImpl ( KeyboardModifier  keyModifier)
overrideprotectedvirtual

◆ MouseLButtonDoubleClickImpl()

void AzManipulatorTestFramework::ImmediateModeActionDispatcher::MouseLButtonDoubleClickImpl ( )
overrideprotectedvirtual

◆ MouseLButtonDownImpl()

void AzManipulatorTestFramework::ImmediateModeActionDispatcher::MouseLButtonDownImpl ( )
overrideprotectedvirtual

◆ MouseLButtonUpImpl()

void AzManipulatorTestFramework::ImmediateModeActionDispatcher::MouseLButtonUpImpl ( )
overrideprotectedvirtual

◆ MouseMButtonDownImpl()

void AzManipulatorTestFramework::ImmediateModeActionDispatcher::MouseMButtonDownImpl ( )
overrideprotectedvirtual

◆ MouseMButtonUpImpl()

void AzManipulatorTestFramework::ImmediateModeActionDispatcher::MouseMButtonUpImpl ( )
overrideprotectedvirtual

◆ MousePositionImpl()

void AzManipulatorTestFramework::ImmediateModeActionDispatcher::MousePositionImpl ( const AzFramework::ScreenPoint &  position)
overrideprotectedvirtual

◆ MouseRButtonDownImpl()

void AzManipulatorTestFramework::ImmediateModeActionDispatcher::MouseRButtonDownImpl ( )
overrideprotectedvirtual

◆ MouseRButtonUpImpl()

void AzManipulatorTestFramework::ImmediateModeActionDispatcher::MouseRButtonUpImpl ( )
overrideprotectedvirtual

◆ SetEntityWorldTransformImpl()

void AzManipulatorTestFramework::ImmediateModeActionDispatcher::SetEntityWorldTransformImpl ( AZ::EntityId  entityId,
const AZ::Transform &  transform 
)
overrideprotectedvirtual

◆ SetSelectedEntitiesImpl()

void AzManipulatorTestFramework::ImmediateModeActionDispatcher::SetSelectedEntitiesImpl ( const AzToolsFramework::EntityIdList &  entities)
overrideprotectedvirtual

◆ SetSelectedEntityImpl()

void AzManipulatorTestFramework::ImmediateModeActionDispatcher::SetSelectedEntityImpl ( AZ::EntityId  entity)
overrideprotectedvirtual

◆ SetSnapToGridImpl()

void AzManipulatorTestFramework::ImmediateModeActionDispatcher::SetSnapToGridImpl ( bool  enabled)
overrideprotectedvirtual

◆ SetStickySelectImpl()

void AzManipulatorTestFramework::ImmediateModeActionDispatcher::SetStickySelectImpl ( bool  enabled)
overrideprotectedvirtual

The documentation for this class was generated from the following file: