fw4spl
fwGdcmIO::helper::DicomDir Class Reference

DicomDir Helper. This class is used to extract a list of files from a dicomdir file. More...

#include <DicomDir.hpp>

Static Public Member Functions

static FWGDCMIO_API::boost::filesystem::path findDicomDir (const ::boost::filesystem::path &root)
 Find the DICOMDIR file in the parent arborescence. More...
 
static FWGDCMIO_API void retrieveDicomSeries (const ::boost::filesystem::path &dicomdir, std::vector< std::shared_ptr< ::fwMedData::DicomSeries > > &seriesDB, const std::shared_ptr< ::fwLog::Logger > &logger, std::function< void(std::uint64_t) > progress=nullptr, std::function< bool() > cancel=nullptr)
 Create DicomSeries from information stored in DICOMDIR. More...
 

Detailed Description

DicomDir Helper. This class is used to extract a list of files from a dicomdir file.

Definition at line 41 of file fwGdcmIO/include/fwGdcmIO/helper/DicomDir.hpp.

Member Function Documentation

boost::filesystem::path fwGdcmIO::helper::DicomDir::findDicomDir ( const ::boost::filesystem::path &  root)
static

Find the DICOMDIR file in the parent arborescence.

Returns
Path to the DICOMDIR or empty path if the DICOMDIR has not been found

Definition at line 35 of file fwGdcmIO/src/fwGdcmIO/helper/DicomDir.cpp.

References fwGdcmIO::helper::DicomDataReader::getTagValue(), OSLM_WARN_IF, SLM_ASSERT, SLM_ERROR, and SLM_WARN_IF.

Referenced by fwGdcmIO::reader::SeriesDB::isDicomDirAvailable(), and fwGdcmIO::reader::SeriesDB::readDicomSeries().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void fwGdcmIO::helper::DicomDir::retrieveDicomSeries ( const ::boost::filesystem::path &  dicomdir,
std::vector< std::shared_ptr< ::fwMedData::DicomSeries > > &  seriesDB,
const std::shared_ptr< ::fwLog::Logger > &  logger,
std::function< void(std::uint64_t) >  progress = nullptr,
std::function< bool() >  cancel = nullptr 
)
static

Create DicomSeries from information stored in DICOMDIR.

Parameters
dicomdirPath to dicomdir file
[out]seriesDBDicom series created
[in]fileLookupObserverfile lookup observer

Definition at line 202 of file fwGdcmIO/src/fwGdcmIO/helper/DicomDir.cpp.

References SLM_ASSERT, and SLM_ERROR.

Referenced by fwGdcmIO::reader::SeriesDB::readDicomSeries().

+ Here is the caller graph for this function:


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