fw4spl
fwGdcmIO::reader::ie::Surface Class Reference

Surface Information Entity class. More...

#include <Surface.hpp>

+ Inheritance diagram for fwGdcmIO::reader::ie::Surface:
+ Collaboration diagram for fwGdcmIO::reader::ie::Surface:

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::DicomSeriesm_dicomSeries
 Dicom Series.
 
std::shared_ptr< ::gdcm::Reader > m_reader
 GDCM Reader.
 
std::shared_ptr< ::fwGdcmIO::container::DicomInstancem_instance
 DICOM Instance.
 
std::shared_ptr< ::fwMedData::ModelSeriesm_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
 

Detailed Description

Surface Information Entity class.

Definition at line 33 of file reader/ie/Surface.hpp.

Constructor & Destructor Documentation

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.

Parameters
[in]dicomSeriesDicomSeries used to access computed tag values.
[in]readerGDCM reader that must be enriched
[in]instanceDICOM instance used to share informations between modules
[in]seriesSeries data
[in]loggerLogger
[in]progressProgress callback
[in]cancelCancel requested callback

Member Function Documentation

bool fwGdcmIO::reader::ie::Surface::loadSegmentedPropertyRegistry ( const ::boost::filesystem::path &  filepath)

Load Segmented Property Registry.

Parameters
[in]filepathPath to the registry CSV file
Returns
True on success

Definition at line 64 of file reader/ie/Surface.cpp.

void fwGdcmIO::reader::ie::Surface::readSurfaceMeshModule ( const std::shared_ptr< ::fwData::Reconstruction > &  reconstruction,
const ::gdcm::SmartPointer< ::gdcm::Surface > &  surface 
)
protectedvirtual

Read Surface Mesh Module tags.

Parameters
[in,out]reconstructionReconstruction data
[in]surfaceGDCM surface
See also
PS 3.3 C.27.1

Definition at line 253 of file reader/ie/Surface.cpp.

References fwGdcmIO::helper::DicomDataTools::convertToRepresentationMode(), and OSLM_TRACE.

+ Here is the call graph for this function:

void fwGdcmIO::reader::ie::Surface::readSurfaceSegmentationAndSurfaceMeshModules ( )
virtual

Read Surface Segmentation and Surface Mesh Modules.

See also
PS 3.3 C.8.23.1 and PS 3.3 C.27.1

Definition at line 71 of file reader/ie/Surface.cpp.

References SLM_WARN_IF, and SPTR.

void fwGdcmIO::reader::ie::Surface::readSurfaceSegmentationModule ( const std::shared_ptr< ::fwData::Reconstruction > &  reconstruction,
const ::gdcm::SmartPointer< ::gdcm::Segment > &  segment,
const ::gdcm::Item &  segmentItem 
)
protectedvirtual

Read Surface Segmentation Module tags.

Parameters
[in,out]reconstructionReconstruction data
[in]segmentGDCM segment
[in]segmentItemGDCM segment item
See also
PS 3.3 C.8.23.1

Definition at line 197 of file reader/ie/Surface.cpp.

References fwData::Reconstruction::s_NO_COMPUTED_MASK_VOLUME, and SLM_WARN_IF.


The documentation for this class was generated from the following files: