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

Method SetColor

Modules/Chart/src/QmitkChartWidget.cpp:446–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

444}
445
446void QmitkChartWidget::Impl::SetColor(const std::string &label, const std::string &colorName)
447{
448 auto element = GetDataElementByLabel(label);
449 if (element)
450 {
451 auto colorChecked = CheckForCorrectHex(colorName);
452 element->SetColor(QVariant(QString::fromStdString(colorChecked)));
453 }
454}
455
456void QmitkChartWidget::Impl::SetLineStyle(const std::string &label, LineStyle style)
457{

Callers 7

AddChartExampleDataMethod · 0.45
GetDataOneMethod · 0.45
GetDataTwoMethod · 0.45
GetDataThreeMethod · 0.45
GetDataFourMethod · 0.45
GetDataFiveMethod · 0.45

Calls 1

CheckForCorrectHexFunction · 0.85

Tested by 5

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