UMeshAttributePaintTool

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

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

MeshModelingTools

Header

/Engine/Plugins/Experimental/MeshModelingToolset/Source/MeshModelingTools/Public/MeshAttributePaintTool.h

Include

#include "MeshAttributePaintTool.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)()
class UMeshAttributePaintTool : public UDynamicMeshBrushTool

Remarks

UMeshAttributePaintTool paints single-channel float attributes on a MeshDescription.

Variables

Name Description

Protected variable

TUniquePtr< TIn...

 

ActiveChangeBuilder

Protected variable

IToolsContextAs...

 

AssetAPI

Protected variable UProperty

UMeshAttributeP...

 

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

bool

 

bStampPending

Protected variable

bool

 

bVisibleAttributeValid

Protected variable

TUniquePtr< FFl...

 

ColorMapper

Protected variable

int32

 

CurrentAttributeIndex

Protected variable

FInterval1f

 

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

TDynamicVertice...

 

VerticesOctree

Functions

Name Description

Protected function Virtual

void

 

ApplyAction

(
    EMeshAttributePaintToolActions Acti...
)

Protected function Virtual

void

 

ApplyStamp

(
    const FBrushStampData& Stamp
)

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

 

SetAssetAPI

(
    IToolsContextAssetAPI* AssetAP...
)

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

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