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

Method SetDecorationColor

Modules/QtWidgets/src/QmitkStdMultiWidget.cpp:424–453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422}
423
424void QmitkStdMultiWidget::SetDecorationColor(unsigned int widgetNumber, mitk::Color color)
425{
426 switch (widgetNumber)
427 {
428 case 0:
429 if (m_PlaneNode1.IsNotNull())
430 {
431 m_PlaneNode1->SetColor(color);
432 }
433 break;
434 case 1:
435 if (m_PlaneNode2.IsNotNull())
436 {
437 m_PlaneNode2->SetColor(color);
438 }
439 break;
440 case 2:
441 if (m_PlaneNode3.IsNotNull())
442 {
443 m_PlaneNode3->SetColor(color);
444 }
445 break;
446 case 3:
447 m_DecorationColorWidget4 = color;
448 break;
449 default:
450 MITK_ERROR << "Decoration color for unknown widget!";
451 break;
452 }
453}
454
455mitk::Color QmitkStdMultiWidget::GetDecorationColor(unsigned int widgetNumber)
456{

Callers 1

Calls 2

IsNotNullMethod · 0.80
SetColorMethod · 0.45

Tested by

no test coverage detected