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

Method GetDataTwo

Modules/Chart/src/mitkChartExampleTestHelper.cpp:38–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38std::unique_ptr<QmitkChartxyData> mitk::ChartExampleTestHelper::GetDataTwo()
39{
40 auto myDataTwo = std::make_unique<QmitkChartxyData>();
41
42 std::vector< std::pair<double, double> > data;
43
44 for (int i = 10; i < 20; i++)
45 {
46 data.emplace_back(i, i);
47 }
48
49 myDataTwo->SetData(data);
50 myDataTwo->SetLabel("DataTwo");
51 myDataTwo->SetChartType("bar");
52 myDataTwo->SetColor("green");
53 myDataTwo->SetLineStyle("solid");
54
55 return myDataTwo;
56}
57
58std::unique_ptr<QmitkChartxyData> mitk::ChartExampleTestHelper::GetDataThree()
59{

Callers 1

CheckDataMethod · 0.80

Calls 5

SetDataMethod · 0.45
SetLabelMethod · 0.45
SetChartTypeMethod · 0.45
SetColorMethod · 0.45
SetLineStyleMethod · 0.45

Tested by

no test coverage detected