fw4spl
fwGdcmIO::container::DicomSurface Class Reference

This class defines one surface mesh item in order to transform into DICOM/FW4SPL form. More...

#include <DicomSurface.hpp>

Public Types

typedef std::uint32_t DicomCellValueType
 
typedef std::vector< float > DicomPointBufferType
 Container types to store points, cells and normals.
 
typedef std::vector< DicomCellValueTypeDicomCellBufferType
 Container types to store points, cells and normals.
 
typedef std::vector< float > DicomNormalBufferType
 Container types to store points, cells and normals.
 

Public Member Functions

FWGDCMIO_API DicomSurface (const ::fwData::Reconstruction::csptr &reconstruction)
 Constructor. More...
 
FWGDCMIO_API DicomSurface (const ::fwData::Mesh::PointValueType *pointBuffer, const ::fwData::Mesh::Id pointBufferSize, const DicomCellValueType *cellBuffer, const ::fwData::Mesh::Id cellBufferSize, const ::fwData::Mesh::NormalValueType *normalBuffer)
 Constructor. More...
 
FWGDCMIO_API ~DicomSurface ()
 Destructor.
 
FWGDCMIO_API::fwData::Mesh::sptr convertToData ()
 Convert DicomSurface container to FW4SPL Mesh.
 
FWGDCMIO_API const DicomPointBufferTypegetPointBuffer () const
 Return point coordinates buffer.
 
FWGDCMIO_API const DicomCellBufferTypegetCellBuffer () const
 Return cell buffer.
 
FWGDCMIO_API const DicomNormalBufferTypegetNormalBuffer () const
 Return normal buffer.
 
FWGDCMIO_API std::size_t getPointBufferSize () const
 Return point coordinates buffer size.
 
FWGDCMIO_API std::size_t getCellBufferSize () const
 Return cell buffer size.
 
FWGDCMIO_API std::size_t getNormalBufferSize () const
 Return normal buffer size.
 

Detailed Description

This class defines one surface mesh item in order to transform into DICOM/FW4SPL form.

Definition at line 25 of file DicomSurface.hpp.

Member Typedef Documentation

Typedef for cell index in DICOM world (32 bits see VR OL). FW4SPL uses uint64_t (see ::fwData::Mesh::CellValueType).

Definition at line 34 of file DicomSurface.hpp.

Constructor & Destructor Documentation

fwGdcmIO::container::DicomSurface::DicomSurface ( const ::fwData::Reconstruction::csptr &  reconstruction)

Constructor.

Parameters
[in]reconstructionSource reconstruction

Definition at line 40 of file DicomSurface.cpp.

References fwDataTools::Mesh::hasUniqueCellType().

+ Here is the call graph for this function:

fwGdcmIO::container::DicomSurface::DicomSurface ( const ::fwData::Mesh::PointValueType *  pointBuffer,
const ::fwData::Mesh::Id  pointBufferSize,
const DicomCellValueType cellBuffer,
const ::fwData::Mesh::Id  cellBufferSize,
const ::fwData::Mesh::NormalValueType *  normalBuffer 
)

Constructor.

Parameters
[in]pointBufferPoints buffer
[in]pointBufferSizePoints buffer size
[in]cellBufferCells buffer
[in]cellBufferSizeCells buffer size
[in]normalBufferNormals buffer

Definition at line 86 of file DicomSurface.cpp.


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