comparison Applications/Samples/SimpleViewer/Wasm/simple-viewer.ts @ 535:79bb0a02d1cc bgo-commands-codegen

- Added ORTHANC_OVERRIDE to several methods (translates to "override" in C++ 11 compilers) - Last fixes to new style command handling (removed useless commands and switch command handling in simple samples to use XxxxSerializedMessageXxxx instead of XxxxCommandXxxx - Fixed hardcoded input instance in SingleFrameEditorApplication
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 19 Mar 2019 09:13:57 +0100
parents 97a16b694321
children
comparison
equal deleted inserted replaced
534:7016c35d163c 535:79bb0a02d1cc
7 command: "selectTool:" + toolName, 7 command: "selectTool:" + toolName,
8 commandType: "generic-no-arg-command", 8 commandType: "generic-no-arg-command",
9 args: { 9 args: {
10 } 10 }
11 }; 11 };
12 wasmApplicationRunner.SendCommandToStoneApplication(JSON.stringify(command)); 12 wasmApplicationRunner.SendSerializedMessageToStoneApplication(JSON.stringify(command));
13 } 13 }
14 14
15 function PerformAction(actionName: string) { 15 function PerformAction(actionName: string) {
16 var command = { 16 var command = {
17 command: "action:" + actionName, 17 command: "action:" + actionName,
18 commandType: "generic-no-arg-command", 18 commandType: "generic-no-arg-command",
19 args: { 19 args: {
20 } 20 }
21 }; 21 };
22 wasmApplicationRunner.SendCommandToStoneApplication(JSON.stringify(command)); 22 wasmApplicationRunner.SendSerializedMessageToStoneApplication(JSON.stringify(command));
23 } 23 }
24 24
25 class SimpleViewerUI { 25 class SimpleViewerUI {
26 26
27 private _labelPatientId: HTMLSpanElement; 27 private _labelPatientId: HTMLSpanElement;