| 410 | } |
| 411 | |
| 412 | void 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 | |
| 426 | void QmitkChartWidget::Impl::ClearData() |
| 427 | { |