3D Widget color and interaction consistency
3D widgets in VTK/ParaView use inconsistent color and interaction schemes. It would be good to try to make them consistent. A possible model is vtkDisplaySizedImplicitPlaneRepresentation
which was implemented Oct 2021.
Widgets could use this pattern:
- Foreground color for all informational objects, like bounding boxes or intersection outlines, which can't be grabbed. Typically white.
- Handle/Interaction color for all objects that can be grabbed, like axes or center points. Current PV default is green.
- Selected Handle/Interaction color, for the handle that is hovered and available to be changed or currently being changed after click/drag has started. Current PV default is red.
(Aside: the current PV defaults of red-green are a poor choice for the most common color-blindness.)
Another area to examine is shortcut keys. Some widgets use "p", some use "1" and "2" for picking points, and all of them are hard-coded. ParaView now includes a shortcut customization dialog for menus, which could be extended for widgets.
Widgets could also be updated to use vtkNew
for memory management.
This is a potential follow-on to #20599 (closed) and !5965 (merged)
Edited by Aron Helser