@ohif/app 3.8.0-beta.8 → 3.8.0-beta.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/dist/{220.bundle.f7e1c96c94245e70f2be.js → 109.bundle.b4fee2a22b622839baf5.js} +4466 -3715
  2. package/dist/{471.bundle.49c8d281adbae4a2c4df.js → 121.bundle.47f05840a5b3cdf75543.js} +94 -113
  3. package/dist/141.bundle.556b4c1e4cab770417ac.js +8620 -0
  4. package/dist/{687.bundle.9065db35c01823286f08.js → 164.bundle.fadc7c5d634402c73b5f.js} +22 -38
  5. package/dist/17dd54813d5acc10bf8f.wasm +0 -0
  6. package/dist/183.bundle.a3e238998be71c4b2af8.js +30410 -0
  7. package/dist/{506.bundle.5731bb4349e266491225.js → 188.bundle.51dc4b37920f45594393.js} +23 -28
  8. package/dist/{342.bundle.e7c3d500f86fdfcc62b5.js → 206.bundle.fcaa081a0d1f68095c31.js} +1991 -1145
  9. package/dist/20fc4c659b85ccd2a9c0.wasm +0 -0
  10. package/dist/217.bundle.d44bbaa50b6fa563fe15.js +115126 -0
  11. package/dist/{451.bundle.57c21db5d003c75e9d61.js → 295.bundle.5ace95771ced62bdcab8.js} +111 -128
  12. package/dist/{125.bundle.253395f320b72180da63.js → 297.bundle.194d8985ab974839b5b6.js} +7 -8
  13. package/dist/{19.bundle.f77c5787b6d8ac0b638b.js → 325.bundle.fd8e0c18db4708d03a91.js} +477 -373
  14. package/dist/335.bundle.8400aa5a88697a6b9d53.js +2590 -0
  15. package/dist/{202.bundle.d3490836f71e001dd30f.js → 342.bundle.e6d0bba29351b5650a8c.js} +566 -868
  16. package/dist/{776.bundle.a2dedb405a12ffd7699b.js → 41.bundle.0905b258a90a7c6437bb.js} +7453 -3624
  17. package/dist/422.bundle.c6fd037b075dd54f1ba7.js +865 -0
  18. package/dist/{957.bundle.9ea4506963ef8b2d84ba.js → 433.bundle.e0018820758f5a86fa7f.js} +14797 -27561
  19. package/dist/445.bundle.38c6d2af64e41cd7c614.js +7835 -0
  20. package/dist/{126.bundle.6e7111d58bcc937ffd80.js → 448.bundle.5e6da31477887bf53016.js} +356 -430
  21. package/dist/487.bundle.89d973049defb3ba6cb7.js +1876 -0
  22. package/dist/{886.bundle.c8dd3ecc42a4253de278.js → 530.bundle.207b38c15c4c01e4db0e.js} +104 -121
  23. package/dist/{250.bundle.aea3335667054bdefe36.js → 544.bundle.1c1f57118560046649c1.js} +37 -62
  24. package/dist/574.bundle.d648fea691d6709bf2b4.js +2652 -0
  25. package/dist/{181.css → 574.css} +1 -1
  26. package/dist/{410.bundle.15c855b0ff4a1a674fb8.js → 594.bundle.84076375b127b9c7f673.js} +183 -221
  27. package/dist/{221.bundle.aef554202c58483cb34e.js → 633.bundle.acab89baaa06a299d679.js} +365 -553
  28. package/dist/{774.bundle.4b2dc46a35012b898e1a.js → 644.bundle.1e77691d2eeb96a423b0.js} +1852 -8945
  29. package/dist/{663.bundle.d7be28450db14266cdd0.js → 669.bundle.b17e8a621e38d92c653f.js} +310 -265
  30. package/dist/699.bundle.9367d7ef9f7615b2e733.js +772 -0
  31. package/dist/702.bundle.963481fbf871984b646f.js +8426 -0
  32. package/dist/722.bundle.afab1fe6bfcd569130ac.js +1083 -0
  33. package/dist/{359.bundle.45ecb3d28e8c22142606.js → 724.bundle.55f9f49816de931af91a.js} +165 -260
  34. package/dist/{757.bundle.ec8301d8e70d2b990f65.js → 726.bundle.0b3d9277d22fe7e15b89.js} +512 -879
  35. package/dist/{530.bundle.a03b6f942ace3e1baa1e.js → 835.bundle.15aff0b7433bb0dd6d6d.js} +37 -30
  36. package/dist/{822.bundle.82cdc418f8f56da6060b.js → 862.bundle.d32ab08e64806b2e964d.js} +81 -97
  37. package/dist/{236.bundle.4e9924934a747afac132.js → 889.bundle.8ef8b723d0163d5d135c.js} +207 -199
  38. package/dist/{281.bundle.deb7492d143e7768d8bf.js → 905.bundle.8a96e1a75b7cfe5ec093.js} +157 -124
  39. package/dist/{814.bundle.c8c951d20039b63b865a.js → 907.bundle.5c88ed911bed18582da4.js} +16 -30
  40. package/dist/{417.bundle.af0a207c29b109f84159.js → 931.bundle.d270a1fda9a2836c3cc5.js} +26 -26
  41. package/dist/{686.bundle.dccef1f36e4bc79bcc48.js → 939.bundle.9d93b2e47c52338747a2.js} +7 -8
  42. package/dist/94.bundle.f5f2479c214180d05d42.js +778 -0
  43. package/dist/{12.bundle.b5ca13e5363f170ecb3b.js → 961.bundle.f4e52bc76d3044d05372.js} +20 -33
  44. package/dist/app-config.js +1 -0
  45. package/dist/app.bundle.css +16 -13
  46. package/dist/{app.bundle.a978edc59b9d82f2eb22.js → app.bundle.ed937512f7d19d61c411.js} +183396 -87682
  47. package/dist/assets/images/CT-AAA.png +0 -0
  48. package/dist/assets/images/CT-AAA2.png +0 -0
  49. package/dist/assets/images/CT-Air.png +0 -0
  50. package/dist/assets/images/CT-Bone.png +0 -0
  51. package/dist/assets/images/CT-Bones.png +0 -0
  52. package/dist/assets/images/CT-Cardiac.png +0 -0
  53. package/dist/assets/images/CT-Cardiac2.png +0 -0
  54. package/dist/assets/images/CT-Cardiac3.png +0 -0
  55. package/dist/assets/images/CT-Chest-Contrast-Enhanced.png +0 -0
  56. package/dist/assets/images/CT-Chest-Vessels.png +0 -0
  57. package/dist/assets/images/CT-Coronary-Arteries-2.png +0 -0
  58. package/dist/assets/images/CT-Coronary-Arteries-3.png +0 -0
  59. package/dist/assets/images/CT-Coronary-Arteries.png +0 -0
  60. package/dist/assets/images/CT-Cropped-Volume-Bone.png +0 -0
  61. package/dist/assets/images/CT-Fat.png +0 -0
  62. package/dist/assets/images/CT-Liver-Vasculature.png +0 -0
  63. package/dist/assets/images/CT-Lung.png +0 -0
  64. package/dist/assets/images/CT-MIP.png +0 -0
  65. package/dist/assets/images/CT-Muscle.png +0 -0
  66. package/dist/assets/images/CT-Pulmonary-Arteries.png +0 -0
  67. package/dist/assets/images/CT-Soft-Tissue.png +0 -0
  68. package/dist/assets/images/DTI-FA-Brain.png +0 -0
  69. package/dist/assets/images/MR-Angio.png +0 -0
  70. package/dist/assets/images/MR-Default.png +0 -0
  71. package/dist/assets/images/MR-MIP.png +0 -0
  72. package/dist/assets/images/MR-T2-Brain.png +0 -0
  73. package/dist/assets/images/VolumeRendering.png +0 -0
  74. package/dist/cornerstoneDICOMImageLoader.min.js +1 -1
  75. package/dist/cornerstoneDICOMImageLoader.min.js.map +1 -1
  76. package/dist/{dicom-microscopy-viewer.bundle.2c146384eb9466d02ff8.js → dicom-microscopy-viewer.bundle.d3a56dc9f62df5e11019.js} +3 -3
  77. package/dist/histogram-worker.bundle.829e14ec12c2b41a4323.js +359 -0
  78. package/dist/index.html +1 -1
  79. package/dist/{index.worker.e62ecca63f1a2e124230.worker.js → index.worker.64c896c4316fcd506666.worker.js} +2 -2
  80. package/dist/index.worker.64c896c4316fcd506666.worker.js.map +1 -0
  81. package/dist/polySeg.bundle.f1a6ece1396dc1385155.js +249 -0
  82. package/dist/serve.json +12 -0
  83. package/dist/sw.js +1 -1
  84. package/package.json +26 -22
  85. package/dist/181.bundle.a62b9f0ec692299acb35.js +0 -1527
  86. package/dist/23.bundle.e008ad788170f2ed5569.js +0 -900
  87. package/dist/604.bundle.a51f83e64004bca5f497.js +0 -1848
  88. package/dist/613.bundle.9e7072e5b575354fe51e.js +0 -532
  89. package/dist/743.bundle.489f7df3a089d4d374e1.js +0 -78007
  90. package/dist/75788f12450d4c5ed494.wasm +0 -0
  91. package/dist/775.bundle.2285e7e0e67878948c0d.js +0 -1009
  92. package/dist/788.bundle.207ac23c0dfa70cbe3fb.js +0 -2682
  93. package/dist/82.bundle.d6fdcca0f67540bb226a.js +0 -1049
  94. package/dist/index.worker.e62ecca63f1a2e124230.worker.js.map +0 -1
  95. /package/dist/{19.css → 325.css} +0 -0
  96. /package/dist/{776.css → 41.css} +0 -0
  97. /package/dist/{579.css → 481.css} +0 -0
  98. /package/dist/{250.css → 544.css} +0 -0
  99. /package/dist/{221.css → 633.css} +0 -0
@@ -0,0 +1,778 @@
1
+ "use strict";
2
+ (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[94],{
3
+
4
+ /***/ 14094:
5
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6
+
7
+ // ESM COMPAT FLAG
8
+ __webpack_require__.r(__webpack_exports__);
9
+
10
+ // EXPORTS
11
+ __webpack_require__.d(__webpack_exports__, {
12
+ "default": () => (/* binding */ preclinical_4d_src)
13
+ });
14
+
15
+ ;// CONCATENATED MODULE: ../../../modes/preclinical-4d/package.json
16
+ const package_namespaceObject = /*#__PURE__*/JSON.parse('{"UU":"@ohif/mode-preclinical-4d"}');
17
+ ;// CONCATENATED MODULE: ../../../modes/preclinical-4d/src/id.js
18
+
19
+ const id = package_namespaceObject.UU;
20
+
21
+ // EXTERNAL MODULE: ../../core/src/index.ts + 70 modules
22
+ var src = __webpack_require__(55411);
23
+ ;// CONCATENATED MODULE: ../../../modes/preclinical-4d/src/getWorkflowSettings.ts
24
+ const dynamicVolume = {
25
+ sopClassHandler: '@ohif/extension-cornerstone-dynamic-volume.sopClassHandlerModule.dynamic-volume',
26
+ leftPanel: '@ohif/extension-cornerstone-dynamic-volume.panelModule.dynamic-volume',
27
+ toolBox: '@ohif/extension-cornerstone-dynamic-volume.panelModule.dynamic-toolbox',
28
+ export: '@ohif/extension-cornerstone-dynamic-volume.panelModule.dynamic-export'
29
+ };
30
+ const cornerstone = {
31
+ segmentation: '@ohif/extension-cornerstone-dicom-seg.panelModule.panelSegmentation',
32
+ activeViewportWindowLevel: '@ohif/extension-cornerstone.panelModule.activeViewportWindowLevel'
33
+ };
34
+ const defaultButtons = {
35
+ buttonSection: 'primary',
36
+ buttons: ['MeasurementTools', 'Zoom', 'WindowLevel', 'Crosshairs', 'Pan']
37
+ };
38
+ const defaultLeftPanel = [[dynamicVolume.leftPanel, cornerstone.activeViewportWindowLevel]];
39
+ const defaultLayout = {
40
+ panels: {
41
+ left: defaultLeftPanel,
42
+ right: []
43
+ }
44
+ };
45
+ function getWorkflowSettings({
46
+ servicesManager
47
+ }) {
48
+ return {
49
+ steps: [{
50
+ id: 'dataPreparation',
51
+ name: 'Data Preparation',
52
+ layout: {
53
+ panels: {
54
+ left: defaultLeftPanel
55
+ }
56
+ },
57
+ toolbarButtons: defaultButtons,
58
+ hangingProtocol: {
59
+ protocolId: 'default4D',
60
+ stageId: 'dataPreparation'
61
+ },
62
+ info: 'In the Data Preparation step, you can visualize the dynamic PT volume data in three orthogonal views: axial, sagittal, and coronal. Use the left panel controls to adjust the visualization settings, such as playback speed, or navigate between different frames. This step allows you to assess the quality of the PT data and prepare for further analysis or registration with other modalities.'
63
+ }, {
64
+ id: 'registration',
65
+ name: 'Registration',
66
+ layout: defaultLayout,
67
+ toolbarButtons: defaultButtons,
68
+ hangingProtocol: {
69
+ protocolId: 'default4D',
70
+ stageId: 'registration'
71
+ },
72
+ info: 'The Registration step provides a comprehensive view of the CT, PT, and fused CT-PT volume data in multiple orientations. The fusion viewports display the CT and PT volumes overlaid, allowing you to visually assess the alignment and registration between the two modalities. The individual CT and PT viewports are also available for side-by-side comparison. This step is crucial for ensuring proper registration before proceeding with further analysis or quantification.'
73
+ }, {
74
+ id: 'roiQuantification',
75
+ name: 'ROI Quantification',
76
+ layout: {
77
+ panels: {
78
+ left: defaultLeftPanel,
79
+ right: [[dynamicVolume.toolBox, cornerstone.segmentation, dynamicVolume.export]]
80
+ },
81
+ options: {
82
+ leftPanelClosed: false,
83
+ rightPanelClosed: false
84
+ }
85
+ },
86
+ toolbarButtons: [defaultButtons, {
87
+ buttonSection: 'dynamic-toolbox',
88
+ buttons: ['BrushTools', 'RectangleROIStartEndThreshold']
89
+ }],
90
+ hangingProtocol: {
91
+ protocolId: 'default4D',
92
+ stageId: 'roiQuantification'
93
+ },
94
+ info: 'The ROI quantification step allows you to define regions of interest (ROIs) with labelmap segmentations, on the fused CT-PT volume data using the labelmap tools. The left panel provides controls for adjusting the dynamic volume visualization, while the right panel offers tools for segmentation, editing, and exporting the ROI data. This step enables you to quantify the uptake or other measures within the defined ROIs for further analysis.'
95
+ }, {
96
+ id: 'kineticAnalysis',
97
+ name: 'Kinetic Analysis',
98
+ layout: defaultLayout,
99
+ toolbarButtons: defaultButtons,
100
+ hangingProtocol: {
101
+ protocolId: 'default4D',
102
+ stageId: 'kineticAnalysis'
103
+ },
104
+ onEnter: [{
105
+ commandName: 'updateSegmentationsChartDisplaySet',
106
+ options: {
107
+ servicesManager
108
+ }
109
+ }],
110
+ info: 'The Kinetic Analysis step provides a comprehensive view for visualizing and analyzing the dynamic data derived from the ROI segmentations. The fusion viewports display the combined CT-PT volume data, while a dedicated viewport shows a series chart representing the data over time. This step allows you to explore the temporal dynamics of the uptake or other kinetic measures within the defined regions of interest, enabling further quantitative analysis and modeling.'
111
+ }]
112
+ };
113
+ }
114
+
115
+ ;// CONCATENATED MODULE: ../../../modes/preclinical-4d/src/initWorkflowSteps.ts
116
+
117
+ function initWorkflowSteps({
118
+ servicesManager
119
+ }) {
120
+ const {
121
+ workflowStepsService
122
+ } = servicesManager.services;
123
+ const workflowSettings = getWorkflowSettings({
124
+ servicesManager
125
+ });
126
+ workflowStepsService.addWorkflowSteps(workflowSettings.steps);
127
+ workflowStepsService.setActiveWorkflowStep(workflowSettings.steps[0].id);
128
+ }
129
+ ;// CONCATENATED MODULE: ../../../modes/preclinical-4d/src/initToolGroups.tsx
130
+ const toolGroupIds = {
131
+ default: 'dynamic4D-default',
132
+ PT: 'dynamic4D-pt',
133
+ Fusion: 'dynamic4D-fusion',
134
+ CT: 'dynamic4D-ct'
135
+ };
136
+ function _initToolGroups(toolNames, Enums, toolGroupService, commandsManager) {
137
+ const tools = {
138
+ active: [{
139
+ toolName: toolNames.WindowLevel,
140
+ bindings: [{
141
+ mouseButton: Enums.MouseBindings.Primary
142
+ }]
143
+ }, {
144
+ toolName: toolNames.Pan,
145
+ bindings: [{
146
+ mouseButton: Enums.MouseBindings.Auxiliary
147
+ }]
148
+ }, {
149
+ toolName: toolNames.Zoom,
150
+ bindings: [{
151
+ mouseButton: Enums.MouseBindings.Secondary
152
+ }]
153
+ }, {
154
+ toolName: toolNames.StackScrollMouseWheel,
155
+ bindings: []
156
+ }],
157
+ passive: [{
158
+ toolName: toolNames.Length
159
+ }, {
160
+ toolName: toolNames.ArrowAnnotate
161
+ }, {
162
+ toolName: toolNames.Bidirectional
163
+ }, {
164
+ toolName: toolNames.Probe
165
+ }, {
166
+ toolName: toolNames.EllipticalROI
167
+ }, {
168
+ toolName: toolNames.RectangleROI
169
+ }, {
170
+ toolName: toolNames.RectangleROIThreshold
171
+ }, {
172
+ toolName: toolNames.RectangleScissors
173
+ }, {
174
+ toolName: toolNames.PaintFill
175
+ }, {
176
+ toolName: toolNames.StackScroll
177
+ }, {
178
+ toolName: toolNames.Magnify
179
+ }, {
180
+ toolName: 'CircularBrush',
181
+ parentTool: 'Brush',
182
+ configuration: {
183
+ activeStrategy: 'FILL_INSIDE_CIRCLE',
184
+ brushSize: 7
185
+ }
186
+ }, {
187
+ toolName: 'CircularEraser',
188
+ parentTool: 'Brush',
189
+ configuration: {
190
+ activeStrategy: 'ERASE_INSIDE_CIRCLE',
191
+ brushSize: 7
192
+ }
193
+ }, {
194
+ toolName: 'SphereBrush',
195
+ parentTool: 'Brush',
196
+ configuration: {
197
+ activeStrategy: 'FILL_INSIDE_SPHERE',
198
+ brushSize: 7
199
+ }
200
+ }, {
201
+ toolName: 'SphereEraser',
202
+ parentTool: 'Brush',
203
+ configuration: {
204
+ activeStrategy: 'ERASE_INSIDE_SPHERE',
205
+ brushSize: 7
206
+ }
207
+ }, {
208
+ toolName: 'ThresholdCircularBrush',
209
+ parentTool: 'Brush',
210
+ configuration: {
211
+ activeStrategy: 'THRESHOLD_INSIDE_CIRCLE',
212
+ brushSize: 7
213
+ }
214
+ }, {
215
+ toolName: 'ThresholdSphereBrush',
216
+ parentTool: 'Brush',
217
+ configuration: {
218
+ activeStrategy: 'THRESHOLD_INSIDE_SPHERE',
219
+ brushSize: 7
220
+ }
221
+ }, {
222
+ toolName: toolNames.CircleScissors
223
+ }, {
224
+ toolName: toolNames.RectangleScissors
225
+ }, {
226
+ toolName: toolNames.SphereScissors
227
+ }, {
228
+ toolName: toolNames.StackScroll
229
+ }, {
230
+ toolName: toolNames.Magnify
231
+ }, {
232
+ toolName: toolNames.SegmentationDisplay
233
+ }],
234
+ enabled: [{
235
+ toolName: toolNames.SegmentationDisplay
236
+ }],
237
+ disabled: [{
238
+ toolName: toolNames.Crosshairs,
239
+ configuration: {
240
+ viewportIndicators: false,
241
+ disableOnPassive: true,
242
+ autoPan: {
243
+ enabled: false,
244
+ panSize: 10
245
+ }
246
+ }
247
+ }]
248
+ };
249
+ toolGroupService.createToolGroupAndAddTools(toolGroupIds.PT, {
250
+ ...tools,
251
+ passive: [...tools.passive, {
252
+ toolName: 'RectangleROIStartEndThreshold'
253
+ }]
254
+ });
255
+ toolGroupService.createToolGroupAndAddTools(toolGroupIds.CT, {
256
+ ...tools,
257
+ passive: [...tools.passive, {
258
+ toolName: 'RectangleROIStartEndThreshold'
259
+ }]
260
+ });
261
+ toolGroupService.createToolGroupAndAddTools(toolGroupIds.Fusion, {
262
+ ...tools,
263
+ passive: [...tools.passive, {
264
+ toolName: 'RectangleROIStartEndThreshold'
265
+ }]
266
+ });
267
+ toolGroupService.createToolGroupAndAddTools(toolGroupIds.default, tools);
268
+ }
269
+ function initToolGroups({
270
+ toolNames,
271
+ Enums,
272
+ toolGroupService,
273
+ commandsManager
274
+ }) {
275
+ _initToolGroups(toolNames, Enums, toolGroupService, commandsManager);
276
+ }
277
+
278
+ ;// CONCATENATED MODULE: ../../../modes/preclinical-4d/src/toolbarButtons.tsx
279
+
280
+
281
+ const {
282
+ createButton
283
+ } = src.ToolbarService;
284
+ const setToolActiveToolbar = {
285
+ commandName: 'setToolActiveToolbar',
286
+ commandOptions: {
287
+ toolGroupIds: [toolGroupIds.PT, toolGroupIds.CT, toolGroupIds.Fusion, toolGroupIds.default]
288
+ }
289
+ };
290
+ const toolbarButtons = [{
291
+ id: 'MeasurementTools',
292
+ uiType: 'ohif.splitButton',
293
+ props: {
294
+ groupId: 'MeasurementTools',
295
+ evaluate: 'evaluate.group.promoteToPrimaryIfCornerstoneToolNotActiveInTheList',
296
+ primary: createButton({
297
+ id: 'Length',
298
+ icon: 'tool-length',
299
+ label: 'Length',
300
+ tooltip: 'Length Tool',
301
+ commands: setToolActiveToolbar,
302
+ evaluate: 'evaluate.cornerstoneTool'
303
+ }),
304
+ secondary: {
305
+ icon: 'chevron-down',
306
+ tooltip: 'More Measure Tools'
307
+ },
308
+ items: [{
309
+ id: 'Length',
310
+ icon: 'tool-length',
311
+ label: 'Length',
312
+ tooltip: 'Length Tool',
313
+ commands: setToolActiveToolbar,
314
+ evaluate: 'evaluate.cornerstoneTool'
315
+ }, {
316
+ id: 'Bidirectional',
317
+ icon: 'tool-bidirectional',
318
+ label: 'Bidirectional',
319
+ tooltip: 'Bidirectional Tool',
320
+ commands: setToolActiveToolbar,
321
+ evaluate: 'evaluate.cornerstoneTool'
322
+ }, {
323
+ id: 'ArrowAnnotate',
324
+ icon: 'tool-annotate',
325
+ label: 'Annotation',
326
+ tooltip: 'Arrow Annotate',
327
+ commands: setToolActiveToolbar,
328
+ evaluate: 'evaluate.cornerstoneTool'
329
+ }, {
330
+ id: 'EllipticalROI',
331
+ icon: 'tool-ellipse',
332
+ label: 'Ellipse',
333
+ tooltip: 'Ellipse ROI',
334
+ commands: setToolActiveToolbar,
335
+ evaluate: 'evaluate.cornerstoneTool'
336
+ }]
337
+ }
338
+ }, {
339
+ id: 'Zoom',
340
+ uiType: 'ohif.radioGroup',
341
+ props: {
342
+ icon: 'tool-zoom',
343
+ label: 'Zoom',
344
+ commands: setToolActiveToolbar,
345
+ evaluate: 'evaluate.cornerstoneTool'
346
+ }
347
+ }, {
348
+ id: 'WindowLevel',
349
+ uiType: 'ohif.radioGroup',
350
+ props: {
351
+ icon: 'tool-window-level',
352
+ label: 'Window Level',
353
+ commands: setToolActiveToolbar,
354
+ evaluate: 'evaluate.cornerstoneTool'
355
+ }
356
+ }, {
357
+ id: 'Pan',
358
+ uiType: 'ohif.radioGroup',
359
+ props: {
360
+ type: 'tool',
361
+ icon: 'tool-move',
362
+ label: 'Pan',
363
+ commands: setToolActiveToolbar,
364
+ evaluate: 'evaluate.cornerstoneTool'
365
+ }
366
+ }, {
367
+ id: 'TrackballRotate',
368
+ uiType: 'ohif.radioGroup',
369
+ props: {
370
+ type: 'tool',
371
+ icon: 'tool-3d-rotate',
372
+ label: '3D Rotate',
373
+ commands: setToolActiveToolbar,
374
+ evaluate: 'evaluate.cornerstoneTool'
375
+ }
376
+ }, {
377
+ id: 'Capture',
378
+ uiType: 'ohif.radioGroup',
379
+ props: {
380
+ icon: 'tool-capture',
381
+ label: 'Capture',
382
+ commands: 'showDownloadViewportModal',
383
+ evaluate: 'evaluate.action'
384
+ }
385
+ }, {
386
+ id: 'Layout',
387
+ uiType: 'ohif.layoutSelector',
388
+ props: {
389
+ rows: 3,
390
+ columns: 4,
391
+ evaluate: 'evaluate.action'
392
+ }
393
+ }, {
394
+ id: 'Crosshairs',
395
+ uiType: 'ohif.radioGroup',
396
+ props: {
397
+ type: 'tool',
398
+ icon: 'tool-crosshair',
399
+ label: 'Crosshairs',
400
+ commands: setToolActiveToolbar,
401
+ evaluate: 'evaluate.cornerstoneTool'
402
+ }
403
+ }, {
404
+ id: 'ProgressDropdown',
405
+ uiType: 'ohif.progressDropdown'
406
+ }, {
407
+ id: 'RectangleROIStartEndThreshold',
408
+ uiType: 'ohif.radioGroup',
409
+ props: {
410
+ icon: 'tool-create-threshold',
411
+ label: 'Rectangle ROI Threshold',
412
+ commands: setToolActiveToolbar,
413
+ evaluate: {
414
+ name: 'evaluate.cornerstone.segmentation',
415
+ toolNames: ['RectangleROIStartEndThreshold']
416
+ },
417
+ options: 'tmtv.RectangleROIThresholdOptions'
418
+ }
419
+ }];
420
+ /* harmony default export */ const src_toolbarButtons = (toolbarButtons);
421
+ ;// CONCATENATED MODULE: ../../../modes/preclinical-4d/src/segmentationButtons.ts
422
+ function _createSetToolActiveCommands(toolName) {
423
+ return [{
424
+ commandName: 'setToolActive',
425
+ commandOptions: {
426
+ toolName
427
+ }
428
+ }];
429
+ }
430
+ const segmentationButtons_toolbarButtons = [{
431
+ id: 'BrushTools',
432
+ uiType: 'ohif.buttonGroup',
433
+ props: {
434
+ groupId: 'BrushTools',
435
+ items: [{
436
+ id: 'Brush',
437
+ icon: 'icon-tool-brush',
438
+ label: 'Brush',
439
+ evaluate: {
440
+ name: 'evaluate.cornerstone.segmentation',
441
+ toolNames: ['CircularBrush', 'SphereBrush']
442
+ },
443
+ commands: _createSetToolActiveCommands('CircularBrush'),
444
+ options: [{
445
+ name: 'Radius (mm)',
446
+ id: 'brush-radius',
447
+ type: 'range',
448
+ min: 0.5,
449
+ max: 99.5,
450
+ step: 0.5,
451
+ value: 7,
452
+ commands: {
453
+ commandName: 'setBrushSize',
454
+ commandOptions: {
455
+ toolNames: ['CircularBrush', 'SphereBrush']
456
+ }
457
+ }
458
+ }, {
459
+ name: 'Shape',
460
+ type: 'radio',
461
+ id: 'brush-mode',
462
+ value: 'CircularBrush',
463
+ values: [{
464
+ value: 'CircularBrush',
465
+ label: 'Circle'
466
+ }, {
467
+ value: 'SphereBrush',
468
+ label: 'Sphere'
469
+ }],
470
+ commands: 'setToolActiveToolbar'
471
+ }]
472
+ }, {
473
+ id: 'Eraser',
474
+ icon: 'icon-tool-eraser',
475
+ label: 'Eraser',
476
+ evaluate: {
477
+ name: 'evaluate.cornerstone.segmentation',
478
+ toolNames: ['CircularEraser', 'SphereEraser']
479
+ },
480
+ commands: _createSetToolActiveCommands('CircularEraser'),
481
+ options: [{
482
+ name: 'Radius (mm)',
483
+ id: 'eraser-radius',
484
+ type: 'range',
485
+ min: 0.5,
486
+ max: 99.5,
487
+ step: 0.5,
488
+ value: 7,
489
+ commands: {
490
+ commandName: 'setBrushSize',
491
+ commandOptions: {
492
+ toolNames: ['CircularEraser', 'SphereEraser']
493
+ }
494
+ }
495
+ }, {
496
+ name: 'Shape',
497
+ type: 'radio',
498
+ id: 'eraser-mode',
499
+ value: 'CircularEraser',
500
+ values: [{
501
+ value: 'CircularEraser',
502
+ label: 'Circle'
503
+ }, {
504
+ value: 'SphereEraser',
505
+ label: 'Sphere'
506
+ }],
507
+ commands: 'setToolActiveToolbar'
508
+ }]
509
+ }, {
510
+ id: 'Threshold',
511
+ icon: 'icon-tool-threshold',
512
+ label: 'Eraser',
513
+ evaluate: {
514
+ name: 'evaluate.cornerstone.segmentation',
515
+ toolNames: ['ThresholdCircularBrush', 'ThresholdSphereBrush']
516
+ },
517
+ commands: _createSetToolActiveCommands('ThresholdCircularBrush'),
518
+ options: [{
519
+ name: 'Radius (mm)',
520
+ id: 'threshold-radius',
521
+ type: 'range',
522
+ min: 0.5,
523
+ max: 99.5,
524
+ step: 0.5,
525
+ value: 7,
526
+ commands: {
527
+ commandName: 'setBrushSize',
528
+ commandOptions: {
529
+ toolNames: ['ThresholdCircularBrush', 'ThresholdSphereBrush']
530
+ }
531
+ }
532
+ }, {
533
+ name: 'Shape',
534
+ type: 'radio',
535
+ id: 'eraser-mode',
536
+ value: 'ThresholdCircularBrush',
537
+ values: [{
538
+ value: 'ThresholdCircularBrush',
539
+ label: 'Circle'
540
+ }, {
541
+ value: 'ThresholdSphereBrush',
542
+ label: 'Sphere'
543
+ }],
544
+ commands: 'setToolActiveToolbar'
545
+ }, {
546
+ name: 'ThresholdRange',
547
+ type: 'double-range',
548
+ id: 'threshold-range',
549
+ min: 0,
550
+ max: 10,
551
+ step: 1,
552
+ values: [2, 5],
553
+ commands: {
554
+ commandName: 'setThresholdRange',
555
+ commandOptions: {
556
+ toolNames: ['ThresholdCircularBrush', 'ThresholdSphereBrush']
557
+ }
558
+ }
559
+ }]
560
+ }]
561
+ }
562
+ }, {
563
+ id: 'Shapes',
564
+ uiType: 'ohif.radioGroup',
565
+ props: {
566
+ label: 'Shapes',
567
+ evaluate: {
568
+ name: 'evaluate.cornerstone.segmentation',
569
+ toolNames: ['CircleScissor', 'SphereScissor', 'RectangleScissor']
570
+ },
571
+ icon: 'icon-tool-shape',
572
+ commands: _createSetToolActiveCommands('CircleScissor'),
573
+ options: [{
574
+ name: 'Shape',
575
+ type: 'radio',
576
+ value: 'CircleScissor',
577
+ id: 'shape-mode',
578
+ values: [{
579
+ value: 'CircleScissor',
580
+ label: 'Circle'
581
+ }, {
582
+ value: 'SphereScissor',
583
+ label: 'Sphere'
584
+ }, {
585
+ value: 'RectangleScissor',
586
+ label: 'Rectangle'
587
+ }],
588
+ commands: 'setToolActiveToolbar'
589
+ }]
590
+ }
591
+ }];
592
+ /* harmony default export */ const segmentationButtons = (segmentationButtons_toolbarButtons);
593
+ ;// CONCATENATED MODULE: ../../../modes/preclinical-4d/src/index.tsx
594
+
595
+
596
+
597
+
598
+
599
+
600
+ const extensionDependencies = {
601
+ '@ohif/extension-default': '3.7.0-beta.76',
602
+ '@ohif/extension-cornerstone': '3.7.0-beta.76',
603
+ '@ohif/extension-cornerstone-dynamic-volume': '3.7.0-beta.76',
604
+ '@ohif/extension-cornerstone-dicom-seg': '3.7.0-beta.76',
605
+ '@ohif/extension-tmtv': '3.7.0-beta.76'
606
+ };
607
+ const ohif = {
608
+ layout: '@ohif/extension-default.layoutTemplateModule.viewerLayout',
609
+ defaultSopClassHandler: '@ohif/extension-default.sopClassHandlerModule.stack',
610
+ chartSopClassHandler: '@ohif/extension-default.sopClassHandlerModule.chart',
611
+ hangingProtocol: '@ohif/extension-default.hangingProtocolModule.default',
612
+ leftPanel: '@ohif/extension-default.panelModule.seriesList',
613
+ rightPanel: '@ohif/extension-default.panelModule.measure',
614
+ chartViewport: '@ohif/extension-default.viewportModule.chartViewport'
615
+ };
616
+ const src_dynamicVolume = {
617
+ leftPanel: '@ohif/extension-cornerstone-dynamic-volume.panelModule.dynamic-volume'
618
+ };
619
+ const src_cornerstone = {
620
+ viewport: '@ohif/extension-cornerstone.viewportModule.cornerstone',
621
+ activeViewportWindowLevel: '@ohif/extension-cornerstone.panelModule.activeViewportWindowLevel'
622
+ };
623
+ function modeFactory({
624
+ modeConfiguration
625
+ }) {
626
+ return {
627
+ id: id,
628
+ routeName: 'dynamic-volume',
629
+ displayName: '4D PT/CT',
630
+ onModeEnter: function ({
631
+ servicesManager,
632
+ extensionManager,
633
+ commandsManager
634
+ }) {
635
+ const {
636
+ measurementService,
637
+ toolbarService,
638
+ cineService,
639
+ cornerstoneViewportService,
640
+ toolGroupService,
641
+ customizationService,
642
+ viewportGridService
643
+ } = servicesManager.services;
644
+ const utilityModule = extensionManager.getModuleEntry('@ohif/extension-cornerstone.utilityModule.tools');
645
+ const {
646
+ toolNames,
647
+ Enums
648
+ } = utilityModule.exports;
649
+ measurementService.clearMeasurements();
650
+ initToolGroups({
651
+ toolNames,
652
+ Enums,
653
+ toolGroupService,
654
+ commandsManager
655
+ });
656
+ toolbarService.addButtons([...src_toolbarButtons, ...segmentationButtons]);
657
+ toolbarService.createButtonSection('secondary', ['ProgressDropdown']);
658
+
659
+ // the primary button section is created in the workflow steps
660
+ // specific to the step
661
+ customizationService.addModeCustomizations([{
662
+ id: 'segmentation.panel',
663
+ segmentationPanelMode: 'expanded',
664
+ addSegment: false,
665
+ onSegmentationAdd: () => {
666
+ commandsManager.run('createNewLabelmapFromPT');
667
+ }
668
+ }]);
669
+
670
+ // Auto play the clip initially when the volumes are loaded
671
+ const {
672
+ unsubscribe
673
+ } = cornerstoneViewportService.subscribe(cornerstoneViewportService.EVENTS.VIEWPORT_VOLUMES_CHANGED, () => {
674
+ const viewportId = viewportGridService.getActiveViewportId();
675
+ const csViewport = cornerstoneViewportService.getCornerstoneViewport(viewportId);
676
+ cineService.playClip(csViewport.element, {
677
+ viewportId
678
+ });
679
+ // cineService.setIsCineEnabled(true);
680
+
681
+ unsubscribe();
682
+ });
683
+ },
684
+ onSetupRouteComplete: ({
685
+ servicesManager
686
+ }) => {
687
+ // This needs to run after hanging protocol matching process because
688
+ // it may change the protocol/stage based on workflow stage settings
689
+ initWorkflowSteps({
690
+ servicesManager
691
+ });
692
+ },
693
+ onModeExit: ({
694
+ servicesManager
695
+ }) => {
696
+ const {
697
+ toolGroupService,
698
+ syncGroupService,
699
+ segmentationService,
700
+ cornerstoneViewportService
701
+ } = servicesManager.services;
702
+ toolGroupService.destroy();
703
+ syncGroupService.destroy();
704
+ segmentationService.destroy();
705
+ cornerstoneViewportService.destroy();
706
+ },
707
+ get validationTags() {
708
+ return {
709
+ study: [],
710
+ series: []
711
+ };
712
+ },
713
+ isValidMode: ({
714
+ modalities,
715
+ study
716
+ }) => {
717
+ // Todo: we need to find a better way to validate the mode
718
+ return {
719
+ valid: study.mrn === 'M1',
720
+ description: 'This mode is only available for 4D PET/CT studies.'
721
+ };
722
+ },
723
+ /**
724
+ * Mode Routes are used to define the mode's behavior. A list of Mode Route
725
+ * that includes the mode's path and the layout to be used. The layout will
726
+ * include the components that are used in the layout. For instance, if the
727
+ * default layoutTemplate is used (id: '@ohif/extension-default.layoutTemplateModule.viewerLayout')
728
+ * it will include the leftPanels, rightPanels, and viewports. However, if
729
+ * you define another layoutTemplate that includes a Footer for instance,
730
+ * you should provide the Footer component here too. Note: We use Strings
731
+ * to reference the component's ID as they are registered in the internal
732
+ * ExtensionManager. The template for the string is:
733
+ * `${extensionId}.{moduleType}.${componentId}`.
734
+ */
735
+ routes: [{
736
+ path: 'preclinical-4d',
737
+ layoutTemplate: ({
738
+ location,
739
+ servicesManager
740
+ }) => {
741
+ return {
742
+ id: ohif.layout,
743
+ props: {
744
+ leftPanels: [[src_dynamicVolume.leftPanel, src_cornerstone.activeViewportWindowLevel]],
745
+ rightPanels: [],
746
+ rightPanelClosed: true,
747
+ viewports: [{
748
+ namespace: src_cornerstone.viewport,
749
+ displaySetsToDisplay: [ohif.defaultSopClassHandler]
750
+ }, {
751
+ namespace: ohif.chartViewport,
752
+ displaySetsToDisplay: [ohif.chartSopClassHandler]
753
+ }]
754
+ }
755
+ };
756
+ }
757
+ }],
758
+ extensions: extensionDependencies,
759
+ // Default protocol gets self-registered by default in the init
760
+ hangingProtocol: 'default4D',
761
+ // Order is important in sop class handlers when two handlers both use
762
+ // the same sop class under different situations. In that case, the more
763
+ // general handler needs to come last. For this case, the dicomvideo must
764
+ // come first to remove video transfer syntax before ohif uses images
765
+ sopClassHandlers: [ohif.chartSopClassHandler, ohif.defaultSopClassHandler],
766
+ hotkeys: [...src/* hotkeys */.ot.defaults.hotkeyBindings]
767
+ };
768
+ }
769
+ const mode = {
770
+ id: id,
771
+ modeFactory,
772
+ extensionDependencies
773
+ };
774
+ /* harmony default export */ const preclinical_4d_src = (mode);
775
+
776
+ /***/ })
777
+
778
+ }]);