2025-05-15 18:08:12 +02:00
|
|
|
import { useViewportGrid } from '@ohif/ui-next';
|
|
|
|
|
import { useViewportSegmentations } from './useViewportSegmentations';
|
2024-11-06 13:15:27 +01:00
|
|
|
|
2025-05-15 18:08:12 +02:00
|
|
|
function useActiveViewportSegmentationRepresentations() {
|
|
|
|
|
const [viewportGrid] = useViewportGrid();
|
2024-11-06 13:15:27 +01:00
|
|
|
|
2025-05-15 18:08:12 +02:00
|
|
|
const viewportId = viewportGrid?.activeViewportId;
|
2024-11-06 13:15:27 +01:00
|
|
|
|
2025-05-15 18:08:12 +02:00
|
|
|
const segmentations = useViewportSegmentations({ viewportId });
|
2024-11-06 13:15:27 +01:00
|
|
|
|
2025-05-15 18:08:12 +02:00
|
|
|
return segmentations;
|
2024-11-06 13:15:27 +01:00
|
|
|
}
|
|
|
|
|
|
2025-05-15 18:08:12 +02:00
|
|
|
export { useActiveViewportSegmentationRepresentations };
|