Navigation
API > API/Plugins > API/Plugins/ModelingComponents > API/Plugins/ModelingComponents/Mechanics
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- URectangleMarqueeInteraction
References
| Module | ModelingComponents |
| Header | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Mechanics/RectangleMarqueeMechanic.h |
| Include | #include "Mechanics/RectangleMarqueeMechanic.h" |
Syntax
UCLASS&40;&41;
class URectangleMarqueeInteraction :
public UObject,
public IClickDragBehaviorTarget
Remarks
URectangleMarqueeInteraction is a simplified version of URectangleMarqueeMechanic that is not a UInteractionMechanic, which requires a base Tool/ToolManager. This variant does not create it's own InputBehavior, but is still a ClickDragBehaviorTarget.
DrawHUD() must be called by the owning code.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bIsDragging | ||
| FCameraRectangle | CameraRectangle | ||
| FViewCameraState | CurrentCameraState | ||
| OnDragRectangleChangedEvent | OnDragRectangleChanged | ||
| OnDragRectangleFinishedEvent | OnDragRectangleFinished | ||
| FSimpleMulticastDelegate | OnDragRectangleStarted | OnDragRectangleStarted is called when user starts dragging a new rectangle. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | DrawHUD
(
FCanvas* Canvas, |
Overridden from IClickDragBehaviorTarget
| Type | Name | Description | |
|---|---|---|---|
| FInputRayHit | CanBeginClickDragSequence
(
const FInputDeviceRay& PressPos |
Test if target can begin click-drag interaction at this point | |
| void | OnClickDrag
(
const FInputDeviceRay& DragPos |
Notify Target that input position has changed | |
| void | OnClickPress
(
const FInputDeviceRay& PressPos |
Notify Target that click press ocurred | |
| void | OnClickRelease
(
const FInputDeviceRay& ReleasePos |
Notify Target that click release occurred | |
| void | Notify Target that click-drag sequence has been explicitly terminated (eg by escape key) |
Typedefs
| Name | Description |
|---|---|
| OnDragRectangleChangedEvent | OnDragRectangleChanged is called as the user drags the other corner of the rectangle around. |
| OnDragRectangleFinishedEvent | OnDragRectangleFinished is called once the user lets go of the mouse button after dragging out a rectangle. |