Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/Selections
Inheritance Hierarchy
- FGeometrySelectionEditor
- FGeometrySelectionPreview
References
| Module | DynamicMesh |
| Header | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Selections/GeometrySelection.h |
| Include | #include "Selections/GeometrySelection.h" |
Syntax
class FGeometrySelectionEditor
Remarks
FGeometrySelectionEditor is a utility/helper class used for modifying a FGeometrySelection. The various functions can be used to add or remove to the Selection, while also tracking what changed, returned via FGeometrySelectionDelta structs.
In some cases (eg Polygroup selections on faces and edges), only the TopologyIDs are unique, and the same TopologyID may be paired with an arbitrary TriangleID/EdgeID. FGeometrySelection is currently not aware of this distinction, however it means when (for example) adding to a selection, a new uint64 ID should only be added if the TopologyID is unique, ie the ElementID bit should be ignored. FGeometrySelectionEditor can do this, by enabling TopologyIDFiltering in the various setup/config functions.
Note, however, this means that FGeometrySelectionEditor.IsSelected() must be used to determine whether an ID is selected, rather than Selection.Contains()
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bEnableTopologyIDFiltering | ||
| FGeometrySelectionHitQueryConfig | QueryConfig | ||
| FGeometrySelection * | TargetSelection |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ClearSelection
(
FGeometrySelectionDelta& DeltaOut |
Clear the Target Selection and return change information in DeltaOut | |
| bool | Deselect
(
const ListType& List, |
Remove the items in the List from the Target Selection and return change information in DeltaOut | |
| EGeometryElementType | |||
| bool | |||
| const FGeometrySelectionHitQueryConfig & | |||
| const FGeometrySelection & | GetSelection () |
Access the Selection object this Editor is modifying | |
| EGeometryTopologyType | |||
| void | Initialize
(
FGeometrySelection* TargetSelectionIn, |
Initialize the Editor with the given Selection. | |
| void | Initialize
(
FGeometrySelection* TargetSelectionIn, |
Initialize the Editor with the given Selection. | |
| bool | IsSelected
(
uint64 ID |
||
| uint64 | RemapToExistingTopologyID
(
uint64 ID, |
||
| bool | RemoveFromSelection
(
uint64 ID |
Remove ID from Selection | |
| bool | Replace
(
const FGeometrySelection& NewSelection, |
Replace the current set of selected items with those in the NewSelection, and return change information in DeltaOut | |
| bool | Select
(
uint64 ID |
Add the items to the Target Selection | |
| bool | Select
(
const ListType& List, |
Add the items in the List to the Target Selection and return change information in DeltaOut | |
| void | UpdateQueryConfig
(
const FGeometrySelectionHitQueryConfig& NewConfig, |
Update the active QueryConfig for this SelectionEditor. |