MCPcopy Create free account
hub / github.com/Kitware/VTK / AddDICOMTagCallback

Method AddDICOMTagCallback

Utilities/DICOMParser/DICOMParser.cxx:549–564  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

547}
548
549void DICOMParser::AddDICOMTagCallback(
550 doublebyte group, doublebyte element, VRTypes datatype, DICOMCallback* cb)
551{
552 DICOMParserMap::iterator miter = Implementation->Map.find(DICOMMapKey(group, element));
553 if (miter != Implementation->Map.end())
554 {
555 std::vector<DICOMCallback*>* callbacks = (*miter).second.second;
556 callbacks->push_back(cb);
557 }
558 else
559 {
560 std::vector<DICOMCallback*>* callback = new std::vector<DICOMCallback*>;
561 callback->push_back(cb);
562 this->SetDICOMTagCallbacks(group, element, datatype, callback);
563 }
564}
565
566void DICOMParser::AddDICOMTagCallbackToAllTags(DICOMCallback* cb)
567{

Callers 4

ReadHeaderMethod · 0.95
RegisterCallbacksMethod · 0.80

Calls 5

SetDICOMTagCallbacksMethod · 0.95
DICOMMapKeyClass · 0.85
findMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected