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

Method SetChartType

Modules/Chart/src/QmitkChartWidget.cpp:593–606  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

591}
592
593void QmitkChartWidget::Impl::SetChartType(const std::string &label, QmitkChartWidget::ChartType chartType)
594{
595 auto element = GetDataElementByLabel(label);
596 if (element)
597 {
598 if (chartType == ChartType::scatter)
599 {
600 SetShowDataPoints(true);
601 MITK_INFO << "Enabling data points for all because of scatter plot";
602 }
603 const std::string chartTypeName(m_ChartTypeToName.at(chartType));
604 element->SetChartType(QVariant(QString::fromStdString(chartTypeName)));
605 }
606}
607
608void QmitkChartWidget::Impl::SetMinMaxValueXView(double minValueX, double maxValueX) {
609 m_C3Data.SetMinValueXView(minValueX);

Callers 8

GetDataOneMethod · 0.45
GetDataTwoMethod · 0.45
GetDataThreeMethod · 0.45
GetDataFourMethod · 0.45
GetDataFiveMethod · 0.45
SetIntensityProfileMethod · 0.45
SetHistogramMethod · 0.45

Calls 1

atMethod · 0.80

Tested by 5

GetDataOneMethod · 0.36
GetDataTwoMethod · 0.36
GetDataThreeMethod · 0.36
GetDataFourMethod · 0.36
GetDataFiveMethod · 0.36