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

Method CopyResultFrame

Rendering/Core/vtkRenderWindow.cxx:710–731  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

708
709//------------------------------------------------------------------------------
710void vtkRenderWindow::CopyResultFrame()
711{
712 if (this->ResultFrame->GetNumberOfTuples() > 0)
713 {
714 int* size;
715
716 // get the size
717 size = this->GetSize();
718
719 assert(this->ResultFrame->GetNumberOfTuples() == size[0] * size[1]);
720
721 this->SetPixelData(0, 0, size[0] - 1, size[1] - 1, this->ResultFrame, 0);
722 }
723
724 // Just before we swap buffers (in case of double buffering), we fire the
725 // RenderEvent marking that a render call has concluded successfully. We
726 // separate this from EndEvent since some applications may want to put some
727 // more elements on the "draw-buffer" before calling the rendering complete.
728 // This event gives them that opportunity.
729 this->InvokeEvent(vtkCommand::RenderEvent);
730 this->Frame();
731}
732
733//------------------------------------------------------------------------------
734// treat renderWindow and interactor as one object.

Callers 1

RenderMethod · 0.95

Calls 6

InvokeEventMethod · 0.80
assertFunction · 0.50
GetNumberOfTuplesMethod · 0.45
GetSizeMethod · 0.45
SetPixelDataMethod · 0.45
FrameMethod · 0.45

Tested by

no test coverage detected