Skip to content

enh(ui): allow to modify the displayed columns in the series selector widget

Description

These changes allow to modify the displayed columns in the series selector widget. It introduces a new parameter in the constructors of SelectorModel, Selector and SelectorDialog which allows to set the columns to be displayed as a comma-separated list. The list of possible columns is defined in a map in SelectorModel file which contains the header of the column and the lambda to get the information from the series. It should be easy to add new columns to be displayed, but it requires to change SelectorModel.cpp.

Closes #1145 (closed)

How to test it?

  • Launch SightViewer
  • Select a folder containing multiple DICOMs
  • The selector dialog works correctly
  • Launch ExDicomSegmentation
  • Select a folder containing multiple DICOMs
  • The selector widget works correctly
  • Modify apps/SightViewer/rc/plugin.xml and append <config displayedColumns="PatientID,Modality,StudyDescription/SeriesDescription,StudyDate/SeriesDate,StudyTime/SeriesTime,BodyPartExamined,PatientPositionString"/> in SightViewer_dicom_SrvCfg extension config, after the <dialog> tag.
  • Launch SightViewer and select a folder containing multiple DICOMs
  • The selector dialog works correctly; the displayed columns changed
  • Modify examples/filter/ExDicomSegmentation/rc/ExDicomSegmentationBase.xml and append <config displayedColumns="PatientID,Modality,StudyDescription/SeriesDescription,StudyDate/SeriesDate,StudyTime/SeriesTime,BodyPartExamined,PatientPositionString"/> in selectorSrv service config, after the <inout> tag.
  • Launch ExDicomSegmentation and select a folder containing multiple DICOMs
  • The selector widget works correctly; the displayed columns changed
Edited by Lucas SCHMIDT

Merge request reports