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 Slots | Signals | Public Member Functions | Protected Attributes | List of all members
ctkDICOMIndexer Class Reference

Indexes DICOM images located in local directory into an Sql database. More...

#include <Libs/DICOM/Core/ctkDICOMIndexer.h>

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

Public Slots

void cancel ()
 

Signals

void foundFilesToIndex (int)
 
void indexingComplete ()
 
void indexingFileNumber (int)
 
void indexingFilePath (QString)
 
void progress (int)
 

Public Member Functions

Q_INVOKABLE bool addDicomdir (ctkDICOMDatabase &database, const QString &directoryName, const QString &destinationDirectoryName="")
 Adds directory to database by using DICOMDIR and optionally copies files to destinationDirectory. Scan the directory using Dcmtk and populate the database with all the DICOM images accordingly. More...
 
Q_INVOKABLE void addDirectory (ctkDICOMDatabase &database, const QString &directoryName, const QString &destinationDirectoryName="")
 Adds directory to database and optionally copies files to destinationDirectory. More...
 
Q_INVOKABLE void addFile (ctkDICOMDatabase &database, const QString filePath, const QString &destinationDirectoryName="")
 Adds a file to database and optionally copies the file to destinationDirectory. More...
 
Q_INVOKABLE void addListOfFiles (ctkDICOMDatabase &database, const QStringList &listOfFiles, const QString &destinationDirectoryName="")
 Adds a QStringList containing the file path to database and optionally copies files to destinationDirectory. More...
 
 ctkDICOMIndexer (QObject *parent=0)
 
Q_INVOKABLE void refreshDatabase (ctkDICOMDatabase &database, const QString &directoryName)
 
Q_INVOKABLE void waitForImportFinished ()
 Deprecated - no op. More...
 
virtual ~ctkDICOMIndexer ()
 

Protected Attributes

QScopedPointer< ctkDICOMIndexerPrivate > d_ptr
 

Detailed Description

Indexes DICOM images located in local directory into an Sql database.

Definition at line 37 of file ctkDICOMIndexer.h.

Constructor & Destructor Documentation

◆ ctkDICOMIndexer()

ctkDICOMIndexer::ctkDICOMIndexer ( QObject *  parent = 0)
explicit

◆ ~ctkDICOMIndexer()

virtual ctkDICOMIndexer::~ctkDICOMIndexer ( )
virtual

Member Function Documentation

◆ addDicomdir()

Q_INVOKABLE bool ctkDICOMIndexer::addDicomdir ( ctkDICOMDatabase database,
const QString &  directoryName,
const QString &  destinationDirectoryName = "" 
)

Adds directory to database by using DICOMDIR and optionally copies files to destinationDirectory. Scan the directory using Dcmtk and populate the database with all the DICOM images accordingly.

Returns
Returns false if there was an error while processing the DICOMDIR file.

◆ addDirectory()

Q_INVOKABLE void ctkDICOMIndexer::addDirectory ( ctkDICOMDatabase database,
const QString &  directoryName,
const QString &  destinationDirectoryName = "" 
)

Adds directory to database and optionally copies files to destinationDirectory.

Scan the directory using Dcmtk and populate the database with all the DICOM images accordingly.

◆ addFile()

Q_INVOKABLE void ctkDICOMIndexer::addFile ( ctkDICOMDatabase database,
const QString  filePath,
const QString &  destinationDirectoryName = "" 
)

Adds a file to database and optionally copies the file to destinationDirectory.

Scan the file using Dcmtk and populate the database with all the DICOM fields accordingly.

◆ addListOfFiles()

Q_INVOKABLE void ctkDICOMIndexer::addListOfFiles ( ctkDICOMDatabase database,
const QStringList &  listOfFiles,
const QString &  destinationDirectoryName = "" 
)

Adds a QStringList containing the file path to database and optionally copies files to destinationDirectory.

Scan the directory using Dcmtk and populate the database with all the DICOM images accordingly.

◆ cancel

void ctkDICOMIndexer::cancel ( )
slot

◆ foundFilesToIndex

void ctkDICOMIndexer::foundFilesToIndex ( int  )
signal

◆ indexingComplete

void ctkDICOMIndexer::indexingComplete ( )
signal

◆ indexingFileNumber

void ctkDICOMIndexer::indexingFileNumber ( int  )
signal

◆ indexingFilePath

void ctkDICOMIndexer::indexingFilePath ( QString  )
signal

◆ progress

void ctkDICOMIndexer::progress ( int  )
signal

◆ refreshDatabase()

Q_INVOKABLE void ctkDICOMIndexer::refreshDatabase ( ctkDICOMDatabase database,
const QString &  directoryName 
)

◆ waitForImportFinished()

Q_INVOKABLE void ctkDICOMIndexer::waitForImportFinished ( )

Deprecated - no op.

Deprecated:
Previously ensured that the QFuture threads have all finished indexing before returning control.

Member Data Documentation

◆ d_ptr

QScopedPointer<ctkDICOMIndexerPrivate> ctkDICOMIndexer::d_ptr
protected

Definition at line 105 of file ctkDICOMIndexer.h.


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