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.
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.
Note that we create a custom widget to associate for each selectionNode an value.