MCPcopy Create free account
hub / github.com/MITK/MITK / AddElement

Method AddElement

Modules/ROI/src/mitkROI.cpp:374–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372}
373
374void mitk::ROI::AddElement(const Element& element)
375{
376 const auto id = element.GetID();
377
378 if (m_Elements.count(id) != 0)
379 mitkThrow() << "ROI already contains an element with ID " << std::to_string(id) << '.';
380
381 m_Elements[id] = element;
382}
383
384const mitk::ROI::Element& mitk::ROI::GetElement(unsigned int id) const
385{

Callers 15

setUpMethod · 0.80
DeepScanningMethod · 0.80
RTPlanSequenceTagsMethod · 0.80
RTStructSequenceTagsMethod · 0.80
RTDoseSequenceTagsMethod · 0.80
PETSequenceTagsMethod · 0.80
setUpMethod · 0.80

Calls 2

countMethod · 0.80
GetIDMethod · 0.45

Tested by 15

setUpMethod · 0.64
DeepScanningMethod · 0.64
RTPlanSequenceTagsMethod · 0.64
RTStructSequenceTagsMethod · 0.64
RTDoseSequenceTagsMethod · 0.64
PETSequenceTagsMethod · 0.64
setUpMethod · 0.64