comparison OrthancStone/Samples/README.md @ 1527:4c4b267e4004

RtViewerPlugin : similar to the StoneWebPlugin, but for the sole RtViewer sample
author Benjamin Golinvaux <bgo@osimis.io>
date Sun, 02 Aug 2020 15:13:58 +0200
parents bc4c50a53bd3
children
comparison
equal deleted inserted replaced
1526:61023b0d39c8 1527:4c4b267e4004
143 ``` 143 ```
144 144
145 You'll then be able to open the demo at `http://localhost:8042/rt-viewer/index.html` 145 You'll then be able to open the demo at `http://localhost:8042/rt-viewer/index.html`
146 146
147 147
148 RtViewerPlugin
149 ---------------
150 This C++ plugin allows to extend the Orthanc Explorer to add a button labeled "Stone RT Viewer"
151 in the series page.
152
153 It also embeds and serves the RT Viewer files and is thus a standalone way of using this viewer.
154
155 Please note that building this plugin requires that the RtViewer be built inside the wasm-binaries
156 folder of the repo.
157
158 This will automatically be the case if you use the `<REPO-ROOT>/OrthancStone/Samples/WebAssembly/docker-build.sh` script.
159
160 If you use the `build-wasm-samples.sh` script above, you will have the copy `RtViewer` **folder**
161 from `<REPO-ROOT>/out/install-stone-wasm-RtViewer-RelWithDebInfo` to `<REPO-ROOT>/wasm-binaries/`.
162
163 TL;DR: Build like this (assuming `~/orthanc-stone` is the repo ):
164
165 ```
166 ~/orthanc-stone/OrthancStone/Samples/WebAssembly/docker-build.sh
167 ~/orthanc-stone/OrthancStone/Samples/RtViewerPlugin/docker-build.sh
168 ```
169
170 Once this is done, the plugin can be found in:
171
172 ```
173 ~/orthanc-stone/wasm-binaries/share/orthanc/plugins/libRtViewerPlugin.so
174 ```
175
176 Add this path to the `"Plugins"` section of your Orthanc configuration, start Orthanc, and you
177 should now see a "Stone MPR RT Viewer" button in the Orthanc Explorer, at the *series* level.
178
179 Open it on a CT series, and the RTSTRUCT and RTDOSE series of the same study will be loaded in
180 the viewer.
181
148 Native samples 182 Native samples
149 ================= 183 =================
150 184
151 ### Windows build 185 ### Windows build
152 186