fw4spl
fwGdcmIO::helper::DicomDataWriter Class Reference

This class contains helpers to write information into GDCM datasets. More...

#include <DicomDataWriter.hxx>

Public Member Functions

template<std::uint16_t GROUP, std::uint16_t ELEMENT>
static::gdcm::SmartPointer< ::gdcm::SequenceOfItems > createAndSetSequenceTagValue (::gdcm::DataSet &dataset)
 Create and set a sequence of items with a tag in the specified data set. More...
 

Static Public Member Functions

template<std::uint16_t GROUP, std::uint16_t ELEMENT>
static void setEmptyTagValue (::gdcm::DataSet &dataset)
 Insert an empty tag in a data set. Useful for empty type 2 tags. More...
 
template<typename T , std::uint16_t GROUP, std::uint16_t ELEMENT>
static void setTagValue (const T &value,::gdcm::DataSet &dataset)
 Insert the value of a tag in a data set. More...
 
template<std::uint16_t GROUP, std::uint16_t ELEMENT>
static void setTagValue (const std::string &value,::gdcm::DataSet &dataset)
 Insert the string value of a tag in a data set. More...
 
template<typename T , std::uint16_t GROUP, std::uint16_t ELEMENT>
static void setTagValues (const T *array, const size_t size,::gdcm::DataSet &dataset)
 Insert multiple values of a tag in a data set. More...
 
template<std::uint16_t GROUP, std::uint16_t ELEMENT>
static void setSequenceTagValue (::gdcm::SmartPointer< ::gdcm::SequenceOfItems > sequence,::gdcm::DataSet &dataset)
 Set and insert a sequence of items with a tag in the specified data set. More...
 
template<std::uint16_t GROUP, std::uint16_t ELEMENT>
static void setAndMergeSequenceTagValue (::gdcm::SmartPointer< ::gdcm::SequenceOfItems > sequence,::gdcm::DataSet &dataset)
 Insert a sequence of items with a tag in the specified data set. If the tag already exists, items of the old and new sequences are added in a new one. More...
 
template<std::uint16_t GROUP, std::uint16_t ELEMENT>
static void setCodeSequenceTagValue (::fwGdcmIO::container::DicomCodedAttribute attribute,::gdcm::DataSet &dataset)
 Set tag value for the code sequence. More...
 

Detailed Description

This class contains helpers to write information into GDCM datasets.

Definition at line 27 of file DicomDataWriter.hxx.

Member Function Documentation

template<std::uint16_t GROUP, std::uint16_t ELEMENT>
static ::gdcm::SmartPointer< ::gdcm::SequenceOfItems > fwGdcmIO::helper::DicomDataWriter::createAndSetSequenceTagValue ( ::gdcm::DataSet &  dataset)
inline

Create and set a sequence of items with a tag in the specified data set.

Parameters
[in]datasetData set
Template Parameters
GROUPGroup of the tag
ELEMENTElement of the tag

Definition at line 121 of file DicomDataWriter.hxx.

template<std::uint16_t GROUP, std::uint16_t ELEMENT>
static void fwGdcmIO::helper::DicomDataWriter::setAndMergeSequenceTagValue ( ::gdcm::SmartPointer< ::gdcm::SequenceOfItems >  sequence,
::gdcm::DataSet &  dataset 
)
inlinestatic

Insert a sequence of items with a tag in the specified data set. If the tag already exists, items of the old and new sequences are added in a new one.

Parameters
[in]sequenceSequence of items to insert
[in]datasetData set
Template Parameters
GROUPGroup of the tag
ELEMENTElement of the tag

Definition at line 139 of file DicomDataWriter.hxx.

template<std::uint16_t GROUP, std::uint16_t ELEMENT>
static void fwGdcmIO::helper::DicomDataWriter::setCodeSequenceTagValue ( ::fwGdcmIO::container::DicomCodedAttribute  attribute,
::gdcm::DataSet &  dataset 
)
inlinestatic

Set tag value for the code sequence.

Parameters
[in]attributeattribute to set
[in]datasetData set
Template Parameters
GROUPGroup of the tag
ELEMENTElement of the tag

Definition at line 172 of file DicomDataWriter.hxx.

References fwGdcmIO::container::DicomCodedAttribute::getCodeMeaning(), fwGdcmIO::container::DicomCodedAttribute::getCodeValue(), fwGdcmIO::container::DicomCodedAttribute::getCodingSchemeDesignator(), and fwGdcmIO::container::DicomCodedAttribute::getCodingSchemeVersion().

+ Here is the call graph for this function:

template<std::uint16_t GROUP, std::uint16_t ELEMENT>
static void fwGdcmIO::helper::DicomDataWriter::setEmptyTagValue ( ::gdcm::DataSet &  dataset)
inlinestatic

Insert an empty tag in a data set. Useful for empty type 2 tags.

Parameters
[in]datasetData set of tags
Template Parameters
GROUPGroup of the tag
ELEMENTElement of the tag

Definition at line 38 of file DicomDataWriter.hxx.

template<std::uint16_t GROUP, std::uint16_t ELEMENT>
static void fwGdcmIO::helper::DicomDataWriter::setSequenceTagValue ( ::gdcm::SmartPointer< ::gdcm::SequenceOfItems >  sequence,
::gdcm::DataSet &  dataset 
)
inlinestatic

Set and insert a sequence of items with a tag in the specified data set.

Parameters
[in]sequenceSequence of items to insert
[in]datasetData set
Template Parameters
GROUPGroup of the tag
ELEMENTElement of the tag

Definition at line 101 of file DicomDataWriter.hxx.

template<typename T , std::uint16_t GROUP, std::uint16_t ELEMENT>
static void fwGdcmIO::helper::DicomDataWriter::setTagValue ( const T &  value,
::gdcm::DataSet &  dataset 
)
inlinestatic

Insert the value of a tag in a data set.

Parameters
[in]valueValue to set
[in]datasetData set of tags
Template Parameters
TType of value
GROUPGroup of the tag
ELEMENTElement of the tag

Definition at line 53 of file DicomDataWriter.hxx.

template<std::uint16_t GROUP, std::uint16_t ELEMENT>
static void fwGdcmIO::helper::DicomDataWriter::setTagValue ( const std::string &  value,
::gdcm::DataSet &  dataset 
)
inlinestatic

Insert the string value of a tag in a data set.

Parameters
[in]valueValue to set
[in]datasetData set of tags
Template Parameters
GROUPGroup of the tag
ELEMENTElement of the tag

Definition at line 68 of file DicomDataWriter.hxx.

template<typename T , std::uint16_t GROUP, std::uint16_t ELEMENT>
static void fwGdcmIO::helper::DicomDataWriter::setTagValues ( const T *  array,
const size_t  size,
::gdcm::DataSet &  dataset 
)
inlinestatic

Insert multiple values of a tag in a data set.

Parameters
[in]arrayAn Array.
[in]sizeSize of the array.
[in]datasetData set of tags.
Template Parameters
TType of pointer.
GROUPGroup of the tag.
ELEMENTElement of the tag.

Definition at line 83 of file DicomDataWriter.hxx.


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