Skip to content

Selection: add color array and new filter to labelize a selection

Selection Editor: add color property

Need : vtk/vtk!9912 (merged)

To be able to have a color array on selection, the Selection Editor have now a new column dedicate to the color that user want to use for each registered selection.

Preview of the new Selection Editor

Peek_2023-02-02_16-23

In details:

After setting for each selection a color, the vtkAppendSelection filter triggered will generate a new array vtkUnsignedCharArray for each SelectionData named vtkSelectionColor. Then the vtkExtractSelection will add this new array on the data and set it as color array.

vtkAnnotateSelectionFilter: new filter to labelize a dataset based on a selection

This filter will add a vtkStringArray on the dataSet as point or cell array (depending of the field type of the selection), user can set for each SelectionNode of the selection a label used in this array.

Preview of the vtkAnnotateSelectionFilter

Peek_2023-02-02_16-36

Note that we create a custom widget to associate for each selectionNode an value.

Edited by Lucas Givord

Merge request reports