import React, { useState } from 'react'; import { Button, PanelSection, ButtonGroup, IconButton, InputNumber } from '@ohif/ui'; import { Icons, Tooltip, TooltipTrigger, TooltipContent, Numeric } from '@ohif/ui-next'; import { Enums } from '@cornerstonejs/core'; const controlClassNames = { sizeClassName: 'w-[58px] h-[28px]', arrowsDirection: 'horizontal', labelPosition: 'bottom', }; const Header = ({ title, tooltip }) => (
{tooltip}
{title}
); const DynamicVolumeControls = ({ isPlaying, onPlayPauseChange, // fps fps, onFpsChange, minFps, maxFps, // Frames currentDimensionGroupNumber, onDimensionGroupChange, numDimensionGroups, onGenerate, onDoubleRangeChange, rangeValues, onDynamicClick, }) => { const [computedView, setComputedView] = useState(false); const [computeViewMode, setComputeViewMode] = useState(Enums.DynamicOperatorType.SUM); return (
Operation Buttons (SUM, AVERAGE, SUBTRACT): Select the mathematical operation to be applied to the data set.
Range Slider: Choose the numeric range of dimension groups within which the operation will be performed.
Generate Button: Execute the chosen operation on the specified range of data.
} />
); }; export default DynamicVolumeControls; function DimensionGroupControls({ isPlaying, onPlayPauseChange, fps, minFps, maxFps, onFpsChange, numDimensionGroups, onDimensionGroupChange, currentDimensionGroupNumber, computedView, }) { const getPlayPauseIconName = () => (isPlaying ? 'icon-pause' : 'icon-play'); return (
Play/Pause Button: Begin or pause the animation of the 4D visualization.
Dimension Group Selector: Navigate through individual dimension groups of the 4D data.{' '}
FPS (Frames Per Second) Selector: Adjust the playback speed of the animation.
} />
onPlayPauseChange(!isPlaying)} >
); }