fw4spl
|
Surface Information Entity class. More...
#include <Surface.hpp>
Public Member Functions | |
FWGDCMIO_API | Surface (const std::shared_ptr< const ::fwMedData::DicomSeries > &dicomSeries, const std::shared_ptr< ::gdcm::Reader > &reader, const std::shared_ptr< ::fwGdcmIO::container::DicomInstance > &instance, const ::fwMedData::ModelSeries::sptr &series, const ::fwLog::Logger::sptr &logger=nullptr, ProgressCallback progress=nullptr, CancelRequestedCallback cancel=nullptr) |
Constructor. More... | |
FWGDCMIO_API bool | loadSegmentedPropertyRegistry (const ::boost::filesystem::path &filepath) |
Load Segmented Property Registry. More... | |
virtual FWGDCMIO_API | ~Surface () |
Destructor. | |
virtual FWGDCMIO_API void | readSurfaceSegmentationAndSurfaceMeshModules () |
Read Surface Segmentation and Surface Mesh Modules. More... | |
Public Member Functions inherited from fwGdcmIO::reader::ie::InformationEntity< ::fwMedData::ModelSeries > | |
FWGDCMIO_API | InformationEntity (const std::shared_ptr< const ::fwMedData::DicomSeries > &dicomSeries, const std::shared_ptr< ::gdcm::Reader > &reader, const std::shared_ptr< ::fwGdcmIO::container::DicomInstance > &instance, const std::shared_ptr< ::fwMedData::ModelSeries > &object, const ::fwLog::Logger::sptr &logger=nullptr, const ProgressCallback progress=nullptr, CancelRequestedCallback cancel=nullptr) |
Constructor. More... | |
virtual FWGDCMIO_API | ~InformationEntity () |
Destructor. | |
Protected Member Functions | |
virtual void | readSurfaceSegmentationModule (const std::shared_ptr< ::fwData::Reconstruction > &reconstruction, const ::gdcm::SmartPointer< ::gdcm::Segment > &segment, const ::gdcm::Item &segmentItem) |
Read Surface Segmentation Module tags. More... | |
virtual FWGDCMIO_API void | readSurfaceMeshModule (const std::shared_ptr< ::fwData::Reconstruction > &reconstruction, const ::gdcm::SmartPointer< ::gdcm::Surface > &surface) |
Read Surface Mesh Module tags. More... | |
Protected Attributes | |
::fwGdcmIO::helper::SegmentedPropertyRegistry | m_segmentedPropertyRegistry |
Segment Property Registry. | |
Protected Attributes inherited from fwGdcmIO::reader::ie::InformationEntity< ::fwMedData::ModelSeries > | |
std::shared_ptr< const ::fwMedData::DicomSeries > | m_dicomSeries |
Dicom Series. | |
std::shared_ptr< ::gdcm::Reader > | m_reader |
GDCM Reader. | |
std::shared_ptr< ::fwGdcmIO::container::DicomInstance > | m_instance |
DICOM Instance. | |
std::shared_ptr< ::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::reader::ie::InformationEntity< ::fwMedData::ModelSeries > | |
typedef std::function< void(std::uint64_t) > | ProgressCallback |
typedef std::function< bool() > | CancelRequestedCallback |
Surface Information Entity class.
Definition at line 33 of file reader/ie/Surface.hpp.
FWGDCMIO_API fwGdcmIO::reader::ie::Surface::Surface | ( | const std::shared_ptr< const ::fwMedData::DicomSeries > & | dicomSeries, |
const std::shared_ptr< ::gdcm::Reader > & | reader, | ||
const std::shared_ptr< ::fwGdcmIO::container::DicomInstance > & | instance, | ||
const ::fwMedData::ModelSeries::sptr & | series, | ||
const ::fwLog::Logger::sptr & | logger = nullptr , |
||
ProgressCallback | progress = nullptr , |
||
CancelRequestedCallback | cancel = nullptr |
||
) |
Constructor.
[in] | dicomSeries | DicomSeries used to access computed tag values. |
[in] | reader | GDCM reader that must be enriched |
[in] | instance | DICOM instance used to share informations between modules |
[in] | series | Series data |
[in] | logger | Logger |
[in] | progress | Progress callback |
[in] | cancel | Cancel requested callback |
bool fwGdcmIO::reader::ie::Surface::loadSegmentedPropertyRegistry | ( | const ::boost::filesystem::path & | filepath | ) |
Load Segmented Property Registry.
[in] | filepath | Path to the registry CSV file |
Definition at line 64 of file reader/ie/Surface.cpp.
|
protectedvirtual |
Read Surface Mesh Module tags.
[in,out] | reconstruction | Reconstruction data |
[in] | surface | GDCM surface |
Definition at line 253 of file reader/ie/Surface.cpp.
References fwGdcmIO::helper::DicomDataTools::convertToRepresentationMode(), and OSLM_TRACE.
|
virtual |
Read Surface Segmentation and Surface Mesh Modules.
Definition at line 71 of file reader/ie/Surface.cpp.
References SLM_WARN_IF, and SPTR.
|
protectedvirtual |
Read Surface Segmentation Module tags.
[in,out] | reconstruction | Reconstruction data |
[in] | segment | GDCM segment |
[in] | segmentItem | GDCM segment item |
Definition at line 197 of file reader/ie/Surface.cpp.
References fwData::Reconstruction::s_NO_COMPUTED_MASK_VOLUME, and SLM_WARN_IF.