UMeshAttributePaintTool

[UMeshAttributePaintTool](API\Plugins\MeshModelingToolsExp\UMeshAttributePaintTool) paints single-channel float attributes on a MeshDescription.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

MeshModelingToolsExp

Header

/Engine/Plugins/Experimental/MeshModelingToolsetExp/Source/MeshModelingToolsExp/Public/MeshAttributePaintTool.h

Include

#include "MeshAttributePaintTool.h"

Syntax

UCLASS()
class UMeshAttributePaintTool : public UDynamicMeshBrushTool

Remarks

UMeshAttributePaintTool paints single-channel float attributes on a MeshDescription.

Variables

Name Description

Protected variable

TUniquePtr< TIn...

 

ActiveChangeBuilder

Protected variable UProperty

TObjectPtr< UMe...

 

AttribProps

Protected variable

int32

 

AttributeBufferCount

Protected variable

TArray< FAttrib...

 

Attributes

Protected variable

TUniquePtr< IMe...

 

AttributeSource

Protected variable

bool

 

bHavePendingAction

Protected variable

bool

 

bInRemoveStroke

Protected variable

bool

 

bInSmoothStroke

Protected variable UProperty

TObjectPtr< UMe...

 

BrushActionProps

Protected variable

bool

 

bStampPending

Protected variable

bool

 

bVisibleAttributeValid

Protected variable

TUniquePtr< FFl...

 

ColorMapper

Protected variable

int32

 

CurrentAttributeIndex

Protected variable

UE::Geometry::F...

 

CurrentValueRange

Protected variable

TUniquePtr< FMe...

 

EditedMesh

Protected variable

FBrushStampData

 

LastStamp

Protected variable

EMeshAttributeP...

 

PendingAction

Protected variable

int32

 

PendingNewSelectedIndex

Protected variable

TArray< int >

 

PreviewBrushROI

Protected variable

TValueWatcher< ...

 

SelectedAttributeWatcher

Protected variable

FBrushStampData

 

StartStamp

Protected variable

UWorld *

 

TargetWorld

Protected variable

UE::Geometry::T...

 

VerticesOctree

Functions

Name Description

Protected function Virtual

void

 

ApplyAction

(
    EMeshAttributePaintToolActions Acti...
)

Protected function Virtual

void

 

ApplyStamp

(
    const FBrushStampData& Stamp
)

Protected function Virtual

void

 

ApplyStamp_FloodFill

(
    const FBrushStampData& Stamp,
    FStampActionData& ActionData
)

Protected function Virtual

void

 

ApplyStamp_Paint

(
    const FBrushStampData& Stamp,
    FStampActionData& ActionData
)

Protected function

void

 

BeginChange()

Protected function

double

 

CalculateBrushFalloff

(
    double Distance
)

Protected function

void

 

CalculateVertexROI

(
    const FBrushStampData& Stamp,
    TArray< int >& VertexROI
)

Protected function

TUniquePtr< ...

 

EndChange()

Protected function

void

 

ExternalUpdateValues

(
    int32 AttribIndex,
    const TArray< int32 >& VertexIndic...,
    const TArray< float >& NewValues
)

Protected function

void

 

InitializeAttributes()

Public function Virtual

void

 

RequestAction

(
    EMeshAttributePaintToolActions Acti...
)

Public function Virtual

void

 

SetColorMap

Public function Virtual

void

 

SetWorld

(
    UWorld* World
)

Protected function

void

 

StoreCurrentAttribute()

Protected function

void

 

UpdateSelectedAttribute

(
    int32 NewSelectedIndex
)

Protected function

void

 

UpdateVisibleAttribute()

Overridden from UDynamicMeshBrushTool

Name Description

Protected function Virtual

void

 

OnShutdown

(
    EToolShutdownType ShutdownType
)

Subclasses can override these to customize behavior

Overridden from UMeshSurfacePointTool

Name Description

Public function Virtual

void

 

OnBeginDrag

(
    const FRay& Ray
)

UMeshSurfacePointTool implementation

Public function Virtual

void

 

OnEndDrag

(
    const FRay& Ray
)

This function is called when the user releases the button driving a click-drag-release interaction

Public function Virtual

void

 

OnUpdateDrag

(
    const FRay& Ray
)

This function is called each frame that the user is in a click-drag-release interaction

Overridden from UInteractiveTool

Name Description

Public function Virtual Const

bool

 

HasAccept()

Public function Virtual Const

bool

 

HasCancel()

Public function Virtual

void

 

OnTick

(
    float DeltaTime
)

Action support/system

Public function Virtual

void

 

RegisterActions

(
    FInteractiveToolActionSet& ActionS...
)

Override this function to register the set of Actions this Tool supports, using FInteractiveToolActionSet::RegisterAction.

Public function Virtual

void

 

Setup()

Register InputBehaviors, etc

Overridden from IHoverBehaviorTarget

Name Description

Public function Virtual

bool

 

OnUpdateHover

(
    const FInputDeviceRay& DevicePos
)

Update active hover sequence with new input position

Classes

Name

Description

Protected struct

FAttributeData

Protected struct

FStampActionData