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 Attributes | Properties | List of all members
ctkDICOMAppWidget Class Reference

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

Inheritance diagram for ctkDICOMAppWidget:
Inheritance graph
[legend]
Collaboration diagram for ctkDICOMAppWidget:
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 onSeriesAdded (QString)
 
void onStudyAdded (QString)
 
void openExportDialog ()
 
void openImportDialog ()
 
void openQueryDialog ()
 
void resetModel ()
 
void resumeModel ()
 
void setDatabaseDirectory (const QString &directory)
 
void suspendModel ()
 

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

 ctkDICOMAppWidget (QWidget *parent=0)
 
ctkDICOMDatabasedatabase ()
 
QString databaseDirectory () const
 Directory being used to store the dicom database. More...
 
bool displayImportSummary ()
 
int instancesAddedDuringImport ()
 
int patientsAddedDuringImport ()
 Accessors to status of last directory import operation. More...
 
bool searchWidgetPopUpMode ()
 
int seriesAddedDuringImport ()
 
void setDisplayImportSummary (bool)
 
void setSearchWidgetPopUpMode (bool flag)
 
void setTagsToPrecache (const QStringList tags)
 
int studiesAddedDuringImport ()
 
const QStringList tagsToPrecache ()
 
void updateDatabaseSchemaIfNeeded ()
 
virtual ~ctkDICOMAppWidget ()
 

Protected Slots

void onAutoPlayCheckboxStateChanged (int state)
 To be called when auto-play checkbox state changed. More...
 
void onAutoPlayTimer ()
 Called by timer for auto-play functionality. More...
 
void onImagePreviewDisplayed (int imageID, int count)
 To be called after image preview displayed an image. More...
 
void onModelSelected (const QModelIndex &index)
 
void onNextImage ()
 To be called when previous and next buttons are clicked. More...
 
void onNextSeries ()
 
void onNextStudy ()
 
void onPreviousImage ()
 
void onPreviousSeries ()
 
void onPreviousStudy ()
 
void onQueryRetrieveFinished ()
 To be called when dialog finishes. More...
 
void onSearchParameterChanged ()
 To be called when search parameters in query widget changed. More...
 
void onThumbnailDoubleClicked (const ctkThumbnailLabel &widget)
 To be called when a thumbnail in thumbnail list widget is double-clicked. More...
 
void onThumbnailSelected (const ctkThumbnailLabel &widget)
 To be called when a thumbnail in thumbnail list widget is selected. More...
 
void onThumbnailWidthSliderValueChanged (int val)
 To be called when the value of thumbnail size slider bar is changed. More...
 
void onTreeCollapsed (const QModelIndex &index)
 To be called when an entry of the tree list is collapsed. More...
 
void onTreeExpanded (const QModelIndex &index)
 To be called when an entry of the tree list is expanded. More...
 

Protected Attributes

QScopedPointer< ctkDICOMAppWidgetPrivate > d_ptr
 

Properties

ctkDICOMDatabase database
 
QString databaseDirectory
 
bool displayImportSummary
 
bool searchWidgetPopUpMode
 
QStringList tagsToPrecache
 

Detailed Description

Definition at line 35 of file ctkDICOMAppWidget.h.

Member Typedef Documentation

Definition at line 45 of file ctkDICOMAppWidget.h.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Directory being used to store the dicom database.

void ctkDICOMAppWidget::databaseDirectoryChanged ( const QString &  )
signal

Emited when directory is changed.

void ctkDICOMAppWidget::directoryImported ( )
signal

Emited when the directory import operation has completed.

bool ctkDICOMAppWidget::displayImportSummary ( )
int ctkDICOMAppWidget::instancesAddedDuringImport ( )
void ctkDICOMAppWidget::onAutoPlayCheckboxStateChanged ( int  state)
protectedslot

To be called when auto-play checkbox state changed.

void ctkDICOMAppWidget::onAutoPlayTimer ( )
protectedslot

Called by timer for auto-play functionality.

void ctkDICOMAppWidget::onFileIndexed ( const QString &  filePath)
slot
void ctkDICOMAppWidget::onImagePreviewDisplayed ( int  imageID,
int  count 
)
protectedslot

To be called after image preview displayed an image.

