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

Method ClearGeometricModels

Rendering/RayTracing/vtkOSPRayPolyDataMapperNode.cxx:1393–1405  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1391
1392//----------------------------------------------------------------------------
1393void vtkOSPRayPolyDataMapperNode::ClearGeometricModels()
1394{
1395 vtkOSPRayRendererNode* orn =
1396 static_cast<vtkOSPRayRendererNode*>(this->GetFirstAncestorOfType("vtkOSPRayRendererNode"));
1397
1398 RTW::Backend* backend = orn->GetBackend();
1399
1400 for (auto instance : this->Instances)
1401 {
1402 ospRelease(instance);
1403 }
1404 this->Instances.clear();
1405}
1406VTK_ABI_NAMESPACE_END

Callers 2

RenderMethod · 0.95
RenderMethod · 0.80

Calls 3

GetBackendMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected