/** * Copyright (c) 2026 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Ludovic Autin */ import { Task } from '../../mol-task/index.js'; import { ShapeProvider } from '../../mol-model/shape/provider.js'; import { Color } from '../../mol-util/color/index.js'; import { VtpFile } from '../../mol-io/reader/vtp/schema.js'; import { Mesh } from '../../mol-geo/geometry/mesh/mesh.js'; import { ParamDefinition as PD } from '../../mol-util/param-definition.js'; import { Mat4 } from '../../mol-math/linear-algebra/3d/mat4.js'; export interface VtpData { source: VtpFile; transforms?: Mat4[]; } export declare function createVtpShapeParams(vtpFile?: VtpFile, getStats?: () => string): { doubleSided: { defaultValue: boolean; type: "boolean"; isOptional?: boolean; label?: string; description?: string; legend?: import("../../mol-util/legend.js").Legend; fieldLabels?: { [name: string]: string; }; isHidden?: boolean; shortLabel?: boolean; twoColumns?: boolean; isEssential?: boolean; category?: string; hideIf?: (currentGroup: any) => boolean; help?: (value: any) => { description?: string; legend?: import("../../mol-util/legend.js").Legend; }; }; interior: { defaultValue: { colorStrength: number; color: Color; substance: PD.Normalize<{ metalness: number; roughness: number; bumpiness: number; }>; substanceStrength: number; }; type: "group"; params: PD.Params; presets?: readonly PD.SelectOption; substanceStrength: number; }>>[] | undefined; isExpanded?: boolean; isFlat?: boolean; pivot?: ("color" | "substance" | "colorStrength" | "substanceStrength") | undefined; isOptional?: boolean; label?: string; description?: string; legend?: import("../../mol-util/legend.js").Legend; fieldLabels?: { [name: string]: string; }; isHidden?: boolean; shortLabel?: boolean; twoColumns?: boolean; isEssential?: boolean; category?: string; hideIf?: (currentGroup: any) => boolean; help?: (value: any) => { description?: string; legend?: import("../../mol-util/legend.js").Legend; }; }; colorTheme: PD.Mapped | PD.NamedParams, "auto">; }>, "attribute"> | PD.NamedParams, "uniform">>; scale: PD.Numeric; flipSided: PD.BooleanParam; flatShaded: PD.BooleanParam; ignoreLight: PD.BooleanParam; celShaded: PD.BooleanParam; xrayShaded: PD.Select; transparentBackfaces: PD.Select<"off" | "on" | "opaque">; solidInterior: PD.BooleanParam; bumpFrequency: PD.Numeric; bumpAmplitude: PD.Numeric; animation: PD.Group>; alpha: PD.Numeric; quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">; material: PD.Group>; clip: PD.Group[]; }>>; emissive: PD.Numeric; density: PD.Numeric; instanceGranularity: PD.Select; renderMerged: PD.Select; lod: PD.Vec3; cellSize: PD.Numeric; batchSize: PD.Numeric; }; export declare const VtpShapeParams: { doubleSided: { defaultValue: boolean; type: "boolean"; isOptional?: boolean; label?: string; description?: string; legend?: import("../../mol-util/legend.js").Legend; fieldLabels?: { [name: string]: string; }; isHidden?: boolean; shortLabel?: boolean; twoColumns?: boolean; isEssential?: boolean; category?: string; hideIf?: (currentGroup: any) => boolean; help?: (value: any) => { description?: string; legend?: import("../../mol-util/legend.js").Legend; }; }; interior: { defaultValue: { colorStrength: number; color: Color; substance: PD.Normalize<{ metalness: number; roughness: number; bumpiness: number; }>; substanceStrength: number; }; type: "group"; params: PD.Params; presets?: readonly PD.SelectOption; substanceStrength: number; }>>[] | undefined; isExpanded?: boolean; isFlat?: boolean; pivot?: ("color" | "substance" | "colorStrength" | "substanceStrength") | undefined; isOptional?: boolean; label?: string; description?: string; legend?: import("../../mol-util/legend.js").Legend; fieldLabels?: { [name: string]: string; }; isHidden?: boolean; shortLabel?: boolean; twoColumns?: boolean; isEssential?: boolean; category?: string; hideIf?: (currentGroup: any) => boolean; help?: (value: any) => { description?: string; legend?: import("../../mol-util/legend.js").Legend; }; }; colorTheme: PD.Mapped | PD.NamedParams, "auto">; }>, "attribute"> | PD.NamedParams, "uniform">>; scale: PD.Numeric; flipSided: PD.BooleanParam; flatShaded: PD.BooleanParam; ignoreLight: PD.BooleanParam; celShaded: PD.BooleanParam; xrayShaded: PD.Select; transparentBackfaces: PD.Select<"off" | "on" | "opaque">; solidInterior: PD.BooleanParam; bumpFrequency: PD.Numeric; bumpAmplitude: PD.Numeric; animation: PD.Group>; alpha: PD.Numeric; quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">; material: PD.Group>; clip: PD.Group[]; }>>; emissive: PD.Numeric; density: PD.Numeric; instanceGranularity: PD.Select; renderMerged: PD.Select; lod: PD.Vec3; cellSize: PD.Numeric; batchSize: PD.Numeric; }; export type VtpShapeParams = typeof VtpShapeParams; export declare function shapeFromVtp(source: VtpFile, params?: { transforms?: Mat4[]; }): Task boolean; help?: (value: any) => { description?: string; legend?: import("../../mol-util/legend.js").Legend; }; }; interior: { defaultValue: { colorStrength: number; color: Color; substance: PD.Normalize<{ metalness: number; roughness: number; bumpiness: number; }>; substanceStrength: number; }; type: "group"; params: PD.Params; presets?: readonly PD.SelectOption; substanceStrength: number; }>>[] | undefined; isExpanded?: boolean; isFlat?: boolean; pivot?: ("color" | "substance" | "colorStrength" | "substanceStrength") | undefined; isOptional?: boolean; label?: string; description?: string; legend?: import("../../mol-util/legend.js").Legend; fieldLabels?: { [name: string]: string; }; isHidden?: boolean; shortLabel?: boolean; twoColumns?: boolean; isEssential?: boolean; category?: string; hideIf?: (currentGroup: any) => boolean; help?: (value: any) => { description?: string; legend?: import("../../mol-util/legend.js").Legend; }; }; colorTheme: PD.Mapped | PD.NamedParams, "auto">; }>, "attribute"> | PD.NamedParams, "uniform">>; scale: PD.Numeric; flipSided: PD.BooleanParam; flatShaded: PD.BooleanParam; ignoreLight: PD.BooleanParam; celShaded: PD.BooleanParam; xrayShaded: PD.Select; transparentBackfaces: PD.Select<"off" | "on" | "opaque">; solidInterior: PD.BooleanParam; bumpFrequency: PD.Numeric; bumpAmplitude: PD.Numeric; animation: PD.Group>; alpha: PD.Numeric; quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">; material: PD.Group>; clip: PD.Group[]; }>>; emissive: PD.Numeric; density: PD.Numeric; instanceGranularity: PD.Select; renderMerged: PD.Select; lod: PD.Vec3; cellSize: PD.Numeric; batchSize: PD.Numeric; }>>;