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

Method GetDataFive

Modules/Chart/src/mitkChartExampleTestHelper.cpp:98–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98std::unique_ptr<QmitkChartxyData> mitk::ChartExampleTestHelper::GetDataFive()
99{
100 auto myDataFive = std::make_unique<QmitkChartxyData>();
101
102 std::vector< std::pair<double, double> > data;
103
104 for (int i = 40; i < 50; i++)
105 {
106 data.emplace_back(i, i);
107 }
108
109 myDataFive->SetData(data);
110 myDataFive->SetLabel("DataFive");
111 myDataFive->SetChartType("bar");
112 myDataFive->SetColor("black");
113 myDataFive->SetLineStyle("solid");
114
115 return myDataFive;
116}
117
118QmitkChartWidget::ChartType mitk::ChartExampleTestHelper::ReturnChartTypeByString(std::string chartTypeString)
119{

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