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

Method GetDataThree

Modules/Chart/src/mitkChartExampleTestHelper.cpp:58–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58std::unique_ptr<QmitkChartxyData> mitk::ChartExampleTestHelper::GetDataThree()
59{
60 auto myDataThree = std::make_unique<QmitkChartxyData>();
61
62 std::vector< std::pair<double, double> > data;
63
64 for (int i = 20; i < 30; i++)
65 {
66 data.emplace_back(i, i);
67 }
68
69 myDataThree->SetData(data);
70 myDataThree->SetLabel("DataThree");
71 myDataThree->SetChartType("bar");
72 myDataThree->SetColor("blue");
73 myDataThree->SetLineStyle("solid");
74
75 return myDataThree;
76}
77
78std::unique_ptr<QmitkChartxyData> mitk::ChartExampleTestHelper::GetDataFour()
79{

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