"Color Scalar Bar" reworked and upgraded, now it’s called "Color Legend"

Starting from version 30530 build 2022-01-15 “Color Scalar Bar” section from “Colors” module was replaced with “Color Legend” section.

The “Color Legend” section has been also added to the “Volume”, “Model” and “Markups” modules to control visibility and behavior of color legend.

New major features:

  1. More unified API. Each Volume, Model, Markups or any other displayable node now can have an individual color legend by means of vtkMRMLColorLegendDisplayNode.

  2. Displayed LUT is in sync with range of displayed values of primary display node;

  3. Resizable title of color legend;

  4. Control of visibility of color legend on each slice or 3D view.

  5. Color legend can by added to any displayable node (if the node has a primary display node) by means of Color module logic and AddDefaultColorLegendDisplayNode method.

  6. The access to a low level vtkScalarBarActor for developers and experienced users is described here.

There are still some features that must be added. Issue to check the progress is here.

Any other required or recommended features can added to the issue or in this topic.

5 Likes

@Mik Thank you very much! This feature was missing for a very long time and it will make an impact in many projects.