| 422 | } |
| 423 | |
| 424 | void 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 | |
| 455 | mitk::Color QmitkStdMultiWidget::GetDecorationColor(unsigned int widgetNumber) |
| 456 | { |
no test coverage detected