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

Method PushImageToScreen

Rendering/Parallel/vtkSynchronizedRenderers.cxx:408–436  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

406
407//------------------------------------------------------------------------------
408void 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()

Callers 1

HandleEndRenderMethod · 0.95

Calls 7

PushToViewportMethod · 0.80
SavePixelBufferMethod · 0.80
NewFunction · 0.50
IsValidMethod · 0.45
GetSelectorMethod · 0.45
UpdateConfigurationMethod · 0.45
ExecuteMethod · 0.45

Tested by

no test coverage detected