| 440 | // Calls `func` for each prop in `renderer` that is not part of a widget representation |
| 441 | template <typename Func> |
| 442 | void ForEachNonWidgetProp(vtkRenderer* renderer, Func&& func) |
| 443 | { |
| 444 | vtkCollectionSimpleIterator cookie; |
| 445 | vtkPropCollection* props = renderer->GetViewProps(); |
| 446 | props->InitTraversal(cookie); |
| 447 | |
| 448 | for (vtkProp* prop = props->GetNextProp(cookie); prop; prop = props->GetNextProp(cookie)) |
| 449 | { |
| 450 | if (!prop->IsA("vtkWidgetRepresentation")) |
| 451 | { |
| 452 | prop->InitPathTraversal(); |
| 453 | for (vtkAssemblyPath* path = prop->GetNextPath(); path; path = prop->GetNextPath()) |
| 454 | { |
| 455 | func(path->GetLastNode()->GetViewProp()); |
| 456 | } |
| 457 | } |
| 458 | } |
| 459 | } |
| 460 | |
| 461 | } |
| 462 |
no test coverage detected