UCollectSurfacePathMechanic

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

ModelingComponents

Header

/Engine/Plugins/Experimental/MeshModelingToolset/Source/ModelingComponents/Public/Mechanics/CollectSurfacePathMechanic.h

Include

#include "Mechanics/CollectSurfacePathMechanic.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)()
class UCollectSurfacePathMechanic : public UInteractionMechanic

Variables

Name Description

Protected variable

bool

 

bCurrentPreviewWillComplete

Public variable

bool

 

bDrawPath

Protected variable

bool

 

bGeometricCloseOccurred

Protected variable

bool

 

bHaveTargetPlane

Protected variable

bool

 

bLoopWasClosed

Public variable

bool

 

bSnapToTargetMeshVertices

Public variable

double

 

ConstantSnapDistance

Protected variable

ECollectSurface...

 

DoneMode

Protected variable

int32

 

FixedPointTargetCount

Public variable

TArray< FFrame3...

 

HitPath

Public variable

TUniqueFunction...

 

IsDoneFunc

Public variable

FLinearColor

 

PathColor

Public variable

FLinearColor

 

PathCompleteColor

Public variable

FToolDataVisual...

 

PathDrawer

Public variable

FLinearColor

 

PreviewColor

Public variable

FFrame3d

 

PreviewPathPoint

Public variable

TUniqueFunction...

 

SpatialSnapPointsFunc

Protected variable

FFrame3d

 

TargetPlane

Protected variable

FDynamicMesh3

 

TargetSurface

Protected variable

FDynamicMeshAAB...

 

TargetSurfaceAABB

Constructors

Functions

Name Description

Protected function

bool

 

CheckGeometricClosure

(
    const FFrame3d& Point,
    bool* bLoopWasClosedOut
)

Public function Virtual

void

 

InitializeMeshSurface

(
    FDynamicMesh3&& TargetSurfaceMesh
)

Set the hit target mesh.

Public function Virtual

void

 

InitializePlaneSurface

(
    const FFrame3d& TargetPlane
)

Public function Virtual Const

bool

 

IsDone()

Public function Virtual

bool

 

IsHitByRay

(
    const FRay3d& Ray,
    FFrame3d& HitPoint
)

Public function Const

bool

 

LoopWasClosed()

Whether the path was finished by the user clicking on the first point

Public function Virtual

bool

 

PopLastPoint()

Protected function

bool

 

RayToPathPoint

(
    const FRay3d& Ray,
    FFrame3d& PointOut,
    bool bEnableSnapping
)

Public function Virtual

void

 

SetCloseWithLambdaMode()

Public function Virtual

void

 

SetDoubleClickOrCloseLoopMode()

Public function Virtual

void

 

SetDrawClosedLoopMode()

Public function Virtual

void

 

SetFixedNumPointsMode

(
    int32 NumPoints
)

Public function Virtual

bool

 

TryAddPointFromRay

(
    const FRay3d& Ray
)

Public function Virtual

bool

 

UpdatePreviewPoint

(
    const FRay3d& Ray
)

Overridden from UInteractionMechanic

Name Description

Public function Virtual

void

 

Render

(
    IToolsContextRenderAPI* Render...
)

Allow the Mechanic to do any custom drawing (ie via PDI/RHI)

Public function Virtual

void

 

Setup

(
    UInteractiveTool* ParentTool
)

Called to initialize the InteractionMechanic

Public function Virtual

void

 

Shutdown()

Called to clean up the InteractionMechanic

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss