CTK  0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
Public Types | Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | Properties | List of all members
ctkDICOMBrowser Class Reference

#include <Libs/DICOM/Widgets/ctkDICOMBrowser.h>

Inheritance diagram for ctkDICOMBrowser:
Inheritance graph
[legend]
Collaboration diagram for ctkDICOMBrowser:
Collaboration graph
[legend]

Public Types

typedef QWidget Superclass
 

Public Slots

void onFileIndexed (const QString &filePath)
 
void onImportDirectory (QString directory)
 
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 ()
 
void openQueryDialog ()
 
void setDatabaseDirectory (const QString &directory)
 

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)
 
ctkDICOMDatabasedatabase ()
 
QString databaseDirectory () const
 Directory being used to store the dicom database. More...
 
ctkDICOMTableManagerdicomTableManager ()
 
bool displayImportSummary ()
 
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 ()
 
void updateDatabaseSchemaIfNeeded ()
 
virtual ~ctkDICOMBrowser ()
 

Protected Slots

void exportSelectedPatients (QString dirPath, QStringList uids)
 
void exportSelectedSeries (QString dirPath, QStringList uids)
 
void exportSelectedStudies (QString dirPath, QStringList uids)
 
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

ctkDICOMDatabase database
 
QString databaseDirectory
 
ctkDICOMTableManager dicomTableManager
 
bool displayImportSummary
 
QStringList tagsToPrecache
 

Detailed Description

Definition at line 38 of file ctkDICOMBrowser.h.

Member Typedef Documentation

◆ Superclass

typedef QWidget ctkDICOMBrowser::Superclass

Definition at line 48 of file ctkDICOMBrowser.h.

Constructor & Destructor Documentation

◆ ctkDICOMBrowser()

ctkDICOMBrowser::ctkDICOMBrowser ( QWidget *  parent = 0)
explicit

◆ ~ctkDICOMBrowser()

virtual ctkDICOMBrowser::~ctkDICOMBrowser ( )
virtual

Member Function Documentation

◆ confirmDeleteSelectedUIDs()

bool ctkDICOMBrowser::confirmDeleteSelectedUIDs ( QStringList  uids)
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.

◆ database()

ctkDICOMDatabase* ctkDICOMBrowser::database ( )

◆ databaseDirectory()

QString ctkDICOMBrowser::databaseDirectory ( ) const

Directory being used to store the dicom database.

◆ databaseDirectoryChanged

void ctkDICOMBrowser::databaseDirectoryChanged ( const QString &  )
signal

Emited when directory is changed.

◆ dicomTableManager()

ctkDICOMTableManager* ctkDICOMBrowser::dicomTableManager ( )

◆ directoryImported

void ctkDICOMBrowser::directoryImported ( )
signal

Emited when the directory import operation has completed.

◆ displayImportSummary()

bool ctkDICOMBrowser::displayImportSummary ( )

◆ exportSelectedPatients

void ctkDICOMBrowser::exportSelectedPatients ( QString  dirPath,
QStringList  uids 
)
protectedslot

Called to export the patients associated with the selected UIDs

See also
exportSelectedStudies, exportSelectedSeries

◆ exportSelectedSeries

void ctkDICOMBrowser::exportSelectedSeries ( QString  dirPath,
QStringList  uids 
)
protectedslot

Called to export the series associated with the selected UIDs

See also
exportSelectedStudies, exportSelectedPatients

◆ exportSelectedStudies

void ctkDICOMBrowser::exportSelectedStudies ( QString  dirPath,
QStringList  uids 
)
protectedslot

Called to export the studies associated with the selected UIDs

See also
exportSelectedSeries, exportSelectedPatients

◆ instancesAddedDuringImport()

int ctkDICOMBrowser::instancesAddedDuringImport ( )

◆ onFileIndexed

void ctkDICOMBrowser::onFileIndexed ( const QString &  filePath)
slot

◆ onImportDirectory

void ctkDICOMBrowser::onImportDirectory ( QString  directory)
slot

Import a directory - this is used when the user selects a directory from the Import Dialog, but can also be used externally to trigger an import (i.e. for testing or to support drag-and-drop)

