9 #include "fwGdcmIO/config.hpp" 10 #include "fwGdcmIO/exception/Failed.hpp" 12 #include <fwData/location/Folder.hpp> 13 #include <fwData/location/MultiFiles.hpp> 15 #include <fwDataIO/reader/GenericObjectReader.hpp> 17 #include <fwLog/Logger.hpp> 19 #include <fwMedData/DicomSeries.hpp> 20 #include <fwMedData/SeriesDB.hpp> 22 #include <fwServices/IService.hpp> 50 (()), ::fwDataIO::reader::factory::New< SeriesDB >);
52 typedef std::vector< SPTR(::fwMedData::DicomSeries) > DicomSeriesContainerType;
53 typedef std::vector< std::string > FilenameContainerType;
54 typedef std::vector< std::string > SupportedSOPClassContainerType;
63 FWGDCMIO_API
void read()
override;
70 FWGDCMIO_API
void readFromDicomSeriesDB(const ::fwMedData::SeriesDB::csptr& dicomSeriesDB,
71 const ::fwServices::IService::sptr& notifier
72 = ::fwServices::IService::sptr());
77 FWGDCMIO_API
void readDicomSeries();
80 FWGDCMIO_API
bool isDicomDirAvailable();
83 FWGDCMIO_API DicomSeriesContainerType& getDicomSeries();
88 return m_isDicomdirActivated;
94 m_isDicomdirActivated = isDicomdirActivated;
100 return m_dicomFilterType;
106 m_dicomFilterType = dicomFilterType;
112 return m_supportedSOPClassContainer;
118 m_supportedSOPClassContainer = supportedSOPClassContainer;
139 m_enableBufferRotation = enabled;
153 void convertDicomSeries(const ::fwServices::IService::sptr& notifier = ::fwServices::IService::sptr());
164 DicomSeriesContainerType m_dicomSeriesContainer;
167 bool m_isDicomdirActivated;
170 std::string m_dicomFilterType;
173 SupportedSOPClassContainerType m_supportedSOPClassContainer;
176 ::fwLog::Logger::sptr m_logger;
182 bool m_enableBufferRotation;
This class is an interface for class managing job.
const ::fwLog::Logger::sptr & getLogger() const
Get Logger.
void setBufferRotationEnabled(bool enabled)
Enable buffer rotation.
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
The namespace fwGdcmIO contains reader, writer and helper for dicom data.
generic class for all object readers.
void setDicomdirActivated(const bool &isDicomdirActivated)
Set Set whether the reader must use the dicomdir file or not.
This class adds patient(s) from DICOM file(s) to fwData::SeriesDB.
const SupportedSOPClassContainerType & getSupportedSOPClassContainer() const
Get Supported SOP Class.
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
const std::string & getDicomFilterType() const
Get Dicom filter type that must be applied prior to the reading process.
void setDicomFilterType(const std::string &dicomFilterType)
Set Dicom filter type that must be applied prior to the reading process.
This class manages an aggregation of IJob.
void setLogger(const ::fwLog::Logger::sptr &logger)
Set Logger.
This class is derived by reader/writer.
const bool & getDicomdirActivated() const
Get Set whether the reader must use the dicomdir file or not.
This class is derived by reader/writer.
This namespace fwJobs provides jobs management.
void setSupportedSOPClassContainer(const SupportedSOPClassContainerType &supportedSOPClassContainer)
Set Supported SOP Class.
This class manages a job.
This class proposes a mapping between a SignalKeyType and a SignalBase.