fw4spl
|
Surface Information Entity class. More...
#include <Surface.hpp>
Public Member Functions | |
FWGDCMIO_API | Surface (const std::shared_ptr< ::gdcm::Writer > &writer, const std::shared_ptr< ::fwGdcmIO::container::DicomInstance > &instance, const std::shared_ptr< ::fwGdcmIO::container::DicomInstance > &imageInstance, const ::fwMedData::ModelSeries::csptr &series, const ::fwLog::Logger::sptr &logger=nullptr, ProgressCallback progress=nullptr, CancelRequestedCallback cancel=nullptr) |
Constructor. More... | |
virtual FWGDCMIO_API | ~Surface () |
Destructor. | |
FWGDCMIO_API bool | loadSegmentedPropertyRegistry (const ::boost::filesystem::path &filepath) |
Load Segmented Property Registry. More... | |
virtual FWGDCMIO_API void | writeSOPCommonModule () |
Write SOP Common Module tags. More... | |
virtual FWGDCMIO_API void | writeSurfaceSegmentationAndSurfaceMeshModules () |
Write Surface Segmentation Module tags. More... | |
Public Member Functions inherited from fwGdcmIO::writer::ie::InformationEntity< ::fwMedData::ModelSeries > | |
FWGDCMIO_API | InformationEntity (const std::shared_ptr< ::gdcm::Writer > &writer, const std::shared_ptr< ::fwGdcmIO::container::DicomInstance > &instance, const std::shared_ptr< const ::fwMedData::ModelSeries > &object, const ::fwLog::Logger::sptr &logger=nullptr, ProgressCallback progress=nullptr, CancelRequestedCallback cancel=nullptr) |
Constructor. More... | |
virtual FWGDCMIO_API | ~InformationEntity () |
Destructor. | |
Protected Member Functions | |
virtual FWGDCMIO_API void | writeSegmentSequence (const std::shared_ptr< const ::fwData::Reconstruction > &reconstruction,::gdcm::Item &segmentItem, const ::gdcm::SmartPointer< ::gdcm::Segment > &segment, unsigned short segmentNumber) |
Write Segment Item into Segment Sequence. More... | |
virtual FWGDCMIO_API void | writeSurfaceSequence (const std::shared_ptr< const ::fwData::Reconstruction > &reconstruction,::gdcm::Item &surfaceItem, const ::gdcm::SmartPointer< ::gdcm::Surface > &surface, unsigned short segmentNumber) |
Write Surface Item into Surface Sequence. More... | |
Protected Attributes | |
::fwGdcmIO::helper::SegmentedPropertyRegistry | m_segmentedPropertyRegistry |
Structure Dictionary. | |
std::shared_ptr< ::fwGdcmIO::container::DicomInstance > | m_imageInstance |
DICOM Image Instance. | |
Protected Attributes inherited from fwGdcmIO::writer::ie::InformationEntity< ::fwMedData::ModelSeries > | |
std::shared_ptr< ::gdcm::Writer > | m_writer |
GDCM Writer. | |
std::shared_ptr< ::fwGdcmIO::container::DicomInstance > | m_instance |
DICOM Instance. | |
std::shared_ptr< const ::fwMedData::ModelSeries > | 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< ::fwMedData::ModelSeries > | |
typedef std::function< void(std::uint64_t) > | ProgressCallback |
typedef std::function< bool() > | CancelRequestedCallback |
Surface Information Entity class.
Definition at line 28 of file writer/ie/Surface.hpp.
fwGdcmIO::writer::ie::Surface::Surface | ( | const std::shared_ptr< ::gdcm::Writer > & | writer, |
const std::shared_ptr< ::fwGdcmIO::container::DicomInstance > & | instance, | ||
const std::shared_ptr< ::fwGdcmIO::container::DicomInstance > & | imageInstance, | ||
const ::fwMedData::ModelSeries::csptr & | series, | ||
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] | series | Series data |
[in] | logger | Logger |
[in] | progress | Progress callback |
[in] | cancel | Cancel requested callback |
Definition at line 45 of file writer/ie/Surface.cpp.
References SLM_ASSERT.
bool fwGdcmIO::writer::ie::Surface::loadSegmentedPropertyRegistry | ( | const ::boost::filesystem::path & | filepath | ) |
Load Segmented Property Registry.
[in] | filepath | Path to the registry CSV file |
Definition at line 67 of file writer/ie/Surface.cpp.
References fwGdcmIO::writer::ie::InformationEntity< ::fwMedData::ModelSeries >::m_logger, m_segmentedPropertyRegistry, and fwGdcmIO::helper::SegmentedPropertyRegistry::readSegmentedPropertyRegistryFile().
|
protectedvirtual |
Write Segment Item into Segment Sequence.
[in] | reconstruction | Reconstruction data |
[in] | segmentItem | GDCM segment item |
[in] | segment | GDCM segment |
[in] | segmentNumber | Segment number |
Definition at line 318 of file writer/ie/Surface.cpp.
References m_imageInstance, fwGdcmIO::writer::ie::InformationEntity< ::fwMedData::ModelSeries >::m_logger, and m_segmentedPropertyRegistry.
Referenced by writeSurfaceSegmentationAndSurfaceMeshModules().
|
virtual |
Write SOP Common Module tags.
Definition at line 74 of file writer/ie/Surface.cpp.
References fwGdcmIO::writer::ie::InformationEntity< ::fwMedData::ModelSeries >::m_instance, fwGdcmIO::writer::ie::InformationEntity< ::fwMedData::ModelSeries >::m_writer, and SLM_TRACE.
|
virtual |
Write Surface Segmentation Module tags.
Definition at line 91 of file writer/ie/Surface.cpp.
References fwGdcmIO::helper::DicomCodedAttribute::convertEntryToGDCMCodedAttribute(), fwGdcmIO::writer::ie::InformationEntity< ::fwMedData::ModelSeries >::m_logger, fwGdcmIO::writer::ie::InformationEntity< ::fwMedData::ModelSeries >::m_object, fwGdcmIO::writer::ie::InformationEntity< ::fwMedData::ModelSeries >::m_writer, SLM_WARN_IF, SPTR, writeSegmentSequence(), and writeSurfaceSequence().
|
protectedvirtual |
Write Surface Item into Surface Sequence.
[in] | reconstruction | Reconstruction data |
[in] | surfaceItem | GDCM surface item |
[in] | surface | GDCM surface |
[in] | segmentNumber | Associated segment number |
Definition at line 421 of file writer/ie/Surface.cpp.
References fwGdcmIO::helper::DicomDataTools::convertToPresentationType(), fwGdcmIO::container::DicomSurface::getCellBuffer(), fwGdcmIO::container::DicomSurface::getCellBufferSize(), fwGdcmIO::container::DicomSurface::getNormalBuffer(), fwGdcmIO::container::DicomSurface::getNormalBufferSize(), fwGdcmIO::container::DicomSurface::getPointBuffer(), and fwGdcmIO::container::DicomSurface::getPointBufferSize().
Referenced by writeSurfaceSegmentationAndSurfaceMeshModules().