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

Method AddData2D

Modules/Chart/src/QmitkChartWidget.cpp:282–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282void QmitkChartWidget::Impl::AddData2D(const std::vector< std::pair<double, double> > &data2D,
283 const std::string &label,
284 QmitkChartWidget::ChartType type)
285{
286 const std::string chartTypeName(m_ChartTypeToName.at(type));
287
288 auto definedLabels = GetDataLabels(m_C3xyData);
289 auto uniqueLabel = GetUniqueLabelName(definedLabels, label);
290
291 unsigned int sizeOfC3xyData = static_cast<unsigned int>(m_C3xyData.size());
292 m_C3xyData.push_back(std::make_unique<QmitkChartxyData>(data2D,
293 QVariant(QString::fromStdString(uniqueLabel)),
294 QVariant(QString::fromStdString(chartTypeName)),
295 QVariant(sizeOfC3xyData)));
296}
297
298void QmitkChartWidget::Impl::AddChartExampleData(const std::vector< std::pair<double, double> >& data2D,
299 const std::string& label,

Callers 1

SetHistogramMethod · 0.80

Calls 2

atMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected