Navigation
API > API/Plugins > API/Plugins/MeshModelingToolsExp
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UInteractiveTool
- USingleSelectionTool
- UMeshSurfacePointTool
- UMeshSculptToolBase
- UMeshGroupPaintTool
References
| Module | MeshModelingToolsExp |
| Header | /Engine/Plugins/Experimental/MeshModelingToolsetExp/Source/MeshModelingToolsExp/Public/MeshGroupPaintTool.h |
| Include | #include "MeshGroupPaintTool.h" |
Syntax
UCLASS&40;&41;
class UMeshGroupPaintTool : public UMeshSculptToolBase
Remarks
Mesh Element Paint Tool Class
Variables
| Type | Name | Description | |
|---|---|---|---|
| TSet< int32 > | AccumulatedTriangleROI | ||
| TUniquePtr< FDynamicMeshGroupEditBuilder > | ActiveGroupEditBuilder | ||
| TUniquePtr< UE::Geometry::FPolygroupSet > | ActiveGroupSet | ||
| bool | bDrawGroupsDataValid | ||
| bool | bHavePendingAction | ||
| bool | bPendingPickGroup | ||
| bool | bPendingToggleFreezeGroup | ||
| bool | bUndoUpdatePending | ||
| TObjectPtr< UDynamicMeshComponent > | DynamicMeshComponent | ||
| TObjectPtr< UGroupPaintBrushFilterProperties > | FilterProperties | Filters on paint brush | |
| TObjectPtr< UMeshGroupPaintToolFreezeActions > | FreezeActions | ||
| TArray< int32 > | FrozenGroups | ||
| UE::Geometry::FGroupVisualizationCache | GroupVisualizationCache | ||
| TObjectPtr< UMeshElementsVisualizer > | MeshElementsDisplay | ||
| TArray< int > | NormalsBuffer | ||
| TArray< int32 > | NormalSeamEdges | ||
| UE::Geometry::FDynamicMeshOctree3 | Octree | ||
| FDelegateHandle | OnDynamicMeshComponentChangedHandle | ||
| EMeshGroupPaintToolActions | PendingAction | ||
| EMeshGroupPaintBrushType | PendingStampType | ||
| TObjectPtr< UPolygroupLayersProperties > | PolygroupLayerProperties | ||
| TObjectPtr< UPolyLassoMarqueeMechanic > | PolyLassoMechanic | Marquee Support | |
| TObjectPtr< AInternalToolFrameworkActor > | PreviewMeshActor | Internals | |
| TArray< int32 > | ROIGroupBuffer | ||
| TArray< int32 > | ROITriangleBuffer | ||
| TArray< int > | TempROIBuffer | ||
| TSet< int > | TriangleROI | ||
| TArray< FVector3d > | TriNormals | ||
| TArray< int32 > | UVSeamEdges | ||
| TArray< int > | VertexROI | ||
| TSet< int > | VertexSetBuffer | ||
| TArray< bool > | VisibilityFilterBuffer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | |||
| void | ApplyAction
(
EMeshGroupPaintToolActions ActionType |
||
| bool | ApplyStamp () |
||
| void | ApplyVisibilityFilter
(
const TArray< int32 >& Triangles, |
||
| void | ApplyVisibilityFilter
(
TSet< int32 >& Triangles, |
||
| void | BeginChange () |
||
| void | |||
| void | |||
| void | |||
| void | EmitFrozenGroupsChange
(
const TArray< int32 >& FromGroups, |
||
| void | EndChange () |
||
| void | |||
| void | FreezeOtherGroups
(
int32 GroupID |
||
| FColor | GetColorForGroup
(
int32 GroupID |
||
| bool | |||
| void | |||
| bool | |||
| bool | |||
| void | Realtime visualization | ||
| void | OnPolyLassoFinished
(
const FCameraPolyLasso& Lasso, |
||
| void | |||
| void | |||
| void | RequestAction
(
EMeshGroupPaintToolActions ActionType |
Action support | |
| void | SetTrianglesToGroupID
(
const TSet< int32 >& Triangles, |
||
| void | |||
| bool | SyncMeshWithGroupBuffer
(
FDynamicMesh3* Mesh |
||
| void | ToggleFrozenGroup
(
int32 GroupID |
||
| void | |||
| bool | UpdateBrushPosition
(
const FRay& WorldRay |
||
| void | UpdateBrushType
(
EMeshGroupPaintBrushType BrushType |
||
| void | UpdateROI
(
const FSculptBrushStamp& CurrentStamp |
||
| bool | UpdateStampPosition
(
const FRay& WorldRay |
||
| void | UpdateSubToolType
(
EMeshGroupPaintInteractionType NewType |
||
| void |
Overridden from UMeshSculptToolBase
| Type | Name | Description | |
|---|---|---|---|
| void | CommitResult
(
UBaseDynamicMeshComponent* Component, |
Subclass can override this to change what results are written. | |
| void | |||
| void | |||
| int32 | FindHitSculptMeshTriangle
(
const FRay3d& LocalRay |
||
| int32 | FindHitTargetMeshTriangle
(
const FRay3d& LocalRay |
||
| TUniquePtr< FMeshSculptBrushOp > & | |||
| FDynamicMesh3 * | GetBaseMesh () |
||
| const FDynamicMesh3 * | GetBaseMesh () |
||
| UBaseDynamicMeshComponent * | UMeshSculptToolBase API. | ||
| void | We override these so we can update the separate BrushSize property added for this tool | ||
| void | |||
| void | OnBeginStroke
(
const FRay& WorldRay |
||
| void | OnEndStroke () |
||
| bool |
Overridden from UInteractiveTool
| Type | Name | Description | |
|---|---|---|---|
| bool | CanAccept () |
||
| void | DrawHUD
(
FCanvas* Canvas, |
Allow the Tool to do any custom screen space drawing | |
| bool | HasAccept () |
||
| bool | HasCancel () |
||
| void | OnPropertyModified
(
UObject* PropertySet, |
Automatically called by UInteractiveToolPropertySet.OnModified delegate to notify Tool of child property set changes | |
| 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 () |
Register InputBehaviors, etc | |
| void | Shutdown
(
EToolShutdownType ShutdownType |
Called by ToolManager to shut down the Tool |
Overridden from IHoverBehaviorTarget
| Type | Name | Description | |
|---|---|---|---|
| bool | OnUpdateHover
(
const FInputDeviceRay& DevicePos |
Update active hover sequence with new input position |