Medical Imaging Interaction Toolkit  2022.04.99-2e1e005b
Medical Imaging Interaction Toolkit
mitkChartExampleTestHelper.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef MITK_CHART_EXAMPLE_TEST_HELPER_H
14 #define MITK_CHART_EXAMPLE_TEST_HELPER_H
15 
16 #include <MitkChartExports.h>
17 
18 // mitk core
19 #include <QmitkChartxyData.h>
20 #include <QmitkChartWidget.h>
21 
22 // std includes
23 #include <map>
24 #include <memory>
25 #include <vector>
26 #include <string>
27 
28 namespace mitk
29 {
31  {
32 
33  public:
35  // ACCESS TO DATA SETS
37 
38  std::unique_ptr<QmitkChartxyData> GetDataOne();
39  std::unique_ptr<QmitkChartxyData> GetDataTwo();
40  std::unique_ptr<QmitkChartxyData> GetDataThree();
41  std::unique_ptr<QmitkChartxyData> GetDataFour();
42  std::unique_ptr<QmitkChartxyData> GetDataFive();
43 
45  // INSTANCE OF CLASS TO BE TESTED
47 
49 
51  // AUXILIARY FUNCTIONS
53 
54  QmitkChartWidget::ChartType ReturnChartTypeByString(std::string chartTypeString);
55  QmitkChartWidget::ChartColor ReturnChartColorByString(std::string chartColorString);
56  QmitkChartWidget::LineStyle ReturnChartStyleByString(std::string chartStyleString);
57 
58  void Add(int dataSet);
59  std::vector<std::pair<double, double> > ToStdPairList(QVariantList xData, QVariantList yData);
60  void ClearMemory();
61 
62  }; // end ChartExampleTestHelper
63 } // end mitk
64 
65 #endif
QmitkChartWidget is a widget to display various charts based on the javascript chart library plotly...
#define MITKCHART_EXPORT
ChartType
enum of diagram types.
DataCollection - Class to facilitate loading/accessing structured data.