fw4spl
|
Image Information Entity class. More...
#include <Image.hpp>
Public Member Functions | |
FWGDCMIO_API | Image (const std::shared_ptr< ::gdcm::Writer > &writer, const std::shared_ptr< ::fwGdcmIO::container::DicomInstance > &instance, const ::fwData::Image::csptr &image, const ::fwLog::Logger::sptr &logger=nullptr, ProgressCallback progress=nullptr, CancelRequestedCallback cancel=nullptr) |
Constructor. More... | |
virtual FWGDCMIO_API | ~Image () |
Destructor. | |
virtual FWGDCMIO_API void | writeGeneralImageModule () |
Write General Image Module tags. More... | |
virtual FWGDCMIO_API void | writeGeneralImageModuleSpecificTags (unsigned int instanceNumber) |
Write General Image Module specific tags. More... | |
virtual FWGDCMIO_API void | writeImagePlaneModule () |
Write Image Plane Module tags. More... | |
virtual FWGDCMIO_API void | writeImagePlaneModuleSpecificTags (unsigned int instanceNumber) |
Write Image Plane Module tags. More... | |
virtual FWGDCMIO_API void | writeImagePixelModule () |
Write Image Pixel Module tags. More... | |
virtual FWGDCMIO_API void | writeImagePixelModuleSpecificTags (unsigned int instanceNumber) |
Write Image Pixel Module specific tags. More... | |
virtual FWGDCMIO_API void | writeVOILUTModule () |
Write VOI LUT Module tags. More... | |
virtual FWGDCMIO_API void | writeSOPCommonModule () |
Write SOP Common Module tags. More... | |
virtual FWGDCMIO_API void | writeSOPCommonModuleSpecificTags (unsigned int instanceNumber) |
Write SOP Common Module specific tags. More... | |
virtual FWGDCMIO_API void | writeCTImageModule () |
Write CT Image Module tags. More... | |
virtual FWGDCMIO_API void | writeMRImageModule () |
Write MR Image 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. | |
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 |
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. | |
Image Information Entity class.
Definition at line 23 of file io/fwGdcmIO/include/fwGdcmIO/writer/ie/Image.hpp.
fwGdcmIO::writer::ie::Image::Image | ( | const std::shared_ptr< ::gdcm::Writer > & | writer, |
const std::shared_ptr< ::fwGdcmIO::container::DicomInstance > & | instance, | ||
const ::fwData::Image::csptr & | image, | ||
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 27 of file io/fwGdcmIO/src/fwGdcmIO/writer/ie/Image.cpp.
|
virtual |
Write CT Image Module tags.
Definition at line 216 of file io/fwGdcmIO/src/fwGdcmIO/writer/ie/Image.cpp.
References fwGdcmIO::writer::ie::InformationEntity< ::fwData::Image >::m_writer.
|
virtual |
Write General Image Module tags.
Definition at line 45 of file io/fwGdcmIO/src/fwGdcmIO/writer/ie/Image.cpp.
|
virtual |
Write General Image Module specific tags.
[in] | instanceNumber | Instance number |
Definition at line 52 of file io/fwGdcmIO/src/fwGdcmIO/writer/ie/Image.cpp.
References fwGdcmIO::writer::ie::InformationEntity< ::fwData::Image >::m_writer.
|
virtual |
Write Image Pixel Module tags.
Definition at line 110 of file io/fwGdcmIO/src/fwGdcmIO/writer/ie/Image.cpp.
References fwGdcmIO::helper::DicomDataTools::getPhotometricInterpretation(), fwGdcmIO::helper::DicomDataTools::getPixelType(), fwGdcmIO::writer::ie::InformationEntity< ::fwData::Image >::m_instance, fwGdcmIO::writer::ie::InformationEntity< ::fwData::Image >::m_object, fwGdcmIO::writer::ie::InformationEntity< ::fwData::Image >::m_writer, and OSLM_TRACE.
|
virtual |
Write Image Pixel Module specific tags.
[in] | instanceNumber | Instance number |
Definition at line 145 of file io/fwGdcmIO/src/fwGdcmIO/writer/ie/Image.cpp.
References fwDataTools::helper::ImageGetter::getBuffer(), fwGdcmIO::writer::ie::InformationEntity< ::fwData::Image >::m_instance, fwGdcmIO::writer::ie::InformationEntity< ::fwData::Image >::m_object, fwGdcmIO::writer::ie::InformationEntity< ::fwData::Image >::m_writer, and SLM_ASSERT.
|
virtual |
Write Image Plane Module tags.
Definition at line 64 of file io/fwGdcmIO/src/fwGdcmIO/writer/ie/Image.cpp.
References fwGdcmIO::writer::ie::InformationEntity< ::fwData::Image >::m_object, fwGdcmIO::writer::ie::InformationEntity< ::fwData::Image >::m_writer, OSLM_TRACE, and SPTR.
|
virtual |
Write Image Plane Module tags.
[in] | instanceNumber | Instance number |
Definition at line 94 of file io/fwGdcmIO/src/fwGdcmIO/writer/ie/Image.cpp.
References fwGdcmIO::writer::ie::InformationEntity< ::fwData::Image >::m_object, fwGdcmIO::writer::ie::InformationEntity< ::fwData::Image >::m_writer, and SPTR.
|
virtual |
Write MR Image Module tags.
Definition at line 240 of file io/fwGdcmIO/src/fwGdcmIO/writer/ie/Image.cpp.
References fwGdcmIO::writer::ie::InformationEntity< ::fwData::Image >::m_writer.
|
virtual |
Write SOP Common Module tags.
Definition at line 192 of file io/fwGdcmIO/src/fwGdcmIO/writer/ie/Image.cpp.
References fwGdcmIO::writer::ie::InformationEntity< ::fwData::Image >::m_instance, fwGdcmIO::writer::ie::InformationEntity< ::fwData::Image >::m_writer, and SLM_TRACE.
|
virtual |
Write SOP Common Module specific tags.
[in] | instanceNumber | Instance number |
Definition at line 204 of file io/fwGdcmIO/src/fwGdcmIO/writer/ie/Image.cpp.
References fwGdcmIO::writer::ie::InformationEntity< ::fwData::Image >::m_instance, and fwGdcmIO::writer::ie::InformationEntity< ::fwData::Image >::m_writer.
|
virtual |
Write VOI LUT Module tags.
Definition at line 170 of file io/fwGdcmIO/src/fwGdcmIO/writer/ie/Image.cpp.
References fwGdcmIO::writer::ie::InformationEntity< ::fwData::Image >::m_object, fwGdcmIO::writer::ie::InformationEntity< ::fwData::Image >::m_writer, and OSLM_TRACE.