comparison Framework/Radiography/RadiographyScene.cpp @ 431:26b90b110719 am-vsol-upgrade

added DelayedCallExecutor to avoid using sleep() in C++ that consumes 100% CPU once executed in WASM
author am@osimis.io
date Thu, 29 Nov 2018 19:25:15 +0100
parents b85f635f1eb5
children 4eb96c6b4e96
comparison
equal deleted inserted replaced
430:b85f635f1eb5 431:26b90b110719
421 421
422 void RadiographyScene::Render(Orthanc::ImageAccessor& buffer, 422 void RadiographyScene::Render(Orthanc::ImageAccessor& buffer,
423 const AffineTransform2D& viewTransform, 423 const AffineTransform2D& viewTransform,
424 ImageInterpolation interpolation) const 424 ImageInterpolation interpolation) const
425 { 425 {
426 Orthanc::ImageProcessing::Set(buffer, 0); // TODO: get background color (depending on inverted state) 426 Orthanc::ImageProcessing::Set(buffer, 0);
427 427
428 // Render layers in the background-to-foreground order 428 // Render layers in the background-to-foreground order
429 for (size_t index = 0; index < countLayers_; index++) 429 for (size_t index = 0; index < countLayers_; index++)
430 { 430 {
431 Layers::const_iterator it = layers_.find(index); 431 Layers::const_iterator it = layers_.find(index);