/** * Copyright (c) 2018-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 { RuntimeContext } from '../../mol-task/index.js'; import { WebGLContext } from '../../mol-gl/webgl/context.js'; import { DirectVolume } from '../../mol-geo/geometry/direct-volume/direct-volume.js'; import { VisualContext } from '../visual.js'; import { Theme, ThemeRegistryContext } from '../../mol-theme/theme.js'; import { VolumeRepresentation, VolumeRepresentationProvider } from './representation.js'; import { RepresentationContext, RepresentationParamsGetter } from '../representation.js'; import { Loci } from '../../mol-model/loci.js'; import { PickingId } from '../../mol-geo/geometry/picking.js'; import { Interval } from '../../mol-data/int/interval.js'; import { VolumeVisual } from './visual.js'; export declare function createDirectVolume2d(ctx: RuntimeContext, webgl: WebGLContext, volume: Volume, props: PD.Values, directVolume?: DirectVolume): DirectVolume; export declare function createDirectVolume3d(ctx: RuntimeContext, webgl: WebGLContext, volume: Volume, props: PD.Values, directVolume?: DirectVolume): DirectVolume; export declare function createDirectVolume(ctx: VisualContext, volume: Volume, key: number, theme: Theme, props: PD.Values, directVolume?: DirectVolume): Promise; export declare function getDirectVolumeLoci(pickingId: PickingId, volume: Volume, key: number, props: DirectVolumeProps, id: number): Volume.Cell.Loci | { kind: "empty-loci"; }; export declare function eachDirectVolume(loci: Loci, volume: Volume, key: number, props: DirectVolumeProps, apply: (interval: Interval) => boolean): boolean; export declare const DirectVolumeParams: { 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; }; }; dataType: PD.Select<"float" | "byte" | "halfFloat">; ignoreLight: PD.BooleanParam; celShaded: PD.BooleanParam; xrayShaded: PD.Select; controlPoints: PD.LineGraph; stepsPerCell: PD.Numeric; jumpLength: PD.Numeric; 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 DirectVolumeParams = typeof DirectVolumeParams; export declare function getDirectVolumeParams(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; }; }; dataType: PD.Select<"float" | "byte" | "halfFloat">; ignoreLight: PD.BooleanParam; celShaded: PD.BooleanParam; xrayShaded: PD.Select; controlPoints: PD.LineGraph; stepsPerCell: PD.Numeric; jumpLength: PD.Numeric; 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 DirectVolumeProps = PD.Values; export declare function DirectVolumeVisual(materialId: number): VolumeVisual; export declare function DirectVolumeRepresentation(ctx: RepresentationContext, getParams: RepresentationParamsGetter): VolumeRepresentation; export declare const DirectVolumeRepresentationProvider: 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; }; }; dataType: PD.Select<"float" | "byte" | "halfFloat">; ignoreLight: PD.BooleanParam; celShaded: PD.BooleanParam; xrayShaded: PD.Select; controlPoints: PD.LineGraph; stepsPerCell: PD.Numeric; jumpLength: PD.Numeric; 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; }, "direct-volume">;