| 280 | } |
| 281 | |
| 282 | void 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 | |
| 298 | void QmitkChartWidget::Impl::AddChartExampleData(const std::vector< std::pair<double, double> >& data2D, |
| 299 | const std::string& label, |
no test coverage detected