Choose your operating system:
Windows
macOS
Linux
| UObjectBase
|
Module |
|
Header |
/Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Mechanics/SpaceCurveDeformationMechanic.h |
Include |
#include "Mechanics/SpaceCurveDeformationMechanic.h" |
UCLASS()
class USpaceCurveDeformationMechanic :
public UInteractionMechanic,
public IClickBehaviorTarget,
public IHoverBehaviorTarget
Name | Description | ||
---|---|---|---|
|
bAddToSelectionToggle |
Support for Shift and Ctrl toggles. |
|
|
bGizmoBeingDragged |
Used to make it easy to tell whether the gizmo was moved by the user or by undo/redo or some other change that we shoulnd't respond to. |
|
|
bRenderGeometryValid |
||
|
bSpatialValid |
||
|
CameraState |
Support for hovering. |
|
|
TObjectPtr< USi... |
ClickBehavior |
Behaviors used for moving points around and hovering them. |
|
CtrlModifierId |
||
|
CurrentChangeStamp |
Used for expiring undo/redo changes, which compare this to their stored value and expire themselves if they do not match. |
|
|
CurrentPointsColor |
||
|
CurrentSegmentsColor |
||
|
CurvePoints |
||
|
TSharedPtr< FSp... |
CurveSource |
|
|
CurveStartPositions |
We need the selected point start positions so we can move multiple points appropriately. |
|
|
float |
DepthBias |
|
|
TSharedPtr< FSp... |
EmptyCurveSource |
|
|
GeometrySet |
Used for spatial queries. |
|
|
GeometrySetToleranceTest |
||
|
GizmoStartPosition |
The starting point of the gizmo is needed to determine the offset by which to move the points. |
|
|
TObjectPtr< UMo... |
HoverBehavior |
|
|
HoverColor |
||
|
HoveredPointID |
||
|
NormalCurveColor |
Variables for drawing. |
|
|
OnPointsChanged |
||
|
float |
PointsSize |
|
|
TObjectPtr< UCo... |
PointTransformGizmo |
|
|
TObjectPtr< UTr... |
PointTransformProxy |
Support for gizmo. |
|
PreviewColor |
||
|
TObjectPtr< APr... |
PreviewGeometryActor |
Used for displaying points/segments |
|
TObjectPtr< UPo... |
RenderPoints |
|
|
TObjectPtr< ULi... |
RenderSegments |
|
|
float |
SegmentsThickness |
|
|
SelectedColor |
||
|
SelectedPointIDs |
Support for selection. |
|
|
ShiftModifierId |
||
|
TObjectPtr< USp... |
TransformProperties |
Name | Description | |
---|---|---|
|
~USpaceCurveDeformationMechanic() |
Some other standard functions. |
Name | Description | ||
---|---|---|---|
|
ChangeSelection |
These issue undo/redo change objects, and must therefore not be called in undo/redo code. |
|
|
ClearCurveSource() |
||
|
ClearHover() |
||
|
ClearSelection() |
||
|
DeselectPoint ( |
||
|
GetCurrentCurvePoints ( |
||
|
GizmoTransformChanged ( |
Callbacks we'll receive from the gizmo proxy. |
|
|
GizmoTransformEnded ( |
||
|
GizmoTransformStarted ( |
||
|
HitTest ( |
All of the following do not issue undo/redo change objects. |
|
|
SelectionClear() |
||
|
SelectionFill() |
||
|
SelectionGrowToEnd() |
||
|
SelectionGrowToNext() |
||
|
SelectionGrowToPrev() |
||
|
SelectionGrowToStart() |
||
|
SelectPoint ( |
||
|
SetCurveSource ( |
||
|
SetWorld ( |
||
|
UpdateCurve ( |
||
|
UpdateGizmoLocation() |
||
|
UpdateRenderGeometry() |
||
|
UpdateSelection |
||
|
UpdateSpatial() |
Name | Description | ||
---|---|---|---|
|
Render ( |
Allow the Mechanic to do any custom drawing (ie via PDI/RHI) |
|
|
Setup ( |
Called to initialize the InteractionMechanic |
|
|
Shutdown() |
Called to clean up the InteractionMechanic |
|
|
Tick ( |
ALlow the Mechanic to Tick |
Name | Description | ||
---|---|---|---|
|
IsHitByClick ( |
IClickBehaviorTarget implementation. |
|
|
OnClicked ( |
Notify Target that click ocurred |
Name | Description | ||
---|---|---|---|
|
OnUpdateModifierState ( |
IModifierToggleBehaviorTarget implementation, inherited through IClickBehaviorTarget. |
Name | Description | ||
---|---|---|---|
|
BeginHoverSequenceHitTest ( |
IHoverBehaviorTarget implementation. |
|
|
OnBeginHover ( |
Initialize hover sequence at given position |
|
|
OnEndHover() |
Terminate active hover sequence |
|
|
OnUpdateHover ( |
Update active hover sequence with new input position |
Name |
Description |
---|---|
OnPointsChangedEvent |
This delegate is called every time the control point sequence is altered. |