MeVisLab Toolbox Reference
ml::DicomModifyTools Namespace Reference

Functions

MLDICOMMODIFYFIELDADDONS_EXPORT std::string getCurrentDate ()
 Returns date string formatted as specified for DA Value Representation in DICOM standard. More...
 
MLDICOMMODIFYFIELDADDONS_EXPORT std::string getCurrentTime ()
 Returns time string formatted as specified for TM Value Representation in DICOM standard. More...
 
MLDICOMMODIFYFIELDADDONS_EXPORT void copyDicomTag (DCMTree::TreePtr dstTree, DCMTree::Const_TreePtr srcTree, DCMTree::RawTagId tagID)
 Copies DICOM tag from source tree to destination tree. More...
 
MLDICOMMODIFYFIELDADDONS_EXPORT std::string getTimezoneOffsetFromUTC ()
 Returns timezone offset string formatted as specified for Timezone Offset From UTC (0008,0201) tag in DICOM standard. More...
 

Function Documentation

◆ copyDicomTag()

MLDICOMMODIFYFIELDADDONS_EXPORT void ml::DicomModifyTools::copyDicomTag ( DCMTree::TreePtr  dstTree,
DCMTree::Const_TreePtr  srcTree,
DCMTree::RawTagId  tagID 
)

Copies DICOM tag from source tree to destination tree.

If passed tag is of sequence type, the whole sequence is copied. If tag already exists in the destination tree, it is overwritten. If either the destination or the source tree are NULL, then function does nothing.

Parameters
dstTree- Destination tree.
srcTree- Source tree.
tagId- Tag's ID.

◆ getCurrentDate()

MLDICOMMODIFYFIELDADDONS_EXPORT std::string ml::DicomModifyTools::getCurrentDate ( )

Returns date string formatted as specified for DA Value Representation in DICOM standard.

◆ getCurrentTime()

MLDICOMMODIFYFIELDADDONS_EXPORT std::string ml::DicomModifyTools::getCurrentTime ( )

Returns time string formatted as specified for TM Value Representation in DICOM standard.

◆ getTimezoneOffsetFromUTC()

MLDICOMMODIFYFIELDADDONS_EXPORT std::string ml::DicomModifyTools::getTimezoneOffsetFromUTC ( )

Returns timezone offset string formatted as specified for Timezone Offset From UTC (0008,0201) tag in DICOM standard.