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

Method PostRenderProcessing

Rendering/Parallel/vtkCompositeRenderManager.cxx:68–111  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

66
67//------------------------------------------------------------------------------
68void 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}
112VTK_ABI_NAMESPACE_END

Callers

nothing calls this directly

Calls 15

SetMultiSamplesMethod · 0.80
GetNumberOfProcessesMethod · 0.80
WriteFullImageMethod · 0.80
ReadReducedImageMethod · 0.45
StartTimerMethod · 0.45
GetZbufferDataMethod · 0.45
SetNumberOfComponentsMethod · 0.45
GetNumberOfComponentsMethod · 0.45
SetNumberOfTuplesMethod · 0.45
GetNumberOfTuplesMethod · 0.45
SetControllerMethod · 0.45
CompositeBufferMethod · 0.45

Tested by

no test coverage detected