Mercurial > hg > orthanc-stone
annotate Applications/StoneWebViewer/WebApplication/configuration.json @ 1701:b5a8bf32d969
new configuration options: "CombinedToolEnabled", "CombinedToolBehaviour" and "DownloadAsJpegEnabled"
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 27 Nov 2020 12:21:26 +0100 |
parents | f1bd464dc3e1 |
children | 2931f5e15320 |
rev | line source |
---|---|
1696
572652803929
bootstrapping the Stone Web viewer configuration file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1 { |
1700
f1bd464dc3e1
the plugin uses the Orthanc configuration instead of the default configuration
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1699
diff
changeset
|
2 "StoneWebViewer" : |
f1bd464dc3e1
the plugin uses the Orthanc configuration instead of the default configuration
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1699
diff
changeset
|
3 { |
f1bd464dc3e1
the plugin uses the Orthanc configuration instead of the default configuration
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1699
diff
changeset
|
4 /** |
f1bd464dc3e1
the plugin uses the Orthanc configuration instead of the default configuration
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1699
diff
changeset
|
5 * Defines how dates are displayed in the UI. If this option is not |
f1bd464dc3e1
the plugin uses the Orthanc configuration instead of the default configuration
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1699
diff
changeset
|
6 * set, the DICOM tags will be displayed as such. "DD" will be |
f1bd464dc3e1
the plugin uses the Orthanc configuration instead of the default configuration
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1699
diff
changeset
|
7 * replaced by the day, "MM" by the month, and "YYYY" by the year. |
f1bd464dc3e1
the plugin uses the Orthanc configuration instead of the default configuration
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1699
diff
changeset
|
8 **/ |
f1bd464dc3e1
the plugin uses the Orthanc configuration instead of the default configuration
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1699
diff
changeset
|
9 // "DateFormat" : "DD/MM/YYYY", |
1699
0598c87e1e88
"WindowingPresets" configuration option
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1698
diff
changeset
|
10 |
1700
f1bd464dc3e1
the plugin uses the Orthanc configuration instead of the default configuration
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1699
diff
changeset
|
11 /** |
f1bd464dc3e1
the plugin uses the Orthanc configuration instead of the default configuration
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1699
diff
changeset
|
12 * This option allows you to define windowing presets. |
f1bd464dc3e1
the plugin uses the Orthanc configuration instead of the default configuration
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1699
diff
changeset
|
13 * For each preset, you must provide a name, the window width |
f1bd464dc3e1
the plugin uses the Orthanc configuration instead of the default configuration
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1699
diff
changeset
|
14 * and window center. |
f1bd464dc3e1
the plugin uses the Orthanc configuration instead of the default configuration
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1699
diff
changeset
|
15 **/ |
f1bd464dc3e1
the plugin uses the Orthanc configuration instead of the default configuration
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1699
diff
changeset
|
16 "WindowingPresets" : [ |
1701
b5a8bf32d969
new configuration options: "CombinedToolEnabled", "CombinedToolBehaviour" and "DownloadAsJpegEnabled"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1700
diff
changeset
|
17 {"Name" : "CT Lung", "WindowCenter" : -400, "WindowWidth" : 1600}, |
b5a8bf32d969
new configuration options: "CombinedToolEnabled", "CombinedToolBehaviour" and "DownloadAsJpegEnabled"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1700
diff
changeset
|
18 {"Name" : "CT Abdomen", "WindowCenter" : 60, "WindowWidth" : 400}, |
b5a8bf32d969
new configuration options: "CombinedToolEnabled", "CombinedToolBehaviour" and "DownloadAsJpegEnabled"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1700
diff
changeset
|
19 {"Name" : "CT Bone", "WindowCenter" : 300, "WindowWidth" : 1500}, |
b5a8bf32d969
new configuration options: "CombinedToolEnabled", "CombinedToolBehaviour" and "DownloadAsJpegEnabled"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1700
diff
changeset
|
20 {"Name" : "CT Brain", "WindowCenter" : 40, "WindowWidth" : 80}, |
b5a8bf32d969
new configuration options: "CombinedToolEnabled", "CombinedToolBehaviour" and "DownloadAsJpegEnabled"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1700
diff
changeset
|
21 {"Name" : "CT Chest", "WindowCenter" : 40, "WindowWidth" : 400}, |
b5a8bf32d969
new configuration options: "CombinedToolEnabled", "CombinedToolBehaviour" and "DownloadAsJpegEnabled"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1700
diff
changeset
|
22 {"Name" : "CT Angio", "WindowCenter" : 300, "WindowWidth" : 600} |
1700
f1bd464dc3e1
the plugin uses the Orthanc configuration instead of the default configuration
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1699
diff
changeset
|
23 ], |
f1bd464dc3e1
the plugin uses the Orthanc configuration instead of the default configuration
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1699
diff
changeset
|
24 |
f1bd464dc3e1
the plugin uses the Orthanc configuration instead of the default configuration
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1699
diff
changeset
|
25 /** |
1701
b5a8bf32d969
new configuration options: "CombinedToolEnabled", "CombinedToolBehaviour" and "DownloadAsJpegEnabled"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1700
diff
changeset
|
26 * Enables/disables the combined tool. This is the default mode |
b5a8bf32d969
new configuration options: "CombinedToolEnabled", "CombinedToolBehaviour" and "DownloadAsJpegEnabled"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1700
diff
changeset
|
27 * for mouse interactions. The combined tool allows to access the |
b5a8bf32d969
new configuration options: "CombinedToolEnabled", "CombinedToolBehaviour" and "DownloadAsJpegEnabled"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1700
diff
changeset
|
28 * windowing, zoom and pan from a single mouse configuration. The |
b5a8bf32d969
new configuration options: "CombinedToolEnabled", "CombinedToolBehaviour" and "DownloadAsJpegEnabled"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1700
diff
changeset
|
29 * behaviour of the combined tool is defined in |
b5a8bf32d969
new configuration options: "CombinedToolEnabled", "CombinedToolBehaviour" and "DownloadAsJpegEnabled"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1700
diff
changeset
|
30 * CombinedToolBehaviour. The available mouse actions are |
b5a8bf32d969
new configuration options: "CombinedToolEnabled", "CombinedToolBehaviour" and "DownloadAsJpegEnabled"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1700
diff
changeset
|
31 * "Crosshair", "Windowing", "Pan", "Rotate" and "Zoom". |
b5a8bf32d969
new configuration options: "CombinedToolEnabled", "CombinedToolBehaviour" and "DownloadAsJpegEnabled"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1700
diff
changeset
|
32 **/ |
b5a8bf32d969
new configuration options: "CombinedToolEnabled", "CombinedToolBehaviour" and "DownloadAsJpegEnabled"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1700
diff
changeset
|
33 "CombinedToolEnabled" : true, |
b5a8bf32d969
new configuration options: "CombinedToolEnabled", "CombinedToolBehaviour" and "DownloadAsJpegEnabled"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1700
diff
changeset
|
34 "CombinedToolBehaviour" : { |
b5a8bf32d969
new configuration options: "CombinedToolEnabled", "CombinedToolBehaviour" and "DownloadAsJpegEnabled"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1700
diff
changeset
|
35 "LeftMouseButton" : "Windowing", |
b5a8bf32d969
new configuration options: "CombinedToolEnabled", "CombinedToolBehaviour" and "DownloadAsJpegEnabled"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1700
diff
changeset
|
36 "MiddleMouseButton" : "Pan", |
b5a8bf32d969
new configuration options: "CombinedToolEnabled", "CombinedToolBehaviour" and "DownloadAsJpegEnabled"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1700
diff
changeset
|
37 "RightMouseButton" : "Zoom" |
b5a8bf32d969
new configuration options: "CombinedToolEnabled", "CombinedToolBehaviour" and "DownloadAsJpegEnabled"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1700
diff
changeset
|
38 }, |
b5a8bf32d969
new configuration options: "CombinedToolEnabled", "CombinedToolBehaviour" and "DownloadAsJpegEnabled"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1700
diff
changeset
|
39 |
b5a8bf32d969
new configuration options: "CombinedToolEnabled", "CombinedToolBehaviour" and "DownloadAsJpegEnabled"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1700
diff
changeset
|
40 /** |
b5a8bf32d969
new configuration options: "CombinedToolEnabled", "CombinedToolBehaviour" and "DownloadAsJpegEnabled"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1700
diff
changeset
|
41 * Enables/disables the print button. |
b5a8bf32d969
new configuration options: "CombinedToolEnabled", "CombinedToolBehaviour" and "DownloadAsJpegEnabled"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1700
diff
changeset
|
42 **/ |
b5a8bf32d969
new configuration options: "CombinedToolEnabled", "CombinedToolBehaviour" and "DownloadAsJpegEnabled"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1700
diff
changeset
|
43 "PrintEnabled" : true, |
b5a8bf32d969
new configuration options: "CombinedToolEnabled", "CombinedToolBehaviour" and "DownloadAsJpegEnabled"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1700
diff
changeset
|
44 |
b5a8bf32d969
new configuration options: "CombinedToolEnabled", "CombinedToolBehaviour" and "DownloadAsJpegEnabled"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1700
diff
changeset
|
45 /** |
b5a8bf32d969
new configuration options: "CombinedToolEnabled", "CombinedToolBehaviour" and "DownloadAsJpegEnabled"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1700
diff
changeset
|
46 * Enables/disables the button to download a screenshot of the |
b5a8bf32d969
new configuration options: "CombinedToolEnabled", "CombinedToolBehaviour" and "DownloadAsJpegEnabled"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1700
diff
changeset
|
47 * active viewport as a JPEG file. |
b5a8bf32d969
new configuration options: "CombinedToolEnabled", "CombinedToolBehaviour" and "DownloadAsJpegEnabled"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1700
diff
changeset
|
48 **/ |
b5a8bf32d969
new configuration options: "CombinedToolEnabled", "CombinedToolBehaviour" and "DownloadAsJpegEnabled"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1700
diff
changeset
|
49 "DownloadAsJpegEnabled" : true, |
b5a8bf32d969
new configuration options: "CombinedToolEnabled", "CombinedToolBehaviour" and "DownloadAsJpegEnabled"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1700
diff
changeset
|
50 |
b5a8bf32d969
new configuration options: "CombinedToolEnabled", "CombinedToolBehaviour" and "DownloadAsJpegEnabled"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1700
diff
changeset
|
51 /** |
1700
f1bd464dc3e1
the plugin uses the Orthanc configuration instead of the default configuration
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1699
diff
changeset
|
52 * The allowed origin for messages corresponding to dynamic actions |
f1bd464dc3e1
the plugin uses the Orthanc configuration instead of the default configuration
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1699
diff
changeset
|
53 * triggered by another Web page using "window.postMessage()". The |
f1bd464dc3e1
the plugin uses the Orthanc configuration instead of the default configuration
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1699
diff
changeset
|
54 * special value "*" will allow any origin, which is an insecure |
f1bd464dc3e1
the plugin uses the Orthanc configuration instead of the default configuration
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1699
diff
changeset
|
55 * value to be used only during development. If this option is not |
f1bd464dc3e1
the plugin uses the Orthanc configuration instead of the default configuration
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1699
diff
changeset
|
56 * set, all the requests for dynamic actions will be rejected. |
f1bd464dc3e1
the plugin uses the Orthanc configuration instead of the default configuration
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1699
diff
changeset
|
57 * https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage |
f1bd464dc3e1
the plugin uses the Orthanc configuration instead of the default configuration
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1699
diff
changeset
|
58 **/ |
f1bd464dc3e1
the plugin uses the Orthanc configuration instead of the default configuration
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1699
diff
changeset
|
59 "ExpectedMessageOrigin" : "http://localhost:8042" |
f1bd464dc3e1
the plugin uses the Orthanc configuration instead of the default configuration
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1699
diff
changeset
|
60 } |
1696
572652803929
bootstrapping the Stone Web viewer configuration file
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
61 } |