/** * Copyright (c) 2022-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 { 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 { 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 VolumeSegmentParams: { segments: PD.Converted; }; export type VolumeSegmentParams = typeof VolumeSegmentParams; export type VolumeSegmentProps = PD.Values; export declare function SegmentVisual(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; segments: PD.Converted; 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 eachSegment(loci: Loci, volume: Volume, key: number, props: VolumeSegmentProps, apply: (interval: Interval) => boolean): boolean; export declare function createVolumeSegmentMesh(ctx: VisualContext, volume: Volume, key: Volume.SegmentIndex, theme: Theme, props: VolumeSegmentProps, mesh?: Mesh): Promise; export declare const SegmentMeshParams: { 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; segments: PD.Converted; 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 SegmentMeshParams = typeof SegmentMeshParams; export declare function SegmentMeshVisual(materialId: number): VolumeVisual; export declare function SegmentTextureMeshVisual(materialId: number): VolumeVisual; export declare const SegmentParams: { visuals: PD.MultiSelect<"segment">; 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; }; }; tryUseGpu: PD.BooleanParam; segments: PD.Converted; 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; }>>; 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 SegmentParams = typeof SegmentParams; export declare function getSegmentParams(ctx: ThemeRegistryContext, volume: Volume): { visuals: PD.MultiSelect<"segment">; 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; }; }; tryUseGpu: PD.BooleanParam; segments: PD.Converted; 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; }>>; 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 SegmentRepresentation = VolumeRepresentation; export declare function SegmentRepresentation(ctx: RepresentationContext, getParams: RepresentationParamsGetter): SegmentRepresentation; export declare const SegmentRepresentationProvider: VolumeRepresentationProvider<{ visuals: PD.MultiSelect<"segment">; 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; }; }; tryUseGpu: PD.BooleanParam; segments: PD.Converted; 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; }>>; 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; }, "segment">;