void ctkDICOMAppWidget::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 ctkDICOMAppWidget::onInstanceAdded ( QString  )
slot
void ctkDICOMAppWidget::onModelSelected ( const QModelIndex &  index)
protectedslot
void ctkDICOMAppWidget::onNextImage ( )
protectedslot

To be called when previous and next buttons are clicked.

void ctkDICOMAppWidget::onNextSeries ( )
protectedslot
void ctkDICOMAppWidget::onNextStudy ( )
protectedslot
void ctkDICOMAppWidget::onPatientAdded ( int  ,
QString  ,
QString  ,
QString   
)
slot

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

void ctkDICOMAppWidget::onPreviousImage ( )
protectedslot
void ctkDICOMAppWidget::onPreviousSeries ( )
protectedslot
void ctkDICOMAppWidget::onPreviousStudy ( )
protectedslot
void ctkDICOMAppWidget::onQueryRetrieveFinished ( )
protectedslot

To be called when dialog finishes.

void ctkDICOMAppWidget::onRemoveAction ( )
slot
void ctkDICOMAppWidget::onSearchParameterChanged ( )
protectedslot

To be called when search parameters in query widget changed.

void ctkDICOMAppWidget::onSeriesAdded ( QString  )
slot
void ctkDICOMAppWidget::onStudyAdded ( QString  )
slot
void ctkDICOMAppWidget::onThumbnailDoubleClicked ( const ctkThumbnailLabel widget)
protectedslot

To be called when a thumbnail in thumbnail list widget is double-clicked.

void ctkDICOMAppWidget::onThumbnailSelected ( const ctkThumbnailLabel widget)
protectedslot

To be called when a thumbnail in thumbnail list widget is selected.

void ctkDICOMAppWidget::onThumbnailWidthSliderValueChanged ( int  val)
protectedslot

To be called when the value of thumbnail size slider bar is changed.

void ctkDICOMAppWidget::onTreeCollapsed ( const QModelIndex &  index)
protectedslot

To be called when an entry of the tree list is collapsed.

void ctkDICOMAppWidget::onTreeExpanded ( const QModelIndex &  index)
protectedslot

To be called when an entry of the tree list is expanded.

void ctkDICOMAppWidget::openExportDialog ( )
slot
void ctkDICOMAppWidget::openImportDialog ( )
slot
void ctkDICOMAppWidget::openQueryDialog ( )
slot
int ctkDICOMAppWidget::patientsAddedDuringImport ( )

Accessors to status of last directory import operation.

void ctkDICOMAppWidget::queryRetrieveFinished ( )
signal

Emited when query/retrieve operation has happened.

void ctkDICOMAppWidget::resetModel ( )
slot
void ctkDICOMAppWidget::resumeModel ( )
slot
bool ctkDICOMAppWidget::searchWidgetPopUpMode ( )
int ctkDICOMAppWidget::seriesAddedDuringImport ( )
void ctkDICOMAppWidget::setDatabaseDirectory ( const QString &  directory)
slot
void ctkDICOMAppWidget::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 ctkDICOMAppWidget::setSearchWidgetPopUpMode ( bool  flag)

Setting search widget pop-up mode Default value is false. Setting it to true will make search widget to be displayed as pop-up widget

void ctkDICOMAppWidget::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 ctkDICOMAppWidget::studiesAddedDuringImport ( )
void ctkDICOMAppWidget::suspendModel ( )
slot
const QStringList ctkDICOMAppWidget::tagsToPrecache ( )
void ctkDICOMAppWidget::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<ctkDICOMAppWidgetPrivate> ctkDICOMAppWidget::d_ptr
protected

Definition at line 116 of file ctkDICOMAppWidget.h.

Property Documentation

ctkDICOMDatabase ctkDICOMAppWidget::database
read

Definition at line 38 of file ctkDICOMAppWidget.h.

QString ctkDICOMAppWidget::databaseDirectory
readwrite

Definition at line 39 of file ctkDICOMAppWidget.h.

bool ctkDICOMAppWidget::displayImportSummary
readwrite

Definition at line 42 of file ctkDICOMAppWidget.h.

bool ctkDICOMAppWidget::searchWidgetPopUpMode
readwrite

Definition at line 40 of file ctkDICOMAppWidget.h.

QStringList ctkDICOMAppWidget::tagsToPrecache
readwrite

Definition at line 41 of file ctkDICOMAppWidget.h.


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