◆ onInstanceAdded

void ctkDICOMBrowser::onInstanceAdded ( QString  )
slot

◆ onModelSelected

void ctkDICOMBrowser::onModelSelected ( const QItemSelection &  ,
const QItemSelection &   
)
protectedslot

◆ onPatientAdded

void ctkDICOMBrowser::onPatientAdded ( int  ,
QString  ,
QString  ,
QString   
)
slot

slots to capture status updates from the database during an import operation

◆ onPatientsRightClicked

void ctkDICOMBrowser::onPatientsRightClicked ( const QPoint &  point)
protectedslot

Called when a right mouse click is made in the patients table.

◆ onQueryRetrieveFinished

void ctkDICOMBrowser::onQueryRetrieveFinished ( )
protectedslot

To be called when dialog finishes.

◆ onRemoveAction

void ctkDICOMBrowser::onRemoveAction ( )
slot

◆ onRepairAction

void ctkDICOMBrowser::onRepairAction ( )
slot

◆ onSeriesAdded

void ctkDICOMBrowser::onSeriesAdded ( QString  )
slot

◆ onSeriesRightClicked

void ctkDICOMBrowser::onSeriesRightClicked ( const QPoint &  point)
protectedslot

Called when a right mouse click is made in the series table.

◆ onStudiesRightClicked

void ctkDICOMBrowser::onStudiesRightClicked ( const QPoint &  point)
protectedslot

Called when a right mouse click is made in the studies table.

◆ onStudyAdded

void ctkDICOMBrowser::onStudyAdded ( QString  )
slot

◆ onTablesDensityComboBox

void ctkDICOMBrowser::onTablesDensityComboBox ( QString  )
slot

◆ openExportDialog

void ctkDICOMBrowser::openExportDialog ( )
slot

◆ openImportDialog

void ctkDICOMBrowser::openImportDialog ( )
slot

◆ openQueryDialog

void ctkDICOMBrowser::openQueryDialog ( )
slot

◆ patientsAddedDuringImport()

int ctkDICOMBrowser::patientsAddedDuringImport ( )

Accessors to status of last directory import operation.

◆ queryRetrieveFinished

void ctkDICOMBrowser::queryRetrieveFinished ( )
signal

Emited when query/retrieve operation has happened.

◆ seriesAddedDuringImport()

int ctkDICOMBrowser::seriesAddedDuringImport ( )

◆ setDatabaseDirectory

void ctkDICOMBrowser::setDatabaseDirectory ( const QString &  directory)
slot

◆ setDisplayImportSummary()

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.

◆ setTagsToPrecache()

void ctkDICOMBrowser::setTagsToPrecache ( const QStringList  tags)

See ctkDICOMDatabase for description - these accessors delegate to the corresponding routines of the internal instance of the database.

See also
ctkDICOMDatabase

◆ studiesAddedDuringImport()

int ctkDICOMBrowser::studiesAddedDuringImport ( )

◆ tagsToPrecache()

const QStringList ctkDICOMBrowser::tagsToPrecache ( )

◆ updateDatabaseSchemaIfNeeded()

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

Member Data Documentation

◆ d_ptr

QScopedPointer<ctkDICOMBrowserPrivate> ctkDICOMBrowser::d_ptr
protected

Definition at line 115 of file ctkDICOMBrowser.h.

Property Documentation

◆ database

ctkDICOMDatabase ctkDICOMBrowser::database
read

Definition at line 41 of file ctkDICOMBrowser.h.

◆ databaseDirectory

QString ctkDICOMBrowser::databaseDirectory
readwrite

Definition at line 42 of file ctkDICOMBrowser.h.

◆ dicomTableManager

ctkDICOMTableManager ctkDICOMBrowser::dicomTableManager
read

Definition at line 45 of file ctkDICOMBrowser.h.

◆ displayImportSummary

bool ctkDICOMBrowser::displayImportSummary
readwrite

Definition at line 44 of file ctkDICOMBrowser.h.

◆ tagsToPrecache

QStringList ctkDICOMBrowser::tagsToPrecache
readwrite

Definition at line 43 of file ctkDICOMBrowser.h.


The documentation for this class was generated from the following file: