comparison Framework/Widgets/EmptyWidget.cpp @ 66:298f375dcb68 wasm

LayerWidget
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 17 May 2017 22:03:09 +0200
parents c2dc924f1a63
children 2eca030792aa
comparison
equal deleted inserted replaced
65:885932a893de 66:298f375dcb68
24 #include "../../Resources/Orthanc/Core/Images/ImageProcessing.h" 24 #include "../../Resources/Orthanc/Core/Images/ImageProcessing.h"
25 #include "../../Resources/Orthanc/Core/OrthancException.h" 25 #include "../../Resources/Orthanc/Core/OrthancException.h"
26 26
27 namespace OrthancStone 27 namespace OrthancStone
28 { 28 {
29 bool EmptyWidget::Render(Orthanc::ImageAccessor& surface) 29 namespace Samples
30 { 30 {
31 // Note: This call is slow 31 bool EmptyWidget::Render(Orthanc::ImageAccessor& surface)
32 Orthanc::ImageProcessing::Set(surface, red_, green_, blue_, 255); 32 {
33 return true; 33 // Note: This call is slow
34 } 34 Orthanc::ImageProcessing::Set(surface, red_, green_, blue_, 255);
35 return true;
36 }
35 37
36 38
37 void EmptyWidget::UpdateContent() 39 void EmptyWidget::UpdateContent()
38 { 40 {
39 throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError); 41 throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError);
42 }
40 } 43 }
41 } 44 }