diff --git a/usage/src/Volume/PET_CT_Overlay.jsx b/usage/src/Volume/PET_CT_Overlay.jsx index 184f5d6..81214b2 100644 --- a/usage/src/Volume/PET_CT_Overlay.jsx +++ b/usage/src/Volume/PET_CT_Overlay.jsx @@ -27,7 +27,9 @@ function Slider(props) { const onChange = (e) => { const value = Number(e.currentTarget.value); props.setValue(value); - props.setPTValue(value); + if (props.setPTValue) { + props.setPTValue(value); + } setTimeout(view?.renderView, 0); }; return ( @@ -288,6 +290,9 @@ function Example(props) { } }, [window.ctData, window.ptData]); + const cdrMin = ptcolorLevel - ptcolorWindow / 2.0; + const cdrMax = ptcolorLevel + ptcolorWindow / 2.0; + return ( @@ -349,6 +354,20 @@ function Example(props) { setValue={setColorPreset} style={{ top: '10px', left: '405px' }} /> + +