The specific ComponentMode responsible for handling box editing. More...
#include <BoxComponentMode.h>
Inherits AzToolsFramework::BaseShapeComponentMode.
Public Member Functions | |
BoxComponentMode (const AZ::EntityComponentIdPair &entityComponentIdPair, AZ::Uuid componentType, bool allowAsymmetricalEditing=false) | |
BoxComponentMode (const BoxComponentMode &)=delete | |
BoxComponentMode & | operator= (const BoxComponentMode &)=delete |
BoxComponentMode (BoxComponentMode &&)=delete | |
BoxComponentMode & | operator= (BoxComponentMode &&)=delete |
AZStd::string | GetComponentModeName () const override |
AZ::Uuid | GetComponentModeType () const override |
Public Member Functions inherited from AzToolsFramework::BaseShapeComponentMode | |
BaseShapeComponentMode (const AZ::EntityComponentIdPair &entityComponentIdPair, const AZ::Uuid componentType, bool allowAsymmetricalEditing=false) | |
BaseShapeComponentMode (const BaseShapeComponentMode &)=delete | |
BaseShapeComponentMode & | operator= (const BaseShapeComponentMode &)=delete |
BaseShapeComponentMode (BaseShapeComponentMode &&)=delete | |
BaseShapeComponentMode & | operator= (BaseShapeComponentMode &&)=delete |
void | Refresh () override |
AZStd::vector< AzToolsFramework::ActionOverride > | PopulateActionsImpl () override |
bool | HandleMouseInteraction (const AzToolsFramework::ViewportInteraction::MouseInteractionEvent &mouseInteraction) override |
ShapeComponentModeRequests::SubMode | GetShapeSubMode () const override |
void | SetShapeSubMode (ShapeComponentModeRequests::SubMode mode) override |
void | ResetShapeSubMode () override |
Public Member Functions inherited from AzToolsFramework::ComponentModeFramework::EditorBaseComponentMode | |
AZStd::vector< ActionOverride > | PopulateActions () final |
AZStd::vector< ViewportUi::ClusterId > | PopulateViewportUi () final |
Populate the Viewport UI widget for this ComponentMode. | |
void | PostHandleMouseInteraction () final |
ComponentModeRequestBus ... | |
Static Public Member Functions | |
static AZ_CLASS_ALLOCATOR_DECL void | Reflect (AZ::ReflectContext *context) |
static void | RegisterActions () |
static void | BindActionsToModes () |
static void | BindActionsToMenus () |
Static Public Member Functions inherited from AzToolsFramework::BaseShapeComponentMode | |
static AZ_CLASS_ALLOCATOR_DECL void | RegisterActions (const char *shapeName) |
static void | BindActionsToModes (const char *shapeName, const char *className) |
static void | BindActionsToMenus (const char *shapeName) |
Static Public Member Functions inherited from AzToolsFramework::ComponentModeFramework::EditorBaseComponentMode | |
static AZ_CLASS_ALLOCATOR_DECL void | Reflect (AZ::ReflectContext *context) |
static void | RegisterActions () |
static void | BindActionsToModes () |
static void | BindActionsToMenus () |
Additional Inherited Members | |
Static Public Attributes inherited from AzToolsFramework::BaseShapeComponentMode | |
static constexpr const char *const | DimensionsTooltip = "Switch to dimensions mode (1)" |
static constexpr const char *const | TranslationOffsetTooltip = "Switch to translation offset mode (2)" |
Protected Member Functions inherited from AzToolsFramework::BaseShapeComponentMode | |
void | SetupCluster () |
Protected Member Functions inherited from AzToolsFramework::ComponentModeFramework::EditorBaseComponentMode | |
AZ::EntityId | GetEntityId () const |
The EntityId this ComponentMode instance is associated with. | |
AZ::EntityComponentIdPair | GetEntityComponentIdPair () const |
AZ::ComponentId | GetComponentId () const final |
The ComponentId this ComponentMode instance is associated with. | |
AZ::Uuid | GetComponentType () const final |
The underlying Component type for this ComponentMode. | |
AZ::Uuid | GetComponentModeType () const |
virtual AZStd::vector< ViewportUi::ClusterId > | PopulateViewportUiImpl () |
Protected Attributes inherited from AzToolsFramework::BaseShapeComponentMode | |
ViewportUi::ClusterId | m_clusterId |
AZStd::array< ViewportUi::ButtonId, 2 > | m_buttonIds |
Id for viewport cluster used to switch between modes. | |
AZStd::array< AZStd::unique_ptr< BaseShapeViewportEdit >, 2 > | m_subModes |
ShapeComponentModeRequests::SubMode | m_subMode = ShapeComponentModeRequests::SubMode::Dimensions |
bool | m_allowAsymmetricalEditing = false |
AZ::Event< AzToolsFramework::ViewportUi::ButtonId >::Handler | m_modeSelectionHandler |
AZ::EntityComponentIdPair | m_entityComponentIdPair |
The specific ComponentMode responsible for handling box editing.