Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkDicomExternalDataWidget Class Reference

QmitkDicomExternalDataWidget is a QWidget providing functionality for dicom import. More...

#include <QmitkDicomExternalDataWidget.h>

Inheritance diagram for QmitkDicomExternalDataWidget:
Collaboration diagram for QmitkDicomExternalDataWidget:

Public Slots

void OnDownloadButtonClicked ()
 Called when download button was clicked. More...
 
void OnViewButtonClicked ()
 Called when view button was clicked. More...
 
void OnStartDicomImport (const QString &)
 Called when adding a dicom directory. Starts a thread adding the directory. More...
 
void OnSeriesSelectionChanged (const QStringList &s)
 

Signals

void SignalStartDicomImport (const QStringList &)
 emitted when import into database is finished. More...
 
void SignalDicomToDataManager (QHash< QString, QVariant >)
 emitted when view button is clicked. More...
 

Public Member Functions

 QmitkDicomExternalDataWidget (QWidget *parent)
 QmitkDicomExternalDataWidget(QWidget *parent) constructor. More...
 
virtual ~QmitkDicomExternalDataWidget ()
 QmitkDicomExternalDataWidget destructor. More...
 
virtual void CreateQtPartControl (QWidget *parent)
 CreateQtPartControl(QWidget *parent) sets the view objects from ui_QmitkDicomExternalDataWidgetControls.h. More...
 
void Initialize ()
 Initializes the widget. This method has to be called before widget can start. More...
 

Static Public Attributes

static const std::string Widget_ID
 

Protected Member Functions

QStringList GetFileNamesFromIndex ()
 Get the list of filepath from current selected index in TreeView. All file paths referring to the index will be returned. More...
 
void SetupImportDialog ()
 SetupImportDialog Sets up import dialog. More...
 
void SetupProgressDialog ()
 

Protected Attributes

ctkDICOMDatabase * m_ExternalDatabase
 
ctkDICOMIndexer * m_ExternalIndexer
 
ctkFileDialog * m_ImportDialog
 
QProgressDialog * m_ProgressDialog
 
QString m_LastImportDirectory
 
Ui::QmitkDicomExternalDataWidgetControls * m_Controls
 

Detailed Description

QmitkDicomExternalDataWidget is a QWidget providing functionality for dicom import.

See also
QmitkFunctionality

Definition at line 44 of file QmitkDicomExternalDataWidget.h.

Constructor & Destructor Documentation

QmitkDicomExternalDataWidget::QmitkDicomExternalDataWidget ( QWidget *  parent)

QmitkDicomExternalDataWidget(QWidget *parent) constructor.

Parameters
parentis a pointer to the parent widget

Definition at line 30 of file QmitkDicomExternalDataWidget.cpp.

References CreateQtPartControl(), and Initialize().

QmitkDicomExternalDataWidget::~QmitkDicomExternalDataWidget ( )
virtual

QmitkDicomExternalDataWidget destructor.

Definition at line 37 of file QmitkDicomExternalDataWidget.cpp.

Member Function Documentation

void QmitkDicomExternalDataWidget::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 41 of file QmitkDicomExternalDataWidget.cpp.

References m_Controls, m_ExternalDatabase, m_ExternalIndexer, m_ImportDialog, m_ProgressDialog, OnDownloadButtonClicked(), OnSeriesSelectionChanged(), OnStartDicomImport(), OnViewButtonClicked(), SetupImportDialog(), and SetupProgressDialog().

Referenced by QmitkDicomExternalDataWidget().

QStringList QmitkDicomExternalDataWidget::GetFileNamesFromIndex ( )
protected

Get the list of filepath from current selected index in TreeView. All file paths referring to the index will be returned.

Definition at line 131 of file QmitkDicomExternalDataWidget.cpp.

References m_Controls, and m_ExternalDatabase.

Referenced by OnDownloadButtonClicked().

void QmitkDicomExternalDataWidget::Initialize ( )

Initializes the widget. This method has to be called before widget can start.

Definition at line 82 of file QmitkDicomExternalDataWidget.cpp.

References m_ExternalDatabase, m_ExternalIndexer, and MITK_ERROR.

Referenced by QmitkDicomExternalDataWidget().

void QmitkDicomExternalDataWidget::OnDownloadButtonClicked ( )
slot

Called when download button was clicked.

Definition at line 100 of file QmitkDicomExternalDataWidget.cpp.

References GetFileNamesFromIndex(), info(), and SignalStartDicomImport().

Referenced by CreateQtPartControl().

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

Definition at line 185 of file QmitkDicomExternalDataWidget.cpp.

References m_Controls.

Referenced by CreateQtPartControl().

void QmitkDicomExternalDataWidget::OnStartDicomImport ( const QString &  directory)
slot

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

Definition at line 175 of file QmitkDicomExternalDataWidget.cpp.

References m_ExternalDatabase, m_ExternalIndexer, m_ImportDialog, and m_LastImportDirectory.

Referenced by CreateQtPartControl().

void QmitkDicomExternalDataWidget::OnViewButtonClicked ( )
slot

Called when view button was clicked.

Definition at line 113 of file QmitkDicomExternalDataWidget.cpp.

References m_Controls, m_ExternalDatabase, and SignalDicomToDataManager().

Referenced by CreateQtPartControl().

void QmitkDicomExternalDataWidget::SetupImportDialog ( )
protected

SetupImportDialog Sets up import dialog.

Definition at line 190 of file QmitkDicomExternalDataWidget.cpp.

References m_ImportDialog.

Referenced by CreateQtPartControl().

void QmitkDicomExternalDataWidget::SetupProgressDialog ( )
protected

Definition at line 204 of file QmitkDicomExternalDataWidget.cpp.

References m_ProgressDialog.

Referenced by CreateQtPartControl().

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

emitted when view button is clicked.

Referenced by OnViewButtonClicked().

void QmitkDicomExternalDataWidget::SignalStartDicomImport ( const QStringList &  )
signal

emitted when import into database is finished.

Referenced by OnDownloadButtonClicked().

Member Data Documentation

Ui::QmitkDicomExternalDataWidgetControls* QmitkDicomExternalDataWidget::m_Controls
protected
ctkDICOMDatabase* QmitkDicomExternalDataWidget::m_ExternalDatabase
protected
ctkDICOMIndexer* QmitkDicomExternalDataWidget::m_ExternalIndexer
protected
ctkFileDialog* QmitkDicomExternalDataWidget::m_ImportDialog
protected
QString QmitkDicomExternalDataWidget::m_LastImportDirectory
protected

Definition at line 113 of file QmitkDicomExternalDataWidget.h.

Referenced by OnStartDicomImport().

QProgressDialog* QmitkDicomExternalDataWidget::m_ProgressDialog
protected

Definition at line 112 of file QmitkDicomExternalDataWidget.h.

Referenced by CreateQtPartControl(), and SetupProgressDialog().

const std::string QmitkDicomExternalDataWidget::Widget_ID
static

Definition at line 51 of file QmitkDicomExternalDataWidget.h.


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