Public Member Functions | Private Member Functions

ctkDICOMIndexer Class Reference

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

List of all members.

Public Member Functions

void addDirectory (QSqlDatabase database, const QString &directoryName, const QString &destinationDirectoryName="")
 add directory to database and optionally copy files to destinationDirectory
 ctkDICOMIndexer ()
void refreshDatabase (QSqlDatabase database, const QString &directoryName)
virtual ~ctkDICOMIndexer ()

Private Member Functions

 CTK_DECLARE_PRIVATE (ctkDICOMIndexer)

Detailed Description

Definition at line 33 of file ctkDICOMIndexer.h.


Constructor & Destructor Documentation

ctkDICOMIndexer::ctkDICOMIndexer (  )  [explicit]

Definition at line 78 of file ctkDICOMIndexer.cpp.

ctkDICOMIndexer::~ctkDICOMIndexer (  )  [virtual]

Definition at line 83 of file ctkDICOMIndexer.cpp.


Member Function Documentation

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

add directory to database and optionally copy files to destinationDirectory

these are for optimizing the import of image sequences since most information are identical for all slices

first we check if the file is already in the database

we check only patients with the same PatientID PatientID is not unique in DICOM, so we also compare Name and BirthDate and assume this is sufficient

found it

keep this for the next image

Definition at line 88 of file ctkDICOMIndexer.cpp.

ctkDICOMIndexer::CTK_DECLARE_PRIVATE ( ctkDICOMIndexer   )  [private]
void ctkDICOMIndexer::refreshDatabase ( QSqlDatabase  database,
const QString &  directoryName 
)

get all filenames from the database

Definition at line 403 of file ctkDICOMIndexer.cpp.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines