comparison Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp @ 1713:aec45e0b2528

configuration option "DicomWebRoot"
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 30 Nov 2020 17:09:46 +0100
parents 902d13889ae4
children a878e807cd96
comparison
equal deleted inserted replaced
1712:fb57536fcc5f 1713:aec45e0b2528
2892 DISPATCH_JAVASCRIPT_EVENT("StoneInitialized"); 2892 DISPATCH_JAVASCRIPT_EVENT("StoneInitialized");
2893 } 2893 }
2894 2894
2895 2895
2896 EMSCRIPTEN_KEEPALIVE 2896 EMSCRIPTEN_KEEPALIVE
2897 void SetOrthancRoot(const char* uri, 2897 void SetDicomWebRoot(const char* uri,
2898 int useRendered) 2898 int useRendered)
2899 { 2899 {
2900 try 2900 try
2901 { 2901 {
2902 context_->SetLocalOrthanc(uri); // For "source_.SetDicomWebThroughOrthancSource()" 2902 source_.SetDicomWebSource(uri);
2903 source_.SetDicomWebSource(std::string(uri) + "/dicom-web");
2904 source_.SetDicomWebRendered(useRendered != 0); 2903 source_.SetDicomWebRendered(useRendered != 0);
2905 } 2904 }
2906 EXTERN_CATCH_EXCEPTIONS; 2905 EXTERN_CATCH_EXCEPTIONS;
2907 } 2906 }
2908 2907
2909 2908
2910 EMSCRIPTEN_KEEPALIVE 2909 EMSCRIPTEN_KEEPALIVE
2911 void SetDicomWebServer(const char* serverName, 2910 void SetDicomWebThroughOrthanc(const char* orthancRoot,
2912 int hasRendered) 2911 const char* serverName,
2912 int hasRendered)
2913 { 2913 {
2914 try 2914 try
2915 { 2915 {
2916 context_->SetLocalOrthanc(orthancRoot);
2916 source_.SetDicomWebThroughOrthancSource(serverName); 2917 source_.SetDicomWebThroughOrthancSource(serverName);
2917 source_.SetDicomWebRendered(hasRendered != 0); 2918 source_.SetDicomWebRendered(hasRendered != 0);
2918 } 2919 }
2919 EXTERN_CATCH_EXCEPTIONS; 2920 EXTERN_CATCH_EXCEPTIONS;
2920 } 2921 }