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

Method RemoveData

Modules/Chart/src/QmitkChartWidget.cpp:412–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

410}
411
412void QmitkChartWidget::Impl::RemoveData(const std::string &label)
413{
414 for (ChartxyDataVector::iterator iter = m_C3xyData.begin(); iter != m_C3xyData.end(); ++iter)
415 {
416 if ((*iter)->GetLabel().toString().toStdString() == label)
417 {
418 m_C3xyData.erase(iter);
419 return;
420 }
421 }
422
423 throw std::invalid_argument("Cannot Remove Data because the label does not exist.");
424}
425
426void QmitkChartWidget::Impl::ClearData()
427{

Callers

nothing calls this directly

Calls 5

beginMethod · 0.45
endMethod · 0.45
toStringMethod · 0.45
GetLabelMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected