| 76 | } |
| 77 | |
| 78 | int vtkMitkRenderProp::HasTranslucentPolygonalGeometry() |
| 79 | { |
| 80 | for (const auto &mapEntry : m_VtkPropRenderer->GetMappersMap()) |
| 81 | { |
| 82 | auto vtkMapper = dynamic_cast<mitk::VtkMapper*>(mapEntry.second); |
| 83 | |
| 84 | if (nullptr != vtkMapper) |
| 85 | { |
| 86 | // Due to VTK 5.2 bug, we need to initialize the Paths object in vtkPropAssembly |
| 87 | // manually (see issue #8186 committed to VTK's Mantis issue tracker) |
| 88 | // --> VTK bug resolved on 2008-12-01 |
| 89 | auto propAssembly = dynamic_cast<vtkPropAssembly *>(vtkMapper->GetVtkProp(m_VtkPropRenderer)); |
| 90 | |
| 91 | if (nullptr != propAssembly) |
| 92 | propAssembly->InitPathTraversal(); |
| 93 | |
| 94 | if (1 == vtkMapper->GetVtkProp(m_VtkPropRenderer)->HasTranslucentPolygonalGeometry()) |
| 95 | return 1; |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | return 0; |
| 100 | } |
| 101 | |
| 102 | int vtkMitkRenderProp::RenderTranslucentPolygonalGeometry(vtkViewport *) |
| 103 | { |
nothing calls this directly
no test coverage detected