New way to open DICOM volumes (or other type of directory component) in imp
About you
Member of CamiTK team since ever
Product
camitk-imp
Overview
Opening a DICOM image from a directory requires many unnecessary clicks. This is true for any other future "directory" components (component that can open a whole directory).
In CamiTK there is two types of component extensions:
- the classic type that can instantiate a component from a file
- the
[directory]
type that instantiates a component from a directory
Note: At the moment in CamiTK CE, there is only one type of [directory]
component extension: the DICOM extension.
To improve the user experience (and completely avoid bugs linked to application global shortcuts such as closed bug 193 on bugzilla), here is something that I suggest:
- modify the submenu
File → Open Data Directory
so that- it is managed by only one corresponding
QAction
- if their is only one
[directory]
component extension (check the size ofExtensionManager::getDataDirectoryComponents()
), as it is at the moment in CamiTK CE, then the menu should be calledOpen XXX Directory
where XXX is the resultingQString
from the component extensiongetName()
(therefore it should be calledOpen DICOM Directory
in the current CamiTK CE). Otherwise it should be calledOpen Data Directory
as before
- it is managed by only one corresponding
- Once triggered the
QAction
should:- if their is only one
[directory]
component extension, then go directly to the "open XXX directory dialog" (XXX = name of the component) and call the corresponding component extensionopen(...)
method - if their is more than one
[directory]
component extension, then- look for all the registered/loaded
ExtensionManager::getDataDirectoryComponents()
- create a submenu with the corresponding menu item (as it is the case in the current version)
- open the "choose directory dialog" and call the corresponding component extension open method.
- look for all the registered/loaded
- if their is only one
- (dicom component specific) if there is only one dicom series/exam in the directory, it should be selected by default in the dicom dialog (see class
DicomDialog
), and the user should only have to click on "Ok"
Therefore opening a dicom series should be performed in two (max three if there are more than one series) clicks
Relevant logs and/or screenshots
This is a follow up from the bug 193 (of the late bugzilla system).
Acceptance tests
-
there should be a File → Open DICOM directoy
menu incamitk-imp
-
Clicking on it opens the dicom directory dialog -
if there is only one dicom series/exam in the directory, it should be selected by default in the dicom dialog
please do not remove anything below this line