------------------------------------------------------------------------------
| 406 | |
| 407 | //------------------------------------------------------------------------------ |
| 408 | void vtkSynchronizedRenderers::PushImageToScreen() |
| 409 | { |
| 410 | vtkRawImage& rawImage = this->Image; |
| 411 | if (!rawImage.IsValid()) |
| 412 | { |
| 413 | return; |
| 414 | } |
| 415 | |
| 416 | // If this->FixBackground is true, the rawImage was generated using a black |
| 417 | // background. Such an image can be blended. If this->FixBackground is not |
| 418 | // true, then the image simply replaces the existing image. |
| 419 | rawImage.PushToViewport(this->Renderer, /*blend=*/this->FixBackground); |
| 420 | |
| 421 | vtkHardwareSelector* sel = this->Renderer->GetSelector(); |
| 422 | if (sel) |
| 423 | { |
| 424 | sel->SavePixelBuffer(sel->GetCurrentPass()); |
| 425 | } |
| 426 | |
| 427 | if (this->UseFXAA) |
| 428 | { |
| 429 | if (!this->FXAAFilter) |
| 430 | { |
| 431 | this->FXAAFilter = vtkOpenGLFXAAFilter::New(); |
| 432 | } |
| 433 | this->FXAAFilter->UpdateConfiguration(this->Renderer->GetFXAAOptions()); |
| 434 | this->FXAAFilter->Execute(this->Renderer); |
| 435 | } |
| 436 | } |
| 437 | |
| 438 | ////---------------------------------------------------------------------------- |
| 439 | // void vtkSynchronizedRenderers::ResetCamera() |
no test coverage detected