13 #ifndef mitkChartExampleTestHelper_h
14 #define mitkChartExampleTestHelper_h
136 std::vector<std::pair<double, double> >
ToStdPairList(QVariantList xData, QVariantList yData);
Test helper class for QmitkChartWidget unit tests.
void ClearMemory()
Clear all chart data and reset the widget.
void Add(int dataSet)
Add a predefined data set to the chart widget.
std::unique_ptr< QmitkChartxyData > GetDataTwo()
Create test data set #2 (x=10..19, y=10..19, bar, green, solid).
QmitkChartWidget::ChartColor ReturnChartColorByString(std::string chartColorString)
Convert a color name string to the corresponding enum value.
QmitkChartWidget::ChartType ReturnChartTypeByString(std::string chartTypeString)
Convert a chart type string to the corresponding enum value.
QmitkChartWidget::LineStyle ReturnChartStyleByString(std::string chartStyleString)
Convert a line style string to the corresponding enum value.
std::unique_ptr< QmitkChartxyData > GetDataOne()
Create test data set #1 (x=0..9, y=0..9, bar, red, solid).
std::unique_ptr< QmitkChartxyData > GetDataFive()
Create test data set #5 (x=40..49, y=40..49, bar, black, solid).
std::vector< std::pair< double, double > > ToStdPairList(QVariantList xData, QVariantList yData)
Convert QVariantLists of x and y data to a vector of std::pair.
std::unique_ptr< QmitkChartxyData > GetDataFour()
Create test data set #4 (x=30..39, y=30..39, bar, yellow, solid).
QmitkChartWidget qmitkChartWidget
The QmitkChartWidget instance used for testing.
std::unique_ptr< QmitkChartxyData > GetDataThree()
Create test data set #3 (x=20..29, y=20..29, bar, blue, solid).
Find image slices visible on a given plane.