DisplayOpts mixin classes
Similar to the ColourMapOpts
class, you should also add a 4DOpts
(with a better, less syntactically invalid name) class for overlay types which may be 4D, and a LutOpts
class for overlay types with lookup tables.
This will allow you to remove explicit handling of different overlay types in e.g. the location panel (the volume counter), and the lookup table panel.