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

Method ResetCameraClippingRange

Rendering/Parallel/vtkParallelRenderManager.cxx:753–774  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

751
752//------------------------------------------------------------------------------
753void vtkParallelRenderManager::ResetCameraClippingRange(vtkRenderer* ren)
754{
755 vtkDebugMacro("ResetCameraClippingRange");
756
757 double bounds[6];
758
759 if (this->Lock)
760 {
761 // Can't query other processes in the middle of a render.
762 // Just grab local value instead.
763 this->LocalComputeVisiblePropBounds(ren, bounds);
764 ren->ResetCameraClippingRange(bounds);
765 return;
766 }
767
768 this->Lock = 1;
769
770 this->ComputeVisiblePropBounds(ren, bounds);
771 ren->ResetCameraClippingRange(bounds);
772
773 this->Lock = 0;
774}
775
776//------------------------------------------------------------------------------
777void vtkParallelRenderManager::ComputeVisiblePropBoundsRMI(int renderId)

Callers

nothing calls this directly

Tested by

no test coverage detected