Mercurial > hg > orthanc-stone
annotate Resources/CodeGeneration/testWasmIntegrated/DefaultLibrary.js @ 1327:4f8db2d202c8 broker
OrthancSeriesProgressiveLoader now has two modes that
can be selected at object creation :
- progressive (will first load jpeg50, then jpeg90 then PAM)
- non-progressive (will directly load PAM (uncompressed))
Please note that the slice loading order remains dynamic
and depending upon the slice that the client code wishes
to extract from the volume.
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Wed, 25 Mar 2020 14:34:27 +0100 |
parents | f185cfcb72a0 |
children |
rev | line source |
---|---|
496
8b6ceae45ba0
Finished (untested) C++, html, typescript, tsc & browserify production.
bgo-osimis
parents:
diff
changeset
|
1 // this file contains the JS method you want to expose to C++ code |
8b6ceae45ba0
Finished (untested) C++, html, typescript, tsc & browserify production.
bgo-osimis
parents:
diff
changeset
|
2 |
8b6ceae45ba0
Finished (untested) C++, html, typescript, tsc & browserify production.
bgo-osimis
parents:
diff
changeset
|
3 mergeInto(LibraryManager.library, { |
8b6ceae45ba0
Finished (untested) C++, html, typescript, tsc & browserify production.
bgo-osimis
parents:
diff
changeset
|
4 // each time the Application updates its status, it may signal it through this method. i.e, to change the status of a button in the web interface |
8b6ceae45ba0
Finished (untested) C++, html, typescript, tsc & browserify production.
bgo-osimis
parents:
diff
changeset
|
5 // It needs to be put in this file so that the emscripten SDK linker knows where to find it. |
498 | 6 SendFreeTextFromCppJS: function(statusUpdateMessage) { |
496
8b6ceae45ba0
Finished (untested) C++, html, typescript, tsc & browserify production.
bgo-osimis
parents:
diff
changeset
|
7 var statusUpdateMessage_ = UTF8ToString(statusUpdateMessage); |
499 | 8 window.SendFreeTextFromCpp(statusUpdateMessage_); |
498 | 9 }, |
10 SendMessageFromCppJS: function(statusUpdateMessage) { | |
11 var statusUpdateMessage_ = UTF8ToString(statusUpdateMessage); | |
690 | 12 window.SendMessageFromCpp(statusUpdateMessage_); |
496
8b6ceae45ba0
Finished (untested) C++, html, typescript, tsc & browserify production.
bgo-osimis
parents:
diff
changeset
|
13 } |
8b6ceae45ba0
Finished (untested) C++, html, typescript, tsc & browserify production.
bgo-osimis
parents:
diff
changeset
|
14 }); |
499 | 15 |