Navigation
API > API/Plugins > API/Plugins/MeshModelingToolsExp
Inheritance Hierarchy
- UObject
- IInputBehaviorSource
- UInteractiveTool
- USingleSelectionTool
- UMeshSurfacePointTool
- UBaseBrushTool
- UDynamicMeshBrushTool
- UMeshAttributePaintTool
References
| Module | MeshModelingToolsExp |
| Header | /Engine/Plugins/Experimental/MeshModelingToolsetExp/Source/MeshModelingToolsExp/Public/MeshAttributePaintTool.h |
| Include | #include "MeshAttributePaintTool.h" |
Syntax
UCLASS ()
class UMeshAttributePaintTool :
public UDynamicMeshBrushTool ,
public IInteractiveToolManageGeometrySelectionAPI
Remarks
UMeshAttributePaintTool paints single-channel float attributes on a MeshDescription.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TUniquePtr< TIndexedValuesChangeBuilder< float, FMeshAttributePaintChange > > | ActiveChangeBuilder | ||
| TObjectPtr< UMeshAttributePaintToolProperties > | AttribProps | ||
| int32 | AttributeBufferCount | ||
| TArray< FAttributeData > | Attributes | ||
| TUniquePtr< IMeshVertexAttributeSource > | AttributeSource | ||
| bool | bHavePendingAction | ||
| bool | bInRemoveStroke | ||
| bool | bInSmoothStroke | ||
| TObjectPtr< UMeshAttributePaintBrushOperationProperties > | BrushActionProps | ||
| bool | bStampPending | ||
| bool | bVisibleAttributeValid | ||
| TUniquePtr< FFloatAttributeColorMapper > | ColorMapper | ||
| int32 | CurrentAttributeIndex | ||
| UE::Geometry::FInterval1f | CurrentValueRange | ||
| TUniquePtr< FMeshDescription > | EditedMesh | ||
| FBrushStampData | LastStamp | ||
| EMeshAttributePaintToolActions | PendingAction | ||
| int32 | PendingNewSelectedIndex | ||
| TArray< int > | PreviewBrushROI | ||
| TValueWatcher< int32 > | SelectedAttributeWatcher | ||
| FBrushStampData | StartStamp | ||
| UWorld * | TargetWorld | ||
| UE::Geometry::TDynamicVerticesOctree3< FDynamicMesh3 > | VerticesOctree |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ApplyAction
(
EMeshAttributePaintToolActions ActionType |
||
| void | ApplyStamp
(
const FBrushStampData& Stamp |
||
| void | ApplyStamp_FloodFill
(
const FBrushStampData& Stamp, |
||
| void | ApplyStamp_Paint
(
const FBrushStampData& Stamp, |
||
| void | BeginChange () |
||
| double | CalculateBrushFalloff
(
double Distance |
||
| void | CalculateVertexROI
(
const FBrushStampData& Stamp, |
||
| TUniquePtr< FMeshAttributePaintChange > | EndChange () |
||
| void | ExternalUpdateValues
(
int32 AttribIndex, |
||
| UE::Geometry::TDynamicVerticesOctree3< FDynamicMesh3 > & | |||
| void | |||
| void | RequestAction
(
EMeshAttributePaintToolActions ActionType |
||
| void | SetColorMap
(
TUniquePtr< FFloatAttributeColorMapper > ColorMap |
||
| void | |||
| void | |||
| void | UpdateSelectedAttribute
(
int32 NewSelectedIndex |
||
| void |
Overridden from UDynamicMeshBrushTool
| Type | Name | Description | |
|---|---|---|---|
| void | OnShutdown
(
EToolShutdownType ShutdownType |
Subclasses can override these to customize behavior |
Overridden from UMeshSurfacePointTool
| Type | Name | Description | |
|---|---|---|---|
| void | OnBeginDrag
(
const FRay& Ray |
UMeshSurfacePointTool implementation. | |
| void | This function is called when the user releases the button driving a click-drag-release interaction | ||
| void | OnUpdateDrag
(
const FRay& Ray |
This function is called each frame that the user is in a click-drag-release interaction |
Overridden from UInteractiveTool
| Type | Name | Description | |
|---|---|---|---|
| bool | HasAccept () |
||
| bool | HasCancel () |
||
| void | OnTick
(
float DeltaTime |
Allow the Tool to do any necessary processing on Tick | |
| void | RegisterActions
(
FInteractiveToolActionSet& ActionSet |
Override this function to register the set of Actions this Tool supports, using FInteractiveToolActionSet::RegisterAction. | |
| void | Setup () |
UInteractiveTool. |
Overridden from IHoverBehaviorTarget
| Type | Name | Description | |
|---|---|---|---|
| bool | OnUpdateHover
(
const FInputDeviceRay& DevicePos |
Update active hover sequence with new input position |
Overridden from IInteractiveToolManageGeometrySelectionAPI
| Type | Name | Description | |
|---|---|---|---|
| bool | IInteractiveToolManageGeometrySelectionAPI this tool won't update external geometry selection or change selection-relevant mesh IDs. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FAttributeData | |||
| FStampActionData |