resources
- trame_slicer.resources.get_volume_display_presets_icon_url(icons_folder: str | Path, volumes_logic: vtkSlicerVolumesLogic, icon_ext: str = '.png') list[tuple[str, str]]
Helper method listing the volume display presets icons in a given folder and returning them in a trame compatible format. The name of the icons is expected to match the name of the presets present in the loaded vtkSlicerVolumesLogic presets.
- Returns:
List of tuple with preset name and base 64 encoded image
- trame_slicer.resources.get_volume_rendering_presets_icon_url(icons_folder: str | Path, volume_rendering: VolumeRendering, icon_ext: str = '.png') list[tuple[str, str]]
Helper method listing the volume rendering presets icons in a given folder and returning them in a trame compatible format. The name of the icons is expected to match the name of the presets present in the loaded VolumeRendering presets.
- Returns:
List of tuple with preset name and base 64 encoded image