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

Method GetDataFour

Modules/Chart/src/mitkChartExampleTestHelper.cpp:78–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78std::unique_ptr<QmitkChartxyData> mitk::ChartExampleTestHelper::GetDataFour()
79{
80 auto myDataFour = std::make_unique<QmitkChartxyData>();
81
82 std::vector< std::pair<double, double> > data;
83
84 for (int i = 30; i < 40; i++)
85 {
86 data.emplace_back(i, i);
87 }
88
89 myDataFour->SetData(data);
90 myDataFour->SetLabel("DataFour");
91 myDataFour->SetChartType("bar");
92 myDataFour->SetColor("yellow");
93 myDataFour->SetLineStyle("solid");
94
95 return myDataFour;
96}
97
98std::unique_ptr<QmitkChartxyData> mitk::ChartExampleTestHelper::GetDataFive()
99{

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