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

typedef QWidget ctkDICOMBrowser::Superclass

Definition at line 48 of file ctkDICOMBrowser.h.

Constructor & Destructor Documentation

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

Member Function Documentation

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.

ctkDICOMDatabase* ctkDICOMBrowser::database ( )
QString ctkDICOMBrowser::databaseDirectory ( ) const

Directory being used to store the dicom database.

void ctkDICOMBrowser::databaseDirectoryChanged ( const QString &  )
signal

Emited when directory is changed.

ctkDICOMTableManager* ctkDICOMBrowser::dicomTableManager ( )
void ctkDICOMBrowser::directoryImported ( )
signal

Emited when the directory import operation has completed.

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

Called to export the patients associated with the selected UIDs

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

Called to export the series associated with the selected UIDs

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

Called to export the studies associated with the selected UIDs

See also
exportSelectedSeries, exportSelectedPatients
int ctkDICOMBrowser::instancesAddedDuringImport ( )
void ctkDICOMBrowser::onFileIndexed ( const QString &  filePath)
slot
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)

void ctkDICOMBrowser::onInstanceAdded ( QString  )
slot
void ctkDICOMBrowser::onModelSelected ( const QItemSelection &  ,
const QItemSelection &   
)
protectedslot
void ctkDICOMBrowser::onPatientAdded ( int  ,
QString  ,
QString  ,
QString   
)
slot

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

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

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

void ctkDICOMBrowser::onQueryRetrieveFinished ( )
protectedslot

To be called when dialog finishes.

void ctkDICOMBrowser::onRemoveAction ( )
slot
void ctkDICOMBrowser::onRepairAction ( )
slot
void ctkDICOMBrowser::onSeriesAdded ( QString  )
slot
void ctkDICOMBrowser::onSeriesRightClicked ( const QPoint &  point)
protectedslot

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

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

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

void ctkDICOMBrowser::onStudyAdded ( QString  )
slot
void ctkDICOMBrowser::onTablesDensityComboBox ( QString  )
slot
void ctkDICOMBrowser::openExportDialog ( )
slot
void ctkDICOMBrowser::openImportDialog ( )
slot
void ctkDICOMBrowser::openQueryDialog ( )
slot
int ctkDICOMBrowser::patientsAddedDuringImport ( )

Accessors to status of last directory import operation.

void ctkDICOMBrowser::queryRetrieveFinished ( )
signal

Emited when query/retrieve operation has happened.

int ctkDICOMBrowser::seriesAddedDuringImport ( )
void ctkDICOMBrowser::setDatabaseDirectory ( const QString &  directory)
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.

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
int ctkDICOMBrowser::studiesAddedDuringImport ( )
const QStringList ctkDICOMBrowser::tagsToPrecache ( )
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

QScopedPointer<ctkDICOMBrowserPrivate> ctkDICOMBrowser::d_ptr
protected

Definition at line 115 of file ctkDICOMBrowser.h.

Property Documentation

ctkDICOMDatabase ctkDICOMBrowser::database
read

Definition at line 41 of file ctkDICOMBrowser.h.

QString ctkDICOMBrowser::databaseDirectory
readwrite

Definition at line 42 of file ctkDICOMBrowser.h.

ctkDICOMTableManager ctkDICOMBrowser::dicomTableManager
read

Definition at line 45 of file ctkDICOMBrowser.h.

bool ctkDICOMBrowser::displayImportSummary
readwrite

Definition at line 44 of file ctkDICOMBrowser.h.

QStringList ctkDICOMBrowser::tagsToPrecache
readwrite

Definition at line 43 of file ctkDICOMBrowser.h.


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