Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkDicomLocalStorageWidget Class Reference

QmitkDicomLocalStorageWidget is a QWidget providing functionality for dicom storage and import. More...

#include <QmitkDicomLocalStorageWidget.h>

Inheritance diagram for QmitkDicomLocalStorageWidget:
Collaboration diagram for QmitkDicomLocalStorageWidget:

Public Slots

void OnViewButtonClicked ()
 Called when view button was clicked. More...
 
void OnDeleteButtonClicked ()
 Called delete button was clicked. More...
 
void OnStartDicomImport (const QString &dicomData)
 Called when adding a dicom directory. Starts a thread adding the directory. More...
 
void OnStartDicomImport (const QStringList &dicomData)
 Called when adding a list of dicom files. Starts a thread adding the dicom files. More...
 
void OnSeriesSelectionChanged (const QStringList &)
 Called when the selection in the series table has changed. More...
 

Signals

void SignalFinishedImport ()
 emitted when import into database is finished. More...
 
void SignalDicomToDataManager (QHash< QString, QVariant >)
 emitted when view button is clicked. More...
 
void SignalCancelImport ()
 emitted if cancel button is pressed. More...
 

Public Member Functions

 QmitkDicomLocalStorageWidget (QWidget *parent)
 QmitkDicomLocalStorageWidget(QWidget *parent) constructor. More...
 
virtual ~QmitkDicomLocalStorageWidget ()
 QmitkDicomExternalDataWidget destructor. More...
 
virtual void CreateQtPartControl (QWidget *parent)
 CreateQtPartControl(QWidget *parent) sets the view objects from ui_QmitkDicomExternalDataWidgetControls.h. More...
 
void SetDatabaseDirectory (QString newDatabaseDirectory)
 SetDatabaseDirectory sets database directory. More...
 

Static Public Attributes

static const std::string Widget_ID
 

Protected Member Functions

void SetDatabase (QString databaseFile)
 
bool DeletePatients ()
 
bool DeleteStudies ()
 
bool DeleteSeries ()
 

Protected Attributes

ctkDICOMDatabase * m_LocalDatabase
 
ctkDICOMIndexer * m_LocalIndexer
 
Ui::QmitkDicomLocalStorageWidgetControls * m_Controls
 

Detailed Description

QmitkDicomLocalStorageWidget is a QWidget providing functionality for dicom storage and import.

See also
QmitkFunctionality

Definition at line 44 of file QmitkDicomLocalStorageWidget.h.

Constructor & Destructor Documentation

QmitkDicomLocalStorageWidget::QmitkDicomLocalStorageWidget ( QWidget *  parent)

QmitkDicomLocalStorageWidget(QWidget *parent) constructor.

Parameters
parentis a pointer to the parent widget

Definition at line 29 of file QmitkDicomLocalStorageWidget.cpp.

References CreateQtPartControl().

QmitkDicomLocalStorageWidget::~QmitkDicomLocalStorageWidget ( )
virtual

QmitkDicomExternalDataWidget destructor.

Definition at line 35 of file QmitkDicomLocalStorageWidget.cpp.

References m_LocalDatabase.

Member Function Documentation

void QmitkDicomLocalStorageWidget::CreateQtPartControl ( QWidget *  parent)
virtual

CreateQtPartControl(QWidget *parent) sets the view objects from ui_QmitkDicomExternalDataWidgetControls.h.

Parameters
parentis a pointer to the parent widget

Definition at line 40 of file QmitkDicomLocalStorageWidget.cpp.

References m_Controls, m_LocalIndexer, OnDeleteButtonClicked(), OnSeriesSelectionChanged(), OnViewButtonClicked(), and SignalFinishedImport().

Referenced by QmitkDicomLocalStorageWidget().

bool QmitkDicomLocalStorageWidget::DeletePatients ( )
protected

Definition at line 96 of file QmitkDicomLocalStorageWidget.cpp.

References m_Controls, and m_LocalDatabase.

Referenced by OnDeleteButtonClicked().

bool QmitkDicomLocalStorageWidget::DeleteSeries ( )
protected

Definition at line 167 of file QmitkDicomLocalStorageWidget.cpp.

References m_Controls, and m_LocalDatabase.

Referenced by OnDeleteButtonClicked().

bool QmitkDicomLocalStorageWidget::DeleteStudies ( )
protected

Definition at line 135 of file QmitkDicomLocalStorageWidget.cpp.

References m_Controls, and m_LocalDatabase.

Referenced by OnDeleteButtonClicked().

void QmitkDicomLocalStorageWidget::OnDeleteButtonClicked ( )
slot

Called delete button was clicked.

Definition at line 83 of file QmitkDicomLocalStorageWidget.cpp.

References DeletePatients(), DeleteSeries(), DeleteStudies(), and m_Controls.

Referenced by CreateQtPartControl().

void QmitkDicomLocalStorageWidget::OnSeriesSelectionChanged ( const QStringList &  s)
slot

Called when the selection in the series table has changed.

Definition at line 228 of file QmitkDicomLocalStorageWidget.cpp.

References m_Controls.

Referenced by CreateQtPartControl().

void QmitkDicomLocalStorageWidget::OnStartDicomImport ( const QString &  dicomData)
slot

Called when adding a dicom directory. Starts a thread adding the directory.

Definition at line 67 of file QmitkDicomLocalStorageWidget.cpp.

References m_LocalDatabase, and m_LocalIndexer.

void QmitkDicomLocalStorageWidget::OnStartDicomImport ( const QStringList &  dicomData)
slot

Called when adding a list of dicom files. Starts a thread adding the dicom files.

Definition at line 75 of file QmitkDicomLocalStorageWidget.cpp.

References m_LocalDatabase, and m_LocalIndexer.

void QmitkDicomLocalStorageWidget::OnViewButtonClicked ( )
slot

Called when view button was clicked.

Definition at line 192 of file QmitkDicomLocalStorageWidget.cpp.

References m_Controls, m_LocalDatabase, and SignalDicomToDataManager().

Referenced by CreateQtPartControl().

void QmitkDicomLocalStorageWidget::SetDatabase ( QString  databaseFile)
protected

Definition at line 221 of file QmitkDicomLocalStorageWidget.cpp.

References m_Controls, and m_LocalDatabase.

Referenced by SetDatabaseDirectory().

void QmitkDicomLocalStorageWidget::SetDatabaseDirectory ( QString  newDatabaseDirectory)

SetDatabaseDirectory sets database directory.

Parameters
newDatabaseDirectorycontains path to new database directoy.

Definition at line 210 of file QmitkDicomLocalStorageWidget.cpp.

References SetDatabase().

void QmitkDicomLocalStorageWidget::SignalCancelImport ( )
signal

emitted if cancel button is pressed.

void QmitkDicomLocalStorageWidget::SignalDicomToDataManager ( QHash< QString, QVariant >  )
signal

emitted when view button is clicked.

Parameters
QHashcontaining dicom UIDs properties.

Referenced by OnViewButtonClicked().

void QmitkDicomLocalStorageWidget::SignalFinishedImport ( )
signal

emitted when import into database is finished.

Referenced by CreateQtPartControl().

Member Data Documentation

Ui::QmitkDicomLocalStorageWidgetControls* QmitkDicomLocalStorageWidget::m_Controls
protected
ctkDICOMDatabase* QmitkDicomLocalStorageWidget::m_LocalDatabase
protected
ctkDICOMIndexer* QmitkDicomLocalStorageWidget::m_LocalIndexer
protected

Definition at line 117 of file QmitkDicomLocalStorageWidget.h.

Referenced by CreateQtPartControl(), and OnStartDicomImport().

const std::string QmitkDicomLocalStorageWidget::Widget_ID
static

Definition at line 51 of file QmitkDicomLocalStorageWidget.h.


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