fw4spl
|
Document Information Entity class. More...
#include <Document.hpp>
Public Member Functions | |
FWGDCMIO_API | Document (const std::shared_ptr< ::gdcm::Writer > &writer, const std::shared_ptr< ::fwGdcmIO::container::DicomInstance > &instance, const ::fwData::Image::csptr &image, bool use3DSR=false, const ::fwLog::Logger::sptr &logger=nullptr, ProgressCallback progress=nullptr, CancelRequestedCallback cancel=nullptr) |
Constructor. More... | |
virtual FWGDCMIO_API | ~Document () |
Destructor. | |
virtual FWGDCMIO_API void | writeSRDocumentGeneralModule () |
Write SR Document General Module tags. More... | |
virtual FWGDCMIO_API void | writeSRDocumentContentModule () |
Write SR Document Content Module tags. More... | |
FWGDCMIO_API void | writeSOPCommonModule () |
Write SOP Common Module tags. More... | |
Public Member Functions inherited from fwGdcmIO::writer::ie::InformationEntity< ::fwData::Image > | |
FWGDCMIO_API | InformationEntity (const std::shared_ptr< ::gdcm::Writer > &writer, const std::shared_ptr< ::fwGdcmIO::container::DicomInstance > &instance, const std::shared_ptr< const ::fwData::Image > &object, const ::fwLog::Logger::sptr &logger=nullptr, ProgressCallback progress=nullptr, CancelRequestedCallback cancel=nullptr) |
Constructor. More... | |
virtual FWGDCMIO_API | ~InformationEntity () |
Destructor. | |
Protected Member Functions | |
void | writePertinentOtherEvidenceSequence () |
Write Pertinent Other Evidence Sequence (0040,A385) | |
Protected Attributes | |
bool | m_use3DSR |
True if we must use 3DSR. | |
Protected Attributes inherited from fwGdcmIO::writer::ie::InformationEntity< ::fwData::Image > | |
std::shared_ptr< ::gdcm::Writer > | m_writer |
GDCM Writer. | |
std::shared_ptr< ::fwGdcmIO::container::DicomInstance > | m_instance |
DICOM Instance. | |
std::shared_ptr< const ::fwData::Image > | m_object |
FW4SPL Object. | |
::fwLog::Logger::sptr | m_logger |
Logger. | |
ProgressCallback | m_progressCallback |
Progress callback for jobs. | |
CancelRequestedCallback | m_cancelRequestedCallback |
Cancel information for jobs. | |
Additional Inherited Members | |
Public Types inherited from fwGdcmIO::writer::ie::InformationEntity< ::fwData::Image > | |
typedef std::function< void(std::uint64_t) > | ProgressCallback |
typedef std::function< bool() > | CancelRequestedCallback |
Document Information Entity class.
Definition at line 24 of file writer/ie/Document.hpp.
fwGdcmIO::writer::ie::Document::Document | ( | const std::shared_ptr< ::gdcm::Writer > & | writer, |
const std::shared_ptr< ::fwGdcmIO::container::DicomInstance > & | instance, | ||
const ::fwData::Image::csptr & | image, | ||
bool | use3DSR = false , |
||
const ::fwLog::Logger::sptr & | logger = nullptr , |
||
ProgressCallback | progress = nullptr , |
||
CancelRequestedCallback | cancel = nullptr |
||
) |
Constructor.
[in] | writer | GDCM writer that must be enriched |
[in] | instance | DICOM instance used to share information between modules |
[in] | image | Image data |
[in] | logger | Logger |
[in] | progress | Progress callback |
[in] | cancel | Cancel requested callback |
Definition at line 37 of file writer/ie/Document.cpp.
void fwGdcmIO::writer::ie::Document::writeSOPCommonModule | ( | ) |
Write SOP Common Module tags.
Definition at line 164 of file writer/ie/Document.cpp.
References m_use3DSR, and fwGdcmIO::writer::ie::InformationEntity< ::fwData::Image >::m_writer.
|
virtual |
Write SR Document Content Module tags.
Definition at line 148 of file writer/ie/Document.cpp.
References fwGdcmIO::writer::tid::MeasurementReport::createRootNode(), fwGdcmIO::writer::ie::InformationEntity< ::fwData::Image >::m_instance, fwGdcmIO::writer::ie::InformationEntity< ::fwData::Image >::m_object, m_use3DSR, fwGdcmIO::writer::ie::InformationEntity< ::fwData::Image >::m_writer, and SPTR.
|
virtual |
Write SR Document General Module tags.
Definition at line 57 of file writer/ie/Document.cpp.
References fwGdcmIO::writer::ie::InformationEntity< ::fwData::Image >::m_writer, and writePertinentOtherEvidenceSequence().