@cornerstonejs/core
Version:
Cornerstone3D Core
23 lines (22 loc) • 911 B
TypeScript
import type vtkVolume from '@kitware/vtk.js/Rendering/Core/Volume';
import type { ICamera, IImageVolume, Point3 } from '../../types/index.js';
import getSliceRange from '../../utilities/getSliceRange.js';
export interface PlanarVolumeSliceNavigationState {
currentSliceIndex: number;
sliceRange: ReturnType<typeof getSliceRange>;
spacingInNormalDirection: number;
}
export declare function getPlanarVolumeSliceNavigationState(args: {
actor: vtkVolume;
camera: Pick<ICamera, 'focalPoint' | 'position' | 'viewPlaneNormal'>;
imageVolume: IImageVolume;
}): PlanarVolumeSliceNavigationState;
export declare function getPlanarVolumeSlicePoint(args: {
camera: Pick<ICamera, 'focalPoint' | 'position' | 'viewPlaneNormal'>;
delta: number;
sliceRange: ReturnType<typeof getSliceRange>;
spacingInNormalDirection: number;
}): {
newFocalPoint: Point3;
newPosition: Point3;
};