UNPKG

molstar

Version:

A comprehensive macromolecular library.

60 lines (59 loc) 2.39 kB
/** * Copyright (c) 2019-2020 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Schäfer, Marco <marco.schaefer@uni-tuebingen.de> * @author Alexander Rose <alexander.rose@weirdbyte.de> */ import { Task } from '../../mol-task'; import { ShapeProvider } from '../../mol-model/shape/provider'; import { Color } from '../../mol-util/color'; import { PlyFile } from '../../mol-io/reader/ply/schema'; import { Mesh } from '../../mol-geo/geometry/mesh/mesh'; import { ParamDefinition as PD } from '../../mol-util/param-definition'; export declare const PlyShapeParams: { coloring: PD.Mapped<PD.NamedParams<PD.Normalize<{ color: Color; }>, "uniform"> | PD.NamedParams<PD.Normalize<{ red: string; green: string; blue: string; }>, "vertex"> | PD.NamedParams<PD.Normalize<{ red: string; green: string; blue: string; }>, "material">>; grouping: PD.Mapped<PD.NamedParams<PD.Normalize<unknown>, "none"> | PD.NamedParams<PD.Normalize<{ group: string; }>, "vertex">>; doubleSided: PD.BooleanParam; flipSided: PD.BooleanParam; flatShaded: PD.BooleanParam; ignoreLight: PD.BooleanParam; xrayShaded: PD.BooleanParam; alpha: PD.Numeric; quality: PD.Select<"custom" | "auto" | "highest" | "higher" | "high" | "medium" | "low" | "lower" | "lowest">; }; export declare type PlyShapeParams = typeof PlyShapeParams; export declare function shapeFromPly(source: PlyFile, params?: {}): Task<ShapeProvider<PlyFile, Mesh, { coloring: PD.Mapped<PD.NamedParams<PD.Normalize<{ color: Color; }>, "uniform"> | PD.NamedParams<PD.Normalize<{ red: string; green: string; blue: string; }>, "vertex"> | PD.NamedParams<PD.Normalize<{ red: string; green: string; blue: string; }>, "material">>; grouping: PD.Mapped<PD.NamedParams<PD.Normalize<unknown>, "none"> | PD.NamedParams<PD.Normalize<{ group: string; }>, "vertex">>; doubleSided: PD.BooleanParam; flipSided: PD.BooleanParam; flatShaded: PD.BooleanParam; ignoreLight: PD.BooleanParam; xrayShaded: PD.BooleanParam; alpha: PD.Numeric; quality: PD.Select<"custom" | "auto" | "highest" | "higher" | "high" | "medium" | "low" | "lower" | "lowest">; }>>;