ImFusion SDK 4.3
DicomBrowser Class Reference

#include <ImFusion/Dicom/GUI/DicomBrowser.h>

The DicomBrowser is a dialog to browse and preview DICOM files. More...

+ Inheritance diagram for DicomBrowser:

Detailed Description

The DicomBrowser is a dialog to browse and preview DICOM files.

The DicomBrowser shows a hierarchical list of patients, studies, series and images. The DICOM data can be retrieved from folders or DICOMDIR files. The user can select one or multiple items with check boxes. Internally a DicomBrowserModel provides all data.

Previews of series and single images are automatically generated when selecting a corresponding item. Previews are generated by dcmtk's DicomImage which does not require OpenGL. For single images, all DICOM tags can be displayed in a separate tab.

Public Slots

void scan ()
 Scans the directory currently entered in the 'Directory' tab.
 
void scanDicomDir ()
 Scans the DICOMDIR path currently entered in the 'DICOMDIR' tab.
 
void scanWeb (bool previousAuthInvalid=false)
 Scans a DICOMweb server currently entered in the 'DICOMweb' tab.
 
void cancelScan ()
 Cancels any scanning.
 
void updateOkButton ()
 Enables/Disables the ok button depending if anything is selected.
 
void updateTags ()
 Loads all tags of the current selected image into the tags model (clears previous tags)
 
void updateStats ()
 Updates the number of patients, studies and series summary below the filter controls.
 
void loadSeriesIntoMemory (const QModelIndex &index)
 If the index is a Series, all its images will be loaded into memory in the background.
 
void openContextMenu (const QPoint &location)
 Opens the context menu at the given (global) location.
 
void openConfigDialog ()
 Opens the config dialog if one is set.
 
void selectAll ()
 Selects all currently visible (i.e. filtered) series.
 
void selectNone ()
 Deselects all currently visible (i.e. filtered) series.
 
void connectToPacs ()
 Connect to the PACS server and scan for data given the filter criteria in the 'PACS' tab.
 
void updateAvailablePacsServers ()
 Updates the combobox containing available PACS servers from Settings.
 

Signals

void updateTagsFromDataset (std::shared_ptr< DcmDataset > dataset)
 
void dicomScanError (QString title, QString message)
 Emitted when there was an error during scanning.
 

Public Member Functions

 DicomBrowser (Dicom::SharedDatasetCache cache=nullptr, QWidget *parent=nullptr)
 Constructor.
 
void setBrowserModel (std::unique_ptr< DicomBrowserModel > existingBrowserModel)
 Replaces the current model of the DicomBrowser with the given one.
 
void setDatasetCache (Dicom::SharedDatasetCache cache)
 Replaces the current DatasetCache with the given one. nullptr disables caching.
 
void setConfigDialog (QDialog *dialog)
 Set an option dialog that shows configuraton options for loading the files.
 
void setCurrentPath (const QString &path)
 Set the text edit to a new path.
 
QString currentPath () const
 Returns the current path in the text edit.
 
std::string selectedSeriesUri () const
 Returns a combined URI describing all currently selected series (see DicomIOAlgorithm for format description).
 
const DicomBrowserModelbrowserModel () const
 Returns the current browser model.
 
DicomBrowserModelbrowserModel ()
 
const DicomBrowserFilterModelbrowserFilterModel () const
 Returns the filter model that wraps browserModel()
 
DicomBrowserFilterModelbrowserFilterModel ()
 
void fixTabWidget (bool fix, int tabIndex, const std::string &path)
 If fix is true, selects the tab widget with the given index, and disables the tab widget.
 
bool event (QEvent *event) override
 

Constructor & Destructor Documentation

◆ DicomBrowser()

DicomBrowser ( Dicom::SharedDatasetCache cache = nullptr,
QWidget * parent = nullptr )
explicit

Constructor.

If parent is an instance of MainWindowBase, then additional connections are created that otherwise will not be made.

Member Function Documentation

◆ fixTabWidget()

void fixTabWidget ( bool fix,
int tabIndex,
const std::string & path )

If fix is true, selects the tab widget with the given index, and disables the tab widget.

If path is not empty, sets corresponding the url widget to the given path Convenience method for DicomIOController.

◆ loadSeriesIntoMemory

void loadSeriesIntoMemory ( const QModelIndex & index)
slot

If the index is a Series, all its images will be loaded into memory in the background.

If the index is a Study or Patient, load all images which parent series is checked,


The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close