MCPcopy Create free account
hub / github.com/Kitware/VTK / ForEachNonWidgetProp

Function ForEachNonWidgetProp

Rendering/VR/vtkVRInteractorStyle.cxx:442–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

440// Calls `func` for each prop in `renderer` that is not part of a widget representation
441template <typename Func>
442void 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

Callers 2

StartClipMethod · 0.85
EndClipMethod · 0.85

Calls 7

GetNextPropMethod · 0.80
IsAMethod · 0.80
GetLastNodeMethod · 0.80
InitTraversalMethod · 0.45
InitPathTraversalMethod · 0.45
GetNextPathMethod · 0.45
GetViewPropMethod · 0.45

Tested by

no test coverage detected