MeVisLab Toolbox Reference
ml::RelatedMultiFileVolumeTools Namespace Reference

Functions

MLDIRECTDICOMIMPORTOUTPUTS_EXPORT void updateSourceImageReferences (DCMTree::Const_TreePtr dcmTree, MultiFileVolumeList &volList, std::set< size_t > &srcRefs, std::set< size_t > &forRefs, DicomMessageCollector &dcmMsgCollector)
 Searches referenced or source images in dcmTree and returns their indexes into volList. More...
 
MLDIRECTDICOMIMPORTOUTPUTS_EXPORT void setUpVolumeIndexFields (const std::set< size_t > &foundVolumeIndexes, IntField &firstRelatedVolumeIndexFld, StringField &relatedVolumeIndexesFld)
 Sets the first index from foundVolumeIndexes as index in firstRelatedVolumeIndexFld or -1 if foundVolumeIndexes is empty; relatedVolumeIndexesFld will be set to a space separated list of all indexes from foundVolumeIndexes or to an empty string if foundVolumeIndexes is empty. More...
 
MLDIRECTDICOMIMPORTOUTPUTS_EXPORT void setUpVolumeIndexFields (const std::set< size_t > &foundVolumeIndexes1, const std::set< size_t > &foundVolumeIndexes2, IntField &firstRelatedVolumeIndexFld, StringField &relatedVolumeIndexesFld)
 Generates an ordered sequence with all indexes from foundVolumeIndexes1 and appends all indexes from foundVolumeIndexes2 which still are not part of the sequence; the fields firstRelatedVolumeIndexFld and relatedVolumeIndexesFld then are set as described for setUpVolumeIndexFields with one set. More...
 

Function Documentation

◆ setUpVolumeIndexFields() [1/2]

MLDIRECTDICOMIMPORTOUTPUTS_EXPORT void ml::RelatedMultiFileVolumeTools::setUpVolumeIndexFields ( const std::set< size_t > &  foundVolumeIndexes,
IntField firstRelatedVolumeIndexFld,
StringField relatedVolumeIndexesFld 
)

Sets the first index from foundVolumeIndexes as index in firstRelatedVolumeIndexFld or -1 if foundVolumeIndexes is empty; relatedVolumeIndexesFld will be set to a space separated list of all indexes from foundVolumeIndexes or to an empty string if foundVolumeIndexes is empty.

◆ setUpVolumeIndexFields() [2/2]

MLDIRECTDICOMIMPORTOUTPUTS_EXPORT void ml::RelatedMultiFileVolumeTools::setUpVolumeIndexFields ( const std::set< size_t > &  foundVolumeIndexes1,
const std::set< size_t > &  foundVolumeIndexes2,
IntField firstRelatedVolumeIndexFld,
StringField relatedVolumeIndexesFld 
)

Generates an ordered sequence with all indexes from foundVolumeIndexes1 and appends all indexes from foundVolumeIndexes2 which still are not part of the sequence; the fields firstRelatedVolumeIndexFld and relatedVolumeIndexesFld then are set as described for setUpVolumeIndexFields with one set.

◆ updateSourceImageReferences()

MLDIRECTDICOMIMPORTOUTPUTS_EXPORT void ml::RelatedMultiFileVolumeTools::updateSourceImageReferences ( DCMTree::Const_TreePtr  dcmTree,
MultiFileVolumeList volList,
std::set< size_t > &  srcRefs,
std::set< size_t > &  forRefs,
DicomMessageCollector dcmMsgCollector 
)

Searches referenced or source images in dcmTree and returns their indexes into volList.

Parameters
dcmTreeThe DICOM tree in which the series shall be searched.
volListThe MultiFileVolumeList in which the source images and UIDs shall be searched.
srcRefsThe set of indexes to be extended with the newly found related volume indexes.
forRefsThe set of indexes to be extended with newly found indexes corresponding to frame of reference tags.
dcmMsgCollectorCollects error, info and issue messages (typically related to a handle).