#include <WhiteBoxDrawShapeMode.h>
Inherits AzFramework::ViewportDebugDisplayEventBus::Handler, and EditorWhiteBoxDrawShapeModeRequestBus::Handler.
Public Member Functions | |
| AZ_CLASS_ALLOCATOR_DECL | DrawShapeMode (const AZ::EntityComponentIdPair &entityComponentIdPair) |
| void | NumericAppendDigit (char digit) override |
| void | NumericAppendDecimal () override |
| void | NumericNegate () override |
| void | NumericAppendOperatorPlus () override |
| void | NumericAppendOperatorMult () override |
| void | NumericAppendOperatorDiv () override |
| void | NumericBackspace () override |
| void | NumericConfirm () override |
| void | NumericCancel () override |
| bool | HandleMouseInteraction (const ModeMouseInteraction &mouse) |
| void | Display (const AZ::EntityComponentIdPair &, const AZ::Transform &, const IntersectionAndRenderData &, const AzFramework::ViewportInfo &, AzFramework::DebugDisplayRequests &) |
| void | Refresh () |
| Required by EditorWhiteBoxComponentMode variant dispatch. | |
| AZStd::vector< AzToolsFramework::ActionOverride > | PopulateActions (const AZ::EntityComponentIdPair &entityComponentIdPair) |
| Required by EditorWhiteBoxComponentMode variant dispatch. | |
DrawShapeMode implements Lumberyard-style click-drag-release-pull shape drawing inside the White Box component mode.
Interaction flow:
During the height-pull phase the depth can also be typed (Blender-style numeric entry, expressions allowed e.g. "-5+3"). The first digit/minus locks the mouse pull; Enter commits, Escape cancels the numeric entry. In Ctrl (boolean) mode the sign decides the operation: + adds, - carves.
|
inline |
Required by EditorWhiteBoxComponentMode variant dispatch. DrawShapeMode draws its own ghost preview through DisplayViewport (ViewportDebugDisplayEventBus), so the shared per-mode Display path is intentionally a no-op here.
| bool WhiteBox::DrawShapeMode::HandleMouseInteraction | ( | const ModeMouseInteraction & | mouse | ) |
Forward a raw mouse interaction event.