------------------------------------------------------------------------------
| 1700 | |
| 1701 | //------------------------------------------------------------------------------ |
| 1702 | void vtkParallelRenderManager::SatelliteStartRender() |
| 1703 | { |
| 1704 | vtkParallelRenderManager::RenderWindowInfo winInfo; |
| 1705 | vtkParallelRenderManager::RendererInfo renInfo; |
| 1706 | vtkParallelRenderManager::LightInfo lightInfo; |
| 1707 | int i, j; |
| 1708 | |
| 1709 | vtkDebugMacro("SatelliteStartRender"); |
| 1710 | |
| 1711 | this->FullImageUpToDate = 0; |
| 1712 | this->ReducedImageUpToDate = 0; |
| 1713 | this->RenderWindowImageUpToDate = 0; |
| 1714 | |
| 1715 | if (this->FullImage->GetPointer(0) == this->ReducedImage->GetPointer(0)) |
| 1716 | { |
| 1717 | // "Un-share" pointer for full/reduced images in case we need separate |
| 1718 | // arrays this run. |
| 1719 | this->ReducedImage->Initialize(); |
| 1720 | } |
| 1721 | |
| 1722 | // if (!this->ParallelRendering) |
| 1723 | // { |
| 1724 | // return; |
| 1725 | // } |
| 1726 | |
| 1727 | this->InvokeEvent(vtkCommand::StartEvent, nullptr); |
| 1728 | vtkMultiProcessStream stream; |
| 1729 | if (!this->Controller->Broadcast(stream, this->RootProcessId)) |
| 1730 | { |
| 1731 | return; |
| 1732 | } |
| 1733 | |
| 1734 | if (!winInfo.Restore(stream)) |
| 1735 | { |
| 1736 | vtkErrorMacro("Failed to read window information"); |
| 1737 | return; |
| 1738 | } |
| 1739 | |
| 1740 | this->RenderWindow->SetDesiredUpdateRate(winInfo.DesiredUpdateRate); |
| 1741 | if (this->SynchronizeTileProperties) |
| 1742 | { |
| 1743 | this->RenderWindow->SetTileViewport(winInfo.TileViewport); |
| 1744 | this->RenderWindow->SetTileScale(winInfo.TileScale); |
| 1745 | } |
| 1746 | this->SetUseCompositing(winInfo.UseCompositing); |
| 1747 | if (this->MaxImageReductionFactor < winInfo.ImageReductionFactor) |
| 1748 | { |
| 1749 | this->SetMaxImageReductionFactor(winInfo.ImageReductionFactor); |
| 1750 | } |
| 1751 | this->SetImageReductionFactor(winInfo.ImageReductionFactor); |
| 1752 | this->FullImageSize[0] = winInfo.FullSize[0]; |
| 1753 | this->FullImageSize[1] = winInfo.FullSize[1]; |
| 1754 | this->ReducedImageSize[0] = winInfo.ReducedSize[0]; |
| 1755 | this->ReducedImageSize[1] = winInfo.ReducedSize[1]; |
| 1756 | |
| 1757 | // Backwards compatibility. |
| 1758 | this->ReceiveWindowInformation(); |
| 1759 |
no test coverage detected