UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SelectionSet.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "Containers/Array.h"
6#include "Containers/Set.h"
7#include "CoreMinimal.h"
9#include "HAL/Platform.h"
10#include "UObject/Object.h"
13
14#include "SelectionSet.generated.h"
15
16class USelectionSet;
17
20
21
27UCLASS(Transient, MinimalAPI)
29{
31
32protected:
34
35
36public:
37
43
46 {
47 OnModified.Broadcast(this);
48 }
49
50};
51
52
53
54
56{
57 Vertex = 0,
58 Face = 1,
59 Edge = 2,
60 Group = 3
61};
62
63
64
69UCLASS(Transient, MinimalAPI)
71{
73
74public:
76
77 UPROPERTY()
78 TArray<int32> Vertices;
79
80 UPROPERTY()
81 TArray<int32> Edges;
82
83 UPROPERTY()
84 TArray<int32> Faces;
85
86 UPROPERTY()
87 TArray<int32> Groups;
88
89
90public:
93
95 INTERACTIVETOOLSFRAMEWORK_API const TArray<int>& GetElements(EMeshSelectionElementType ElementType) const;
96
101 INTERACTIVETOOLSFRAMEWORK_API void AddIndices(EMeshSelectionElementType ElementType, const TArray<int32>& Indices);
102
107 INTERACTIVETOOLSFRAMEWORK_API void AddIndices(EMeshSelectionElementType ElementType, const TSet<int32>& Indices);
108
109
113 INTERACTIVETOOLSFRAMEWORK_API void RemoveIndices(EMeshSelectionElementType ElementType, const TArray<int32>& Indices);
114
118 INTERACTIVETOOLSFRAMEWORK_API void RemoveIndices(EMeshSelectionElementType ElementType, const TSet<int32>& Indices);
119};
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define DECLARE_MULTICAST_DELEGATE_OneParam(DelegateName, Param1Type)
Definition DelegateCombinations.h:49
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UCLASS(...)
Definition ObjectMacros.h:776
EMeshSelectionElementType
Definition SelectionSet.h:56
Definition Array.h:670
Definition SelectionSet.h:71
Definition Object.h:95
Definition SelectionSet.h:29
FSelectionSetModifiedSignature & GetOnModified()
Definition SelectionSet.h:39
void NotifySelectionSetModified()
Definition SelectionSet.h:45
FSelectionSetModifiedSignature OnModified
Definition SelectionSet.h:33