Navigation
API > API/Plugins > API/Plugins/MeshModelingTools
UMeshAttributePaintTool paints single-channel float attributes on a MeshDescription or DynamicMesh
| Name | UMeshAttributePaintTool |
| Type | class |
| Header File | /Engine/Plugins/Runtime/MeshModelingToolset/Source/MeshModelingTools/Public/MeshAttributePaintTool.h |
| Include Path | #include "MeshAttributePaintTool.h" |
Syntax
UCLASS (MinimalAPI)
class UMeshAttributePaintTool :
public UDynamicMeshBrushTool ,
public IInteractiveToolManageGeometrySelectionAPI
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UInteractiveTool → USingleSelectionTool → UMeshSurfacePointTool → UBaseBrushTool → UDynamicMeshBrushTool → UMeshAttributePaintTool
Implements Interfaces
- IClickDragBehaviorTarget
- IModifierToggleBehaviorTarget
- IHoverBehaviorTarget
- IInputBehaviorSource
- IInteractiveToolCameraFocusAPI
- IInteractiveToolManageGeometrySelectionAPI
Structs
| Name | Remarks |
|---|---|
| FAttributeData | |
| FBrushActionData | |
| FStampActionData |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| GeometrySelection | TOptional< UE::Geometry::FGeometrySelection > | MeshAttributePaintTool.h | ||
| SelectionTids | TSet< int32 > | MeshAttributePaintTool.h | ||
| SelectionVids | TSet< int32 > | MeshAttributePaintTool.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UE::Geometry::TDynamicVerticesOctree3< FDynamicMesh3 > & GetVerticesOctree() |
MeshAttributePaintTool.h | ||
virtual void RequestAction
(
EMeshAttributePaintToolActions ActionType |
MeshAttributePaintTool.h | ||
virtual void SetColorMap
(
TUniquePtr< FFloatAttributeColorMapper > ColorMap |
MeshAttributePaintTool.h | ||
void SetGeometrySelection
(
const UE::Geometry::FGeometrySelection& SelectionIn |
MeshAttributePaintTool.h | ||
virtual void SetWorld
(
UWorld* World |
MeshAttributePaintTool.h |
Overridden from UMeshSurfacePointTool
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool HitTest
(
const FRay& Ray, |
UMeshSurfacePointTool. | MeshAttributePaintTool.h | |
virtual void OnBeginDrag
(
const FRay& Ray |
MeshAttributePaintTool.h | ||
virtual void OnEndDrag
(
const FRay& Ray |
MeshAttributePaintTool.h | ||
virtual void OnUpdateDrag
(
const FRay& Ray |
MeshAttributePaintTool.h |
Overridden from UInteractiveTool
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool HasAccept() |
MeshAttributePaintTool.h | ||
virtual bool HasCancel() |
MeshAttributePaintTool.h | ||
virtual void OnTick
(
float DeltaTime |
MeshAttributePaintTool.h | ||
virtual void RegisterActions
(
FInteractiveToolActionSet& ActionSet |
MeshAttributePaintTool.h | ||
virtual void Setup() |
MeshAttributePaintTool.h |
Overridden from IHoverBehaviorTarget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool OnUpdateHover
(
const FInputDeviceRay& DevicePos |
MeshAttributePaintTool.h |
Overridden from IInteractiveToolManageGeometrySelectionAPI
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool IsInputSelectionValidOnOutput() |
IInteractiveToolManageGeometrySelectionAPI this tool won't update external geometry selection or change selection-relevant mesh IDs. | MeshAttributePaintTool.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ApplyAction
(
EMeshAttributePaintToolActions ActionType |
MeshAttributePaintTool.h | ||
virtual void ApplyStamp
(
const FBrushStampData& Stamp |
MeshAttributePaintTool.h | ||
virtual void ApplyStamp_FloodFill
(
const FBrushStampData& Stamp, |
MeshAttributePaintTool.h | ||
virtual void ApplyStamp_Paint
(
const FBrushStampData& Stamp, |
MeshAttributePaintTool.h | ||
void BeginChange() |
MeshAttributePaintTool.h | ||
double CalculateBrushFalloff
(
double Distance |
MeshAttributePaintTool.h | ||
void CalculateVertexROI
(
const FBrushStampData& Stamp, |
MeshAttributePaintTool.h | ||
TUniquePtr< FMeshAttributePaintChange > EndChange() |
MeshAttributePaintTool.h | ||
| MeshAttributePaintTool.h | |||
void InitializeAttributes() |
MeshAttributePaintTool.h | ||
void StoreCurrentAttribute() |
MeshAttributePaintTool.h | ||
void UpdateSelectedAttribute
(
int32 NewSelectedIndex |
MeshAttributePaintTool.h | ||
void UpdateVisibleAttribute() |
MeshAttributePaintTool.h |
Overridden from UDynamicMeshBrushTool
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnShutdown
(
EToolShutdownType ShutdownType |
Subclasses can override these to customize behavior | MeshAttributePaintTool.h |