------------------------------------------------------------------------------
| 66 | |
| 67 | //------------------------------------------------------------------------------ |
| 68 | void vtkCompositeRenderManager::PostRenderProcessing() |
| 69 | { |
| 70 | this->RenderWindow->SetMultiSamples(this->SavedMultiSamplesSetting); |
| 71 | |
| 72 | if (!this->UseCompositing || this->CheckForAbortComposite()) |
| 73 | { |
| 74 | vtkTimerLog::MarkEndEvent("Compositing"); |
| 75 | return; |
| 76 | } |
| 77 | |
| 78 | if (this->Controller->GetNumberOfProcesses() > 1) |
| 79 | { |
| 80 | // Read in data. |
| 81 | this->ReadReducedImage(); |
| 82 | this->Timer->StartTimer(); |
| 83 | this->RenderWindow->GetZbufferData( |
| 84 | 0, 0, this->ReducedImageSize[0] - 1, this->ReducedImageSize[1] - 1, this->DepthData); |
| 85 | |
| 86 | // Set up temporary buffers. |
| 87 | this->TmpPixelData->SetNumberOfComponents(this->ReducedImage->GetNumberOfComponents()); |
| 88 | this->TmpPixelData->SetNumberOfTuples(this->ReducedImage->GetNumberOfTuples()); |
| 89 | this->TmpDepthData->SetNumberOfComponents(this->DepthData->GetNumberOfComponents()); |
| 90 | this->TmpDepthData->SetNumberOfTuples(this->DepthData->GetNumberOfTuples()); |
| 91 | |
| 92 | // Do composite |
| 93 | this->Compositer->SetController(this->Controller); |
| 94 | this->Compositer->CompositeBuffer( |
| 95 | this->ReducedImage, this->DepthData, this->TmpPixelData, this->TmpDepthData); |
| 96 | |
| 97 | this->Timer->StopTimer(); |
| 98 | this->ImageProcessingTime = this->Timer->GetElapsedTime(); |
| 99 | } |
| 100 | |
| 101 | this->WriteFullImage(); |
| 102 | |
| 103 | // Swap buffers here |
| 104 | if (this->UseBackBuffer) |
| 105 | { |
| 106 | this->RenderWindow->SwapBuffersOn(); |
| 107 | } |
| 108 | this->RenderWindow->Frame(); |
| 109 | |
| 110 | vtkTimerLog::MarkEndEvent("Compositing"); |
| 111 | } |
| 112 | VTK_ABI_NAMESPACE_END |
nothing calls this directly
no test coverage detected