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

Method GetDataElementByLabel

Modules/Chart/src/QmitkChartWidget.cpp:476–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

474}
475
476QmitkChartxyData *QmitkChartWidget::Impl::GetDataElementByLabel(const std::string &label) const
477{
478 for (const auto &qmitkChartxyData : m_C3xyData)
479 {
480 if (qmitkChartxyData->GetLabel().toString() == label.c_str())
481 {
482 return qmitkChartxyData.get();
483 }
484 }
485 return nullptr;
486}
487
488QList<QVariant> QmitkChartWidget::Impl::GetDataLabels(const ChartxyDataVector &c3xyData) const
489{

Callers 2

CheckDataMethod · 0.80
UpdateSelectedDataMethod · 0.80

Calls 2

toStringMethod · 0.45
GetLabelMethod · 0.45

Tested by 1

CheckDataMethod · 0.64