![]() |
CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
|
The DICOM browser widget provides an interface to organize DICOM data stored in a local ctkDICOMDatabase. More...
#include <Libs/DICOM/Widgets/ctkDICOMBrowser.h>
Public Types | |
enum | ImportDirectoryMode { ImportDirectoryCopy = 0 , ImportDirectoryAddLink } |
typedef ctkDICOMBrowser | Self |
typedef QWidget | Superclass |
Public Slots | |
void | importDirectories (QStringList directories, ctkDICOMBrowser::ImportDirectoryMode mode=ImportDirectoryAddLink) |
Import directories. More... | |
void | importDirectory (QString directory, ctkDICOMBrowser::ImportDirectoryMode mode=ImportDirectoryAddLink) |
Import a directory. More... | |
void | onFileIndexed (const QString &filePath) |
void | onImportDirectory (QString directory, ctkDICOMBrowser::ImportDirectoryMode mode=ImportDirectoryAddLink) |
void | onInstanceAdded (QString) |
void | onPatientAdded (int, QString, QString, QString) |
void | onRemoveAction () |
void | onRepairAction () |
void | onSeriesAdded (QString) |
void | onStudyAdded (QString) |
void | onTablesDensityComboBox (QString) |
void | openExportDialog () |
void | openImportDialog () |
Pop-up file dialog allowing to select and import one or multiple DICOM directories. More... | |
void | openQueryDialog () |
void | setDatabaseDirectory (const QString &directory) |
void | setImportDirectoryMode (ctkDICOMBrowser::ImportDirectoryMode mode) |
Set value of ImportDirectoryMode settings. More... | |
Signals | |
void | databaseDirectoryChanged (const QString &) |
Emited when directory is changed. More... | |
void | directoryImported () |
Emited when the directory import operation has completed. More... | |
void | queryRetrieveFinished () |
Emited when query/retrieve operation has happened. More... | |
Public Member Functions | |
ctkDICOMBrowser (QWidget *parent=0) | |
Q_INVOKABLE ctkDICOMDatabase * | database () |
QString | databaseDirectory () const |
Directory being used to store the dicom database. More... | |
Q_INVOKABLE ctkDICOMTableManager * | dicomTableManager () |
bool | displayImportSummary () |
Q_INVOKABLE ctkFileDialog * | importDialog () const |
Return instance of import dialog. More... | |
ctkDICOMBrowser::ImportDirectoryMode | importDirectoryMode () const |
Get value of ImportDirectoryMode settings. More... | |
int | instancesAddedDuringImport () |
int | patientsAddedDuringImport () |
Accessors to status of last directory import operation. More... | |
int | seriesAddedDuringImport () |
void | setDisplayImportSummary (bool) |
void | setTagsToPrecache (const QStringList tags) |
int | studiesAddedDuringImport () |
const QStringList | tagsToPrecache () |
Q_INVOKABLE void | updateDatabaseSchemaIfNeeded () |
virtual | ~ctkDICOMBrowser () |
Static Public Member Functions | |
static Q_INVOKABLE QString | databaseDirectorySettingsKey () |
Return settings key used to store the directory. More... | |
Protected Slots | |
void | exportSelectedPatients (QString dirPath, QStringList uids) |
void | exportSelectedSeries (QString dirPath, QStringList uids) |
void | exportSelectedStudies (QString dirPath, QStringList uids) |
void | onImportDirectoriesSelected (QStringList directories) |
Import directories. More... | |
void | onImportDirectoryComboBoxCurrentIndexChanged (int index) |
void | onModelSelected (const QItemSelection &, const QItemSelection &) |
void | onPatientsRightClicked (const QPoint &point) |
Called when a right mouse click is made in the patients table. More... | |
void | onQueryRetrieveFinished () |
To be called when dialog finishes. More... | |
void | onSeriesRightClicked (const QPoint &point) |
Called when a right mouse click is made in the series table. More... | |
void | onStudiesRightClicked (const QPoint &point) |
Called when a right mouse click is made in the studies table. More... | |
Protected Member Functions | |
bool | confirmDeleteSelectedUIDs (QStringList uids) |
Protected Attributes | |
QScopedPointer< ctkDICOMBrowserPrivate > | d_ptr |
Properties | |
QString | databaseDirectory |
bool | displayImportSummary |
ctkDICOMBrowser::ImportDirectoryMode | ImportDirectoryMode |
int | instancesAddedDuringImport |
int | patientsAddedDuringImport |
int | seriesAddedDuringImport |
int | studiesAddedDuringImport |
QStringList | tagsToPrecache |
The DICOM browser widget provides an interface to organize DICOM data stored in a local ctkDICOMDatabase.
Using a local database avoids redundant calculations and speed up subsequent access.
Supported operations are:
Definition at line 55 of file ctkDICOMBrowser.h.
typedef ctkDICOMBrowser ctkDICOMBrowser::Self |
Definition at line 69 of file ctkDICOMBrowser.h.
typedef QWidget ctkDICOMBrowser::Superclass |
Definition at line 71 of file ctkDICOMBrowser.h.
Enumerator | |
---|---|
ImportDirectoryCopy | |
ImportDirectoryAddLink |
Definition at line 108 of file ctkDICOMBrowser.h.
|
explicit |
|
virtual |
|
protected |
Confirm with the user that they wish to delete the selected uids. Add information about the selected UIDs to a message box, checks for patient name, series description, study description, if all empty, uses the UID. Returns true if the user confirms the delete, false otherwise. Remembers if the user doesn't want to show the confirmation again.
Q_INVOKABLE ctkDICOMDatabase* ctkDICOMBrowser::database | ( | ) |
QString ctkDICOMBrowser::databaseDirectory | ( | ) | const |
Directory being used to store the dicom database.
|
signal |
Emited when directory is changed.
|
static |
Return settings key used to store the directory.
Q_INVOKABLE ctkDICOMTableManager* ctkDICOMBrowser::dicomTableManager | ( | ) |
|
signal |
Emited when the directory import operation has completed.
bool ctkDICOMBrowser::displayImportSummary | ( | ) |
|
protectedslot |
Called to export the patients associated with the selected UIDs
|
protectedslot |
Called to export the series associated with the selected UIDs
|
protectedslot |
Called to export the studies associated with the selected UIDs
Q_INVOKABLE ctkFileDialog* ctkDICOMBrowser::importDialog | ( | ) | const |
Return instance of import dialog.
|
slot |
Import directories.
This can be used to externally trigger an import (i.e. for testing or to support drag-and-drop)
By default, mode is ImportDirectoryMode::ImportDirectoryAddLink is set.
|
slot |
Import a directory.
This can be used to externally trigger an import (i.e. for testing or to support drag-and-drop)
By default, mode is ImportDirectoryMode::ImportDirectoryAddLink is set.
ctkDICOMBrowser::ImportDirectoryMode ctkDICOMBrowser::importDirectoryMode | ( | ) | const |
Get value of ImportDirectoryMode settings.
int ctkDICOMBrowser::instancesAddedDuringImport | ( | ) |
|
slot |
|
protectedslot |
Import directories.
This is used when user selected one or multiple directories from the Import Dialog.
|
slot |
|
protectedslot |
|
slot |
|
protectedslot |
|
slot |
slots to capture status updates from the database during an import operation
|
protectedslot |
Called when a right mouse click is made in the patients table.
|
protectedslot |
To be called when dialog finishes.
|
slot |
|
slot |
|
slot |
|
protectedslot |
Called when a right mouse click is made in the series table.
|
protectedslot |
Called when a right mouse click is made in the studies table.
|
slot |
|
slot |
|
slot |
|
slot |
Pop-up file dialog allowing to select and import one or multiple DICOM directories.
The dialog is extented with two additional controls:
DICOM/ImportDirectoryMode
.
|
slot |
int ctkDICOMBrowser::patientsAddedDuringImport | ( | ) |
Accessors to status of last directory import operation.
|
signal |
Emited when query/retrieve operation has happened.
int ctkDICOMBrowser::seriesAddedDuringImport | ( | ) |
|
slot |
void ctkDICOMBrowser::setDisplayImportSummary | ( | bool | ) |
Option to show or not import summary dialog. Since the summary dialog is modal, we give the option of disabling it for batch modes or testing.
|
slot |
Set value of ImportDirectoryMode settings.
Setting the value will update the comboBox found at the bottom of the import dialog.
void ctkDICOMBrowser::setTagsToPrecache | ( | const QStringList | tags | ) |
See ctkDICOMDatabase for description - these accessors delegate to the corresponding routines of the internal instance of the database.
int ctkDICOMBrowser::studiesAddedDuringImport | ( | ) |
const QStringList ctkDICOMBrowser::tagsToPrecache | ( | ) |
Q_INVOKABLE void ctkDICOMBrowser::updateDatabaseSchemaIfNeeded | ( | ) |
Updates schema of loaded database to match the one coded by the current version of ctkDICOMDatabase. Also provides a dialog box for progress
|
protected |
Definition at line 188 of file ctkDICOMBrowser.h.
|
readwrite |
Definition at line 1 of file ctkDICOMBrowser.h.
|
readwrite |
Definition at line 1 of file ctkDICOMBrowser.h.
Definition at line 1 of file ctkDICOMBrowser.h.
|
read |
Definition at line 1 of file ctkDICOMBrowser.h.
|
read |
Definition at line 1 of file ctkDICOMBrowser.h.
|
read |
Definition at line 1 of file ctkDICOMBrowser.h.
|
read |
Definition at line 1 of file ctkDICOMBrowser.h.
|
readwrite |
Definition at line 1 of file ctkDICOMBrowser.h.