double click thumbnail loads SR in viewport
This commit is contained in:
parent
4c7e3f95fe
commit
c9a365f7e2
@ -22,7 +22,10 @@ function PanelStudyBrowserTracking({
|
|||||||
// doesn't have to have such an intense shape. This works well enough for now.
|
// doesn't have to have such an intense shape. This works well enough for now.
|
||||||
// Tabs --> Studies --> DisplaySets --> Thumbnails
|
// Tabs --> Studies --> DisplaySets --> Thumbnails
|
||||||
const [{ StudyInstanceUIDs }, dispatchImageViewer] = useImageViewer();
|
const [{ StudyInstanceUIDs }, dispatchImageViewer] = useImageViewer();
|
||||||
const [{ activeViewportIndex, viewports }] = useViewportGrid();
|
const [
|
||||||
|
{ activeViewportIndex, viewports },
|
||||||
|
viewportGridService,
|
||||||
|
] = useViewportGrid();
|
||||||
const [
|
const [
|
||||||
trackedMeasurements,
|
trackedMeasurements,
|
||||||
sendTrackedMeasurementsEvent,
|
sendTrackedMeasurementsEvent,
|
||||||
@ -35,6 +38,13 @@ function PanelStudyBrowserTracking({
|
|||||||
const [displaySets, setDisplaySets] = useState([]);
|
const [displaySets, setDisplaySets] = useState([]);
|
||||||
const [thumbnailImageSrcMap, setThumbnailImageSrcMap] = useState({});
|
const [thumbnailImageSrcMap, setThumbnailImageSrcMap] = useState({});
|
||||||
|
|
||||||
|
const onClickThumbnailHandler = displaySetInstanceUID => {
|
||||||
|
viewportGridService.setDisplaysetForViewport({
|
||||||
|
viewportIndex: activeViewportIndex,
|
||||||
|
displaySetInstanceUID,
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
// TODO: Should this be somewhere else? Feels more like a mode "lifecycle" setup/destroy?
|
// TODO: Should this be somewhere else? Feels more like a mode "lifecycle" setup/destroy?
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const { unsubscribe } = MeasurementService.subscribe(
|
const { unsubscribe } = MeasurementService.subscribe(
|
||||||
@ -233,6 +243,7 @@ function PanelStudyBrowserTracking({
|
|||||||
SeriesInstanceUID: displaySet.SeriesInstanceUID,
|
SeriesInstanceUID: displaySet.SeriesInstanceUID,
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
|
onClickThumbnail={onClickThumbnailHandler}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user