| 29 | } |
| 30 | |
| 31 | void QmitkMultiWidgetLayoutManager::SetLayoutDesign(LayoutDesign layoutDesign) |
| 32 | { |
| 33 | if (nullptr == m_MultiWidget) |
| 34 | { |
| 35 | return; |
| 36 | } |
| 37 | |
| 38 | // retrieve the render window name from the sending render window |
| 39 | auto renderWindow = dynamic_cast<QmitkRenderWindow*>(QObject::sender()); |
| 40 | m_CurrentRenderWindowWidget = m_MultiWidget->GetRenderWindowWidget(renderWindow).get(); |
| 41 | |
| 42 | switch (layoutDesign) |
| 43 | { |
| 44 | case LayoutDesign::DEFAULT: |
| 45 | { |
| 46 | SetDefaultLayout(); |
| 47 | break; |
| 48 | } |
| 49 | case LayoutDesign::ALL_2D_TOP_3D_BOTTOM: |
| 50 | { |
| 51 | SetAll2DTop3DBottomLayout(); |
| 52 | break; |
| 53 | } |
| 54 | case LayoutDesign::ALL_2D_LEFT_3D_RIGHT: |
| 55 | { |
| 56 | SetAll2DLeft3DRightLayout(); |
| 57 | break; |
| 58 | } |
| 59 | case LayoutDesign::ONE_BIG: |
| 60 | { |
| 61 | SetOneBigLayout(); |
| 62 | break; |
| 63 | } |
| 64 | case LayoutDesign::ONLY_2D_HORIZONTAL: |
| 65 | { |
| 66 | SetOnly2DHorizontalLayout(); |
| 67 | break; |
| 68 | } |
| 69 | case LayoutDesign::ONLY_2D_VERTICAL: |
| 70 | { |
| 71 | SetOnly2DVerticalLayout(); |
| 72 | break; |
| 73 | } |
| 74 | case LayoutDesign::ONE_TOP_3D_BOTTOM: |
| 75 | { |
| 76 | SetOneTop3DBottomLayout(); |
| 77 | break; |
| 78 | } |
| 79 | case LayoutDesign::ONE_LEFT_3D_RIGHT: |
| 80 | { |
| 81 | SetOneLeft3DRightLayout(); |
| 82 | break; |
| 83 | } |
| 84 | case LayoutDesign::ALL_HORIZONTAL: |
| 85 | { |
| 86 | SetAllHorizontalLayout(); |
| 87 | break; |
| 88 | } |
no test coverage detected