Navigation
API > API/Plugins > API/Plugins/MeshModelingToolsEditorOnly
This class wraps the all the components to enable selection on a single mesh in the skin weights tool this allows us to make selections on multiple different meshes NOTE: at some point we may want to do component selections on multiple meshes in any/all viewports at which time this class should be centralized and renamed to UMeshSelector or something like that. But there will need to be some sort of centralized facility to manage that and make sure it interacts nicely with other tools.
| Name | UToolMeshSelector |
| Type | class |
| Header File | /Engine/Plugins/Runtime/MeshModelingToolset/Source/MeshModelingToolsEditorOnly/Public/ToolMeshSelector.h |
| Include Path | #include "ToolMeshSelector.h" |
Syntax
UCLASS (MinimalAPI)
class UToolMeshSelector : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UToolMeshSelector
Derived Classes
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| MeshSpatial | TUniquePtr< UE::Geometry::FDynamicMeshAABBTree3 > | ToolMeshSelector.h | ||
| ParentTool | TObjectPtr< UInteractiveTool > | ToolMeshSelector.h | ||
| PolygonSelectionMechanic | TObjectPtr< UPolygonSelectionMechanic > | ToolMeshSelector.h | ||
| PreviewMesh | TObjectPtr< UPreviewMesh > | ToolMeshSelector.h | ||
| SelectedVerticesInternal | TArray< VertexIndex > | ToolMeshSelector.h | ||
| SelectionTopology | TUniquePtr< UE::Geometry::FTriangleGroupTopology > | ToolMeshSelector.h | ||
| World | TObjectPtr< UWorld > | ToolMeshSelector.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void DrawHUD
(
FCanvas* Canvas, |
Viewport | ToolMeshSelector.h | |
void FloodSelection() |
ToolMeshSelector.h | ||
void GetSelectedTriangles
(
TArray< int32 >& OutTriangleIndices |
ToolMeshSelector.h | ||
const TArray< int32 > & GetSelectedVertices() |
Get a list of currently selected vertices (converting edges and faces to vertices) | ToolMeshSelector.h | |
UPolygonSelectionMechanic * GetSelectionMechanic() |
Get access to the selection mechanic | ToolMeshSelector.h | |
void GrowSelection() |
Edit selection | ToolMeshSelector.h | |
void InitialSetup
(
UWorld* InWorld, |
ToolMeshSelector.h | ||
void InitialSetup
(
UWorld* InWorld, |
Must be called during the Setup of the parent tool | ToolMeshSelector.h | |
bool IsAnyComponentSelected() |
ToolMeshSelector.h | ||
void Render
(
IToolsContextRenderAPI* RenderAPI |
ToolMeshSelector.h | ||
void SelectBorder() |
ToolMeshSelector.h | ||
void SetComponentSelectionMode
(
EComponentSelectionMode InMode |
ToolMeshSelector.h | ||
void SetIsEnabled
(
bool bIsEnabled |
ToolMeshSelector.h | ||
void SetMesh
(
UPreviewMesh* InMesh, |
Must be called AFTER InitialSetup, and any time the mesh is changed passing in a null preview mesh will disable the selector | ToolMeshSelector.h | |
void SetTransform
(
const FTransform3d& InTargetTransform |
ToolMeshSelector.h | ||
void ShrinkSelection() |
ToolMeshSelector.h | ||
void Shutdown() |
ToolMeshSelector.h | ||
void UpdateAfterMeshDeformation() |
ToolMeshSelector.h |