/** * Copyright (c) 2018-2026 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author David Sehnal * @author Alexander Rose */ import { ParamDefinition as PD } from '../../mol-util/param-definition.js'; import { Volume } from '../../mol-model/volume.js'; import { VisualContext } from '../visual.js'; import { Theme, ThemeRegistryContext } from '../../mol-theme/theme.js'; import { Mesh } from '../../mol-geo/geometry/mesh/mesh.js'; import { VolumeRepresentation, VolumeRepresentationProvider } from './representation.js'; import { Lines } from '../../mol-geo/geometry/lines/lines.js'; import { RepresentationContext, RepresentationParamsGetter } from '../representation.js'; import { Loci } from '../../mol-model/loci.js'; import { WebGLContext } from '../../mol-gl/webgl/context.js'; import { Interval } from '../../mol-data/int/interval.js'; import { VolumeVisual } from './visual.js'; export declare const VolumeIsosurfaceParams: { isoValue: PD.Conditioned | Readonly<{ kind: "relative"; relativeValue: number; }>, PD.Base | Readonly<{ kind: "relative"; relativeValue: number; }>>, { absolute: PD.Converted, number>; relative: PD.Converted, number>; }>; wrap: PD.Select<"auto" | "off" | "on">; floodfill: PD.Select<"inside" | "outside" | "off">; }; export type VolumeIsosurfaceParams = typeof VolumeIsosurfaceParams; export type VolumeIsosurfaceProps = PD.Values; export declare const VolumeIsosurfaceTextureParams: { tryUseGpu: PD.BooleanParam; gpuDataType: PD.Select<"float" | "byte" | "halfFloat">; isoValue: PD.Conditioned | Readonly<{ kind: "relative"; relativeValue: number; }>, PD.Base | Readonly<{ kind: "relative"; relativeValue: number; }>>, { absolute: PD.Converted, number>; relative: PD.Converted, number>; }>; wrap: PD.Select<"auto" | "off" | "on">; floodfill: PD.Select<"inside" | "outside" | "off">; }; export type VolumeIsosurfaceTextureParams = typeof VolumeIsosurfaceTextureParams; export type VolumeIsosurfaceTextureProps = PD.Values; export declare function IsosurfaceVisual(materialId: number, volume: Volume, key: number, props: PD.Values, webgl?: WebGLContext): VolumeVisual<{ 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; }; }; tryUseGpu: PD.BooleanParam; gpuDataType: PD.Select<"float" | "byte" | "halfFloat">; isoValue: PD.Conditioned | Readonly<{ kind: "relative"; relativeValue: number; }>, PD.Base | Readonly<{ kind: "relative"; relativeValue: number; }>>, { absolute: PD.Converted, number>; relative: PD.Converted, number>; }>; wrap: PD.Select<"auto" | "off" | "on">; floodfill: PD.Select<"inside" | "outside" | "off">; doubleSided: PD.BooleanParam; flipSided: PD.BooleanParam; flatShaded: PD.BooleanParam; ignoreLight: PD.BooleanParam; celShaded: PD.BooleanParam; xrayShaded: PD.Select; transparentBackfaces: PD.Select<"off" | "on" | "opaque">; bumpFrequency: PD.Numeric; bumpAmplitude: PD.Numeric; interior: PD.Group; substanceStrength: number; }>>; 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 eachIsosurface(loci: Loci, volume: Volume, key: number, props: VolumeIsosurfaceProps, apply: (interval: Interval) => boolean): boolean; export declare function createVolumeIsosurfaceMesh(ctx: VisualContext, volume: Volume, key: number, theme: Theme, props: VolumeIsosurfaceProps, mesh?: Mesh): Promise; export declare const IsosurfaceMeshParams: { 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; }; }; tryUseGpu: PD.BooleanParam; gpuDataType: PD.Select<"float" | "byte" | "halfFloat">; isoValue: PD.Conditioned | Readonly<{ kind: "relative"; relativeValue: number; }>, PD.Base | Readonly<{ kind: "relative"; relativeValue: number; }>>, { absolute: PD.Converted, number>; relative: PD.Converted, number>; }>; wrap: PD.Select<"auto" | "off" | "on">; floodfill: PD.Select<"inside" | "outside" | "off">; doubleSided: PD.BooleanParam; flipSided: PD.BooleanParam; flatShaded: PD.BooleanParam; ignoreLight: PD.BooleanParam; celShaded: PD.BooleanParam; xrayShaded: PD.Select; transparentBackfaces: PD.Select<"off" | "on" | "opaque">; bumpFrequency: PD.Numeric; bumpAmplitude: PD.Numeric; interior: PD.Group; substanceStrength: number; }>>; 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 IsosurfaceMeshParams = typeof IsosurfaceMeshParams; export declare function IsosurfaceMeshVisual(materialId: number): VolumeVisual; export declare function IsosurfaceTextureMeshVisual(materialId: number): VolumeVisual; export declare function createVolumeIsosurfaceWireframe(ctx: VisualContext, volume: Volume, key: number, theme: Theme, props: VolumeIsosurfaceProps, lines?: Lines): Promise; export declare const IsosurfaceWireframeParams: { 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; }; }; sizeFactor: PD.Numeric; isoValue: PD.Conditioned | Readonly<{ kind: "relative"; relativeValue: number; }>, PD.Base | Readonly<{ kind: "relative"; relativeValue: number; }>>, { absolute: PD.Converted, number>; relative: PD.Converted, number>; }>; wrap: PD.Select<"auto" | "off" | "on">; floodfill: PD.Select<"inside" | "outside" | "off">; lineSizeAttenuation: PD.BooleanParam; 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 IsosurfaceWireframeParams = typeof IsosurfaceWireframeParams; export declare function IsosurfaceWireframeVisual(materialId: number): VolumeVisual; export declare const IsosurfaceParams: { visuals: PD.MultiSelect<"solid" | "wireframe">; bumpFrequency: PD.Numeric; 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; }; }; sizeFactor: PD.Numeric; isoValue: PD.Conditioned | Readonly<{ kind: "relative"; relativeValue: number; }>, PD.Base | Readonly<{ kind: "relative"; relativeValue: number; }>>, { absolute: PD.Converted, number>; relative: PD.Converted, number>; }>; wrap: PD.Select<"auto" | "off" | "on">; floodfill: PD.Select<"inside" | "outside" | "off">; lineSizeAttenuation: PD.BooleanParam; 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; tryUseGpu: PD.BooleanParam; gpuDataType: PD.Select<"float" | "byte" | "halfFloat">; doubleSided: PD.BooleanParam; flipSided: PD.BooleanParam; flatShaded: PD.BooleanParam; ignoreLight: PD.BooleanParam; celShaded: PD.BooleanParam; xrayShaded: PD.Select; transparentBackfaces: PD.Select<"off" | "on" | "opaque">; bumpAmplitude: PD.Numeric; interior: PD.Group; substanceStrength: number; }>>; }; export type IsosurfaceParams = typeof IsosurfaceParams; export declare function getIsosurfaceParams(ctx: ThemeRegistryContext, volume: Volume): { visuals: PD.MultiSelect<"solid" | "wireframe">; bumpFrequency: PD.Numeric; 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; }; }; sizeFactor: PD.Numeric; isoValue: PD.Conditioned | Readonly<{ kind: "relative"; relativeValue: number; }>, PD.Base | Readonly<{ kind: "relative"; relativeValue: number; }>>, { absolute: PD.Converted, number>; relative: PD.Converted, number>; }>; wrap: PD.Select<"auto" | "off" | "on">; floodfill: PD.Select<"inside" | "outside" | "off">; lineSizeAttenuation: PD.BooleanParam; 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; tryUseGpu: PD.BooleanParam; gpuDataType: PD.Select<"float" | "byte" | "halfFloat">; doubleSided: PD.BooleanParam; flipSided: PD.BooleanParam; flatShaded: PD.BooleanParam; ignoreLight: PD.BooleanParam; celShaded: PD.BooleanParam; xrayShaded: PD.Select; transparentBackfaces: PD.Select<"off" | "on" | "opaque">; bumpAmplitude: PD.Numeric; interior: PD.Group; substanceStrength: number; }>>; }; export type IsosurfaceRepresentation = VolumeRepresentation; export declare function IsosurfaceRepresentation(ctx: RepresentationContext, getParams: RepresentationParamsGetter): IsosurfaceRepresentation; export declare const IsosurfaceRepresentationProvider: VolumeRepresentationProvider<{ visuals: PD.MultiSelect<"solid" | "wireframe">; bumpFrequency: PD.Numeric; 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; }; }; sizeFactor: PD.Numeric; isoValue: PD.Conditioned | Readonly<{ kind: "relative"; relativeValue: number; }>, PD.Base | Readonly<{ kind: "relative"; relativeValue: number; }>>, { absolute: PD.Converted, number>; relative: PD.Converted, number>; }>; wrap: PD.Select<"auto" | "off" | "on">; floodfill: PD.Select<"inside" | "outside" | "off">; lineSizeAttenuation: PD.BooleanParam; 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; tryUseGpu: PD.BooleanParam; gpuDataType: PD.Select<"float" | "byte" | "halfFloat">; doubleSided: PD.BooleanParam; flipSided: PD.BooleanParam; flatShaded: PD.BooleanParam; ignoreLight: PD.BooleanParam; celShaded: PD.BooleanParam; xrayShaded: PD.Select; transparentBackfaces: PD.Select<"off" | "on" | "opaque">; bumpAmplitude: PD.Numeric; interior: PD.Group; substanceStrength: number; }>>; }, "isosurface">;