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

Method ShallowCopy

Rendering/LOD/vtkLODActor.cxx:337–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335}
336
337void vtkLODActor::ShallowCopy(vtkProp* prop)
338{
339 vtkLODActor* a = vtkLODActor::SafeDownCast(prop);
340 if (a)
341 {
342 this->SetNumberOfCloudPoints(a->GetNumberOfCloudPoints());
343 vtkMapperCollection* c = a->GetLODMappers();
344 vtkMapper* map;
345 vtkCollectionSimpleIterator mit;
346 for (c->InitTraversal(mit); (map = c->GetNextMapper(mit));)
347 {
348 this->AddLODMapper(map);
349 }
350 }
351
352 // Now do superclass
353 this->vtkActor::ShallowCopy(prop);
354}
355VTK_ABI_NAMESPACE_END

Callers 5

RequestDataMethod · 0.45
RequestDataMethod · 0.45
RenderOverlayMethod · 0.45
ComputeLabelBoundsMethod · 0.45
UpdateOwnLODsMethod · 0.45

Calls 2

AddLODMapperMethod · 0.95
InitTraversalMethod · 0.45

Tested by

no test coverage detected