Medical Imaging Interaction Toolkit  2023.04.00
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 mitkChartExampleTestHelper_h
14 #define mitkChartExampleTestHelper_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::ChartType
ChartType
enum of diagram types.
Definition: QmitkChartWidget.h:48
QmitkChartWidget::ChartColor
ChartColor
Definition: QmitkChartWidget.h:84
MitkChartExports.h
MITKCHART_EXPORT
#define MITKCHART_EXPORT
Definition: MitkChartExports.h:15
mitk::ChartExampleTestHelper::qmitkChartWidget
QmitkChartWidget qmitkChartWidget
Definition: mitkChartExampleTestHelper.h:48
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition: RenderingTests.dox:1
QmitkChartWidget.h
QmitkChartWidget
QmitkChartWidget is a widget to display various charts based on the javascript chart library plotly.
Definition: QmitkChartWidget.h:40
QmitkChartxyData.h
mitk::ChartExampleTestHelper
Definition: mitkChartExampleTestHelper.h:30
QmitkChartWidget::LineStyle
LineStyle
Definition: QmitkChartWidget.h:64