/** * Copyright (c) 2020-2026 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose */ import { ParamDefinition as PD } from '../../mol-util/param-definition.js'; import { Image } from '../../mol-geo/geometry/image/image.js'; import { ThemeRegistryContext, Theme } from '../../mol-theme/theme.js'; import { Volume } from '../../mol-model/volume.js'; import { VolumeRepresentation, VolumeRepresentationProvider } from './representation.js'; import { RepresentationContext, RepresentationParamsGetter } from '../representation.js'; import { VisualContext } from '../visual.js'; import { Vec3 } from '../../mol-math/linear-algebra/3d/vec3.js'; import { VolumeVisual } from './visual.js'; export declare const SliceParams: { quality: { isEssential: boolean; type: "select"; options: readonly PD.SelectOption<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">[]; cycle?: boolean; isOptional?: boolean; defaultValue: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest"; label?: string; description?: string; legend?: import("../../mol-util/legend.js").Legend; fieldLabels?: { [name: string]: string; }; isHidden?: boolean; shortLabel?: boolean; twoColumns?: boolean; category?: string; hideIf?: (currentGroup: any) => boolean; help?: (value: any) => { description?: string; legend?: import("../../mol-util/legend.js").Legend; }; }; dimension: PD.Mapped | PD.NamedParams | PD.NamedParams | PD.NamedParams | PD.NamedParams | PD.NamedParams>; isoValue: PD.Conditioned | Readonly<{ kind: "relative"; relativeValue: number; }>, PD.Base | Readonly<{ kind: "relative"; relativeValue: number; }>>, { absolute: PD.Converted, number>; relative: PD.Converted, number>; }>; mode: PD.Select<"grid" | "frame" | "plane">; offset: PD.Numeric; axis: PD.Select<"a" | "b" | "c">; rotation: PD.Group>; plane: PD.Group>; interpolation: PD.Select<"nearest" | "catmulrom" | "mitchell" | "bspline">; alpha: PD.Numeric; material: PD.Group>; clip: PD.Group[]; }>>; emissive: PD.Numeric; density: PD.Numeric; instanceGranularity: PD.BooleanParam; lod: PD.Vec3; cellSize: PD.Numeric; batchSize: PD.Numeric; }; export type SliceParams = typeof SliceParams; export type SliceProps = PD.Values; export declare function getSliceParams(ctx: ThemeRegistryContext, volume: Volume): { quality: { isEssential: boolean; type: "select"; options: readonly PD.SelectOption<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">[]; cycle?: boolean; isOptional?: boolean; defaultValue: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest"; label?: string; description?: string; legend?: import("../../mol-util/legend.js").Legend; fieldLabels?: { [name: string]: string; }; isHidden?: boolean; shortLabel?: boolean; twoColumns?: boolean; category?: string; hideIf?: (currentGroup: any) => boolean; help?: (value: any) => { description?: string; legend?: import("../../mol-util/legend.js").Legend; }; }; dimension: PD.Mapped | PD.NamedParams | PD.NamedParams | PD.NamedParams | PD.NamedParams | PD.NamedParams>; isoValue: PD.Conditioned | Readonly<{ kind: "relative"; relativeValue: number; }>, PD.Base | Readonly<{ kind: "relative"; relativeValue: number; }>>, { absolute: PD.Converted, number>; relative: PD.Converted, number>; }>; mode: PD.Select<"grid" | "frame" | "plane">; offset: PD.Numeric; axis: PD.Select<"a" | "b" | "c">; rotation: PD.Group>; plane: PD.Group>; interpolation: PD.Select<"nearest" | "catmulrom" | "mitchell" | "bspline">; alpha: PD.Numeric; material: PD.Group>; clip: PD.Group[]; }>>; emissive: PD.Numeric; density: PD.Numeric; instanceGranularity: PD.BooleanParam; lod: PD.Vec3; cellSize: PD.Numeric; batchSize: PD.Numeric; }; export declare function createImage(ctx: VisualContext, volume: Volume, key: number, theme: Theme, props: SliceProps, image?: Image): Promise; export declare function SliceVisual(materialId: number, volume: Volume, key: number): VolumeVisual; export declare function SliceRepresentation(ctx: RepresentationContext, getParams: RepresentationParamsGetter): VolumeRepresentation; export declare const SliceRepresentationProvider: VolumeRepresentationProvider<{ quality: { isEssential: boolean; type: "select"; options: readonly PD.SelectOption<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">[]; cycle?: boolean; isOptional?: boolean; defaultValue: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest"; label?: string; description?: string; legend?: import("../../mol-util/legend.js").Legend; fieldLabels?: { [name: string]: string; }; isHidden?: boolean; shortLabel?: boolean; twoColumns?: boolean; category?: string; hideIf?: (currentGroup: any) => boolean; help?: (value: any) => { description?: string; legend?: import("../../mol-util/legend.js").Legend; }; }; dimension: PD.Mapped | PD.NamedParams | PD.NamedParams | PD.NamedParams | PD.NamedParams | PD.NamedParams>; isoValue: PD.Conditioned | Readonly<{ kind: "relative"; relativeValue: number; }>, PD.Base | Readonly<{ kind: "relative"; relativeValue: number; }>>, { absolute: PD.Converted, number>; relative: PD.Converted, number>; }>; mode: PD.Select<"grid" | "frame" | "plane">; offset: PD.Numeric; axis: PD.Select<"a" | "b" | "c">; rotation: PD.Group>; plane: PD.Group>; interpolation: PD.Select<"nearest" | "catmulrom" | "mitchell" | "bspline">; alpha: PD.Numeric; material: PD.Group>; clip: PD.Group[]; }>>; emissive: PD.Numeric; density: PD.Numeric; instanceGranularity: PD.BooleanParam; lod: PD.Vec3; cellSize: PD.Numeric; batchSize: PD.Numeric; }, "slice">;