ALive-research / Slicer-Liver

3D Slicer extension for liver analysis and therapy planning
Other
15 stars 9 forks source link

Default color values #189

Closed RafaelPalomar closed 1 year ago

RafaelPalomar commented 1 year ago

Right now the default color values (and other settings for that matter) are decoupled between the UI (scripted loadable module) and low lever rendering objects (DM's, Mappers, etc.) We should study the possibility to have these values in a logic in such way that the values can be queried from different components. This will help keeping the settings consistent.

RuoyanMeng commented 1 year ago

Is there any default colormap for the Sliver-Liver extension, and default segments color setting? So I can define the Hepatic/Portal contour color accordingly.

RafaelPalomar commented 1 year ago

We could use the GenericAnatomyColors color table. Related to this is the use of terminologies (and colors associated) for segmentations and derivatives. Here a recent discussion on this:https://discourse.slicer.org/t/terminologies-questions/27384

olevs commented 1 year ago

In LiverSegments we copy an existing Slicer colormap, and call it SlicerLiverColorMap. See: https://github.com/ALive-research/Slicer-Liver/blob/9502786e8f14f6406296166cd36faa974396160d/LiverSegments/LiverSegments.py#L232 If we did it like this we can add our own colors and labels if necessary.

RuoyanMeng commented 1 year ago

The colormap used in LiverSegments is Labels, different from the GenericAnatomyColors we used for representing liver structures. I can hardcode the vessel color now and we can discuss which colormap should be used later.