------------------------------------------------------------------------------
| 328 | |
| 329 | //------------------------------------------------------------------------------ |
| 330 | void vtkSynchronizedRenderers::HandleEndRender() |
| 331 | { |
| 332 | if (this->CaptureDelegate && !this->CaptureDelegate->GetAutomaticEventHandling()) |
| 333 | { |
| 334 | this->CaptureDelegate->HandleEndRender(); |
| 335 | } |
| 336 | |
| 337 | if (!this->Renderer || !this->ParallelRendering || !this->ParallelController) |
| 338 | { |
| 339 | return; |
| 340 | } |
| 341 | |
| 342 | if (this->ParallelController->GetLocalProcessId() == this->RootProcessId) |
| 343 | { |
| 344 | this->MasterEndRender(); |
| 345 | } |
| 346 | else |
| 347 | { |
| 348 | this->SlaveEndRender(); |
| 349 | } |
| 350 | |
| 351 | if (this->WriteBackImages) |
| 352 | { |
| 353 | if (this->GetImageReductionFactor() > 1 || this->FixBackground) |
| 354 | { |
| 355 | this->CaptureRenderedImage(); |
| 356 | } |
| 357 | } |
| 358 | |
| 359 | if (this->FixBackground) |
| 360 | { |
| 361 | // restore background values. |
| 362 | this->Renderer->SetBackground(this->LastBackground); |
| 363 | this->Renderer->SetBackgroundAlpha(this->LastBackgroundAlpha); |
| 364 | this->Renderer->SetTexturedBackground(this->LastTexturedBackground); |
| 365 | this->Renderer->SetGradientBackground(this->LastGradientBackground); |
| 366 | } |
| 367 | |
| 368 | // restore viewport before `PushImageToScreen`, but after |
| 369 | // `CaptureRenderedImage`. |
| 370 | this->Renderer->SetViewport(this->LastViewport); |
| 371 | |
| 372 | if (this->WriteBackImages) |
| 373 | { |
| 374 | this->PushImageToScreen(); |
| 375 | } |
| 376 | |
| 377 | // restore FXAA state. |
| 378 | this->Renderer->SetUseFXAA(this->UseFXAA); |
| 379 | this->UseFXAA = false; |
| 380 | } |
| 381 | |
| 382 | //------------------------------------------------------------------------------ |
| 383 | void vtkSynchronizedRenderers::MasterEndRender() {} |
no test coverage detected