| 16 | #include <string> |
| 17 | |
| 18 | std::unique_ptr<QmitkChartxyData> mitk::ChartExampleTestHelper::GetDataOne() |
| 19 | { |
| 20 | auto myDataOne = std::make_unique<QmitkChartxyData>(); |
| 21 | |
| 22 | std::vector< std::pair<double, double> > data; |
| 23 | |
| 24 | for (int i = 0; i < 10; i++) |
| 25 | { |
| 26 | data.emplace_back(i, i); |
| 27 | } |
| 28 | |
| 29 | myDataOne->SetData(data); |
| 30 | myDataOne->SetLabel("DataOne"); |
| 31 | myDataOne->SetChartType("bar"); |
| 32 | myDataOne->SetColor("red"); |
| 33 | myDataOne->SetLineStyle("solid"); |
| 34 | |
| 35 | return myDataOne; |
| 36 | } |
| 37 | |
| 38 | std::unique_ptr<QmitkChartxyData> mitk::ChartExampleTestHelper::GetDataTwo() |
| 39 | { |
no test coverage detected