@cornerstonejs/core
Version:
Cornerstone3D Core
23 lines (22 loc) • 1.28 kB
TypeScript
import type { RenderBackendValue } from '../../../enums/index.js';
import type { PlanarViewState, PlanarEffectiveRenderMode, PlanarOrientation, PlanarRegisteredDataSet } from './PlanarViewportTypes.js';
export interface SelectedPlanarRenderPath {
acquisitionOrientation?: PlanarViewState['orientation'];
renderMode: PlanarEffectiveRenderMode;
volumeId: string;
}
export interface PlanarRenderPathDecisionOptions {
orientation?: PlanarOrientation;
useSliceRendering?: boolean;
renderBackend?: RenderBackendValue;
}
export declare class PlanarRenderPathDecisionService {
select(dataSet: PlanarRegisteredDataSet, options?: PlanarRenderPathDecisionOptions): SelectedPlanarRenderPath;
canRender(dataSet: PlanarRegisteredDataSet, options?: PlanarRenderPathDecisionOptions): boolean;
private selectImageRenderMode;
private selectVolumeRenderMode;
private resolveBackend;
}
export declare const defaultPlanarRenderPathDecisionService: PlanarRenderPathDecisionService;
export declare function selectPlanarRenderPath(dataSet: PlanarRegisteredDataSet, options?: PlanarRenderPathDecisionOptions): SelectedPlanarRenderPath;
export declare function getPlanarAcquisitionOrientation(imageIds: string[]): PlanarViewState['orientation'] | undefined;