9 #include "fwDcmtkIO/config.hpp" 10 #include "fwDcmtkIO/reader/IObjectReader.hpp" 12 #include <fwData/location/Folder.hpp> 13 #include <fwData/location/MultiFiles.hpp> 15 #include <fwDataIO/reader/GenericObjectReader.hpp> 17 #include <fwServices/IService.hpp> 19 #include <fwTools/ProgressAdviser.hpp> 51 ::fwDataIO::reader::factory::New< SeriesDBReader >
55 typedef std::map< std::string, SPTR(::fwMedData::Patient) > PatientMapType;
56 typedef std::map< std::string, SPTR(::fwMedData::Study) > StudyMapType;
57 typedef std::map< std::string, SPTR(::fwMedData::Equipment) > EquipmentMapType;
58 typedef std::vector< SPTR(::fwMedData::DicomSeries) > DicomSeriesContainerType;
59 typedef std::vector< std::string > FilenameContainerType;
60 typedef std::vector< std::string > SupportedSOPClassContainerType;
67 FWDCMTKIO_API
void read()
override;
75 ::fwServices::IService::sptr notifier = ::fwServices::IService::sptr());
78 FWDCMTKIO_API
void readDicomSeries();
81 FWDCMTKIO_API
bool isDicomDirAvailable();
84 FWDCMTKIO_API DicomSeriesContainerType& getDicomSeries();
89 return m_isDicomdirActivated;
95 m_isDicomdirActivated = isDicomdirActivated;
101 return m_dicomFilterType;
107 m_dicomFilterType = dicomFilterType;
113 return m_supportedSOPClassContainer;
119 m_supportedSOPClassContainer = supportedSOPClassContainer;
125 FilenameContainerType getFilenames();
133 void addSeries(
const std::vector< std::string >& filenames);
158 void createSeries(DcmDataset* dataset,
const std::string& filename);
166 ::fwServices::IService::sptr notifier = ::fwServices::IService::sptr());
169 PatientMapType m_patientMap;
172 StudyMapType m_studyMap;
175 EquipmentMapType m_equipmentMap;
178 DicomSeriesContainerType m_dicomSeriesContainer;
181 bool m_isDicomdirActivated;
184 std::string m_dicomFilterType;
187 SupportedSOPClassContainerType m_supportedSOPClassContainer;
This class contains helper to generate Medical Data (SeriesDB, ImageSeries, ...). ...
void setDicomdirActivated(const bool &isDicomdirActivated)
Set Set whether the reader must use the dicomdir file or not.
Namespace containing medical data.
void setSupportedSOPClassContainer(const SupportedSOPClassContainerType &supportedSOPClassContainer)
Set Supported SOP Class.
Reads DICOM data from a directory path in order to create a SeriesDB object.
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
Holds equipment information.
generic class for all object readers.
const SupportedSOPClassContainerType & getSupportedSOPClassContainer() const
Get Supported SOP Class.
void setDicomFilterType(const std::string &dicomFilterType)
Set Dicom filter type that must be applied prior the reading process.
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
Holds patient information.
fwDcmtkIO contains classes used to pull Dicom images from a pacs using dcmtk library.
const std::string & getDicomFilterType() const
Get Dicom filter type that must be applied prior the reading process.
#define fwCoreAllowSharedFromThis()
Generate getSptr and getConstSptr methods.
This class is derived by reader/writer.
This class is derived by reader/writer.
const bool & getDicomdirActivated() const
Get Set whether the reader must use the dicomdir file or not.