Selection Editor
Selection Editor
is a new panel that allows saving and combining many selections of different types using a boolean
expression.
Selection Editor
has:
-
Data producer
field that is set based on the source of the active selection.- If the source of the active selection changes, the Data producer will change as well, and any saved selection will be deleted.
-
Element type
field that is set based on the element type of the active selection.- If a selection is saved and a new active selection is made that has a different element type, the user will be prompted to decide if he wants to change the element type to add the new active selection. Doing so will result in deleting the saved selection.
-
Expression
string that is set by the user, and it is also automatically filled while adding new selections. -
Saved Selections
table that lists the name, which is used to define the expression, and the type of the selection.- If the user selects a selection from the
Saved Selections
table, and the active view is a render-view, the selected selection will be interactively shown. Deselecting the selected selection hides the selected selection from the render-view.
- If the user selects a selection from the
-
Add Active Selection
button that adds the active selection to the list of saved selections. -
Remove Selected Selection
button that removes the selected saved selection from the list of saved selections. -
Remove All Selections
button that removes all saved selections from the list of saved selections. -
Activate Combined Selections
button that sets the combined saved selections as the active selection.
An example of a combined selection created using the selection editor is shown below.
To accommodate the creation of the Selection Editor
panel, the following changes were also completed:
-
SelectionQuerySource
now is implemented usingvtkSelectionSource
.vtkQuerySelectionSource
has been removed since it's no longer needed. -
AppendSelections
filter proxy has been created usingvtkAppendSelection
to combine many selections of different types using a boolean expression. - Every view (render/context/spreadsheet) and the FindDataWidget now generate a
AppendSelections
proxy. Due to this change, the render view can now combine all selections types including frustum-based selections.Show frustum
button has been removed, because 1) it's not used, 2) and visualizing more than one frustum would be highly confusing for the user. -
vtkSelectionConverter
has been deleted because it's no longer used.
VTK Updates:
- vtkPIOReader: fix hang during parallel execution of reader
- ci: exclude TestCookieCutter4 on Windows with STDThread
- vtkSphericalPointIterator: include
<memory>
forstd::unique_ptr
- Add 1D convolution function
- vtkMergeTimeFilter correctly supports non-temporal input
- Selection Improvements
- ci: exclude TestCookieCutter4 on all stdthread builds
- TestDataArraySerialization: renaming and fixing compile issue
This MR will be merged once vtk/vtk!8871 (merged) is also merged.
Edited by Spiros Tsalikis