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

Method HasTranslucentPolygonalGeometry

Modules/Core/src/Rendering/vtkMitkRenderProp.cpp:78–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78int 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
102int vtkMitkRenderProp::RenderTranslucentPolygonalGeometry(vtkViewport *)
103{

Callers

nothing calls this directly

Calls 3

GetMappersMapMethod · 0.80
GetVtkPropMethod · 0.45
InitPathTraversalMethod · 0.45

Tested by

no test coverage detected