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

Method MagnifyReducedImage

Rendering/Parallel/vtkParallelRenderManager.cxx:1394–1416  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1392
1393//------------------------------------------------------------------------------
1394void vtkParallelRenderManager::MagnifyReducedImage()
1395{
1396 if ((this->FullImageUpToDate))
1397 {
1398 return;
1399 }
1400
1401 this->ReadReducedImage();
1402
1403 if (this->FullImage->GetPointer(0) != this->ReducedImage->GetPointer(0))
1404 {
1405 this->Timer->StartTimer();
1406 this->MagnifyImage(
1407 this->FullImage, this->FullImageSize, this->ReducedImage, this->ReducedImageSize);
1408 this->Timer->StopTimer();
1409 // We log the image inflation under render time because it is inversely
1410 // proportional to the image size. This makes the auto image reduction
1411 // calculation work better.
1412 this->RenderTime += this->Timer->GetElapsedTime();
1413 }
1414
1415 this->FullImageUpToDate = 1;
1416}
1417
1418//------------------------------------------------------------------------------
1419void vtkParallelRenderManager::WriteFullImage()

Callers 2

WriteFullImageMethod · 0.95
GetPixelDataMethod · 0.95

Calls 6

ReadReducedImageMethod · 0.95
MagnifyImageMethod · 0.95
GetPointerMethod · 0.45
StartTimerMethod · 0.45
StopTimerMethod · 0.45
GetElapsedTimeMethod · 0.45

Tested by

no test coverage detected