Choose your operating system:
Windows
macOS
Linux
| UObjectBase
|
Module |
|
Header |
/Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Mechanics/RectangleMarqueeMechanic.h |
Include |
#include "Mechanics/RectangleMarqueeMechanic.h" |
UCLASS()
class URectangleMarqueeMechanic :
public UInteractionMechanic,
public IClickDragBehaviorTarget
Mechanic for a rectangle "marquee" selection. It creates and maintains the 2D rectangle associated with a mouse drag. It does not test against any scene geometry, nor does it maintain any sort of list of selected objects.
When using this mechanic, you should call Render() on it in the tool's Render() call so that it can cache necessary camera state, and DrawHUD() in the tool's DrawHUD() call so that it can draw the box.
Attach to the mechanic's delegates and use the passed rectangle to test against your geometry.
Name | Description | ||
---|---|---|---|
|
BasePriority |
||
|
bUseExternalClickDragBehavior |
If true, then the URectangleMarqueeMechanic will not create an internal UClickDragInputBehavior in Setup(), allowing the client to control the marquee with an external InputBehavior that uses the marquee mechanic as it's IClickDragBehaviorTarget. |
|
|
CameraRectangle |
||
|
TObjectPtr< UCl... |
ClickDragBehavior |
|
|
OnDragRectangleChanged |
||
|
double |
OnDragRectangleChangedDeferredThreshold |
If the computation time for a single call to OnDragRectangleChanged ever exceeds this threshold then future calls to this function (in the current drag sequence) will be deferred until the mouse button is released. |
|
OnDragRectangleFinished |
||
|
FSimpleMulticas... |
OnDragRectangleStarted |
Called when user starts dragging a new rectangle. |
Name | Description | ||
---|---|---|---|
|
DrawHUD ( |
||
|
GetPriorityRange() |
Gets the current priority range used by behaviors in the mechanic, higher priority to lower. |
|
|
IsEnabled() |
||
|
SetBasePriority ( |
Sets the base priority so that users can make sure that their own behaviors are higher priority. |
|
|
SetIsEnabled ( |
Name | Description | ||
---|---|---|---|
|
Render ( |
Allow the Mechanic to do any custom drawing (ie via PDI/RHI) |
|
|
Setup ( |
Name |
Description |
---|---|
OnDragRectangleChangedEvent |
Called as the user drags the other corner of the rectangle around. |
OnDragRectangleFinishedEvent |
Called once the user lets go of the mouse button after dragging out a rectangle. |