feat(custom displayOptions): add custom options to every level of hp (#3372)

* feat(custom displayOptions): add custom options to every level of hanging protocols

* move set preset down to cornerstone3d

* works

* fix tmtv based on new api

* fix unit test

* close

* review1

* upgrade packages

* update packages

* apply review comments

* recursive call

* less copy

* apply review comments

* fix e2e tests

* apply review comments

* revert

* apply review comments

* apply review comments

---------

Co-authored-by: Bill Wallace <wayfarer3130@gmail.com>
This commit is contained in:
AlirezaandBill Wallace authored and GitHub committed 2023-05-16 13:07:37 -04:00
1 parent 045e54aa02
commit 1881ce5cbc
19 files changed
+240 -851

No files matched your search

+19 -17
View File
@@ -121,8 +121,7 @@ const ptAXIAL = {
{
options: {
voi: {
windowWidth: 5,
windowCenter: 2.5,
custom: 'getPTVOIRange',
},
voiInverted: true,
},
@@ -163,8 +162,7 @@ const ptSAGITTAL = {
{
options: {
voi: {
windowWidth: 5,
windowCenter: 2.5,
custom: 'getPTVOIRange',
},
voiInverted: true,
},
@@ -205,8 +203,7 @@ const ptCORONAL = {
{
options: {
voi: {
windowWidth: 5,
windowCenter: 2.5,
custom: 'getPTVOIRange',
},
voiInverted: true,
},
@@ -258,10 +255,12 @@ const fusionAXIAL = {
},
{
options: {
colormap: 'hsv',
colormap: {
name: 'hsv',
opacityMapping: [{ value: 0.1, opacity: 0.9 }],
},
voi: {
windowWidth: 5,
windowCenter: 2.5,
custom: 'getPTVOIRange',
},
},
id: 'ptDisplaySet',
@@ -312,10 +311,12 @@ const fusionSAGITTAL = {
},
{
options: {
colormap: 'hsv',
colormap: {
name: 'hsv',
opacityMapping: [{ value: 0.1, opacity: 0.9 }],
},
voi: {
windowWidth: 5,
windowCenter: 2.5,
custom: 'getPTVOIRange',
},
},
id: 'ptDisplaySet',
@@ -366,10 +367,12 @@ const fusionCORONAL = {
},
{
options: {
colormap: 'hsv',
colormap: {
name: 'hsv',
opacityMapping: [{ value: 0.1, opacity: 0.9 }],
},
voi: {
windowWidth: 5,
windowCenter: 2.5,
custom: 'getPTVOIRange',
},
},
id: 'ptDisplaySet',
@@ -414,8 +417,7 @@ const mipSAGITTAL = {
blendMode: 'MIP',
slabThickness: 'fullVolume',
voi: {
windowWidth: 5,
windowCenter: 2.5,
custom: 'getPTVOIRange',
},
voiInverted: true,
},