/** * Copyright (c) 2026 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose */ import { Volume } from '../../../../mol-model/volume.js'; import { Theme } from '../../../../mol-theme/theme.js'; import { VisualContext } from '../../../visual.js'; import { Mesh } from '../../../../mol-geo/geometry/mesh/mesh.js'; import { Spheres } from '../../../../mol-geo/geometry/spheres/spheres.js'; import { WebGLContext } from '../../../../mol-gl/webgl/context.js'; import { VolumeIsosurfaceProps } from '../../../volume/isosurface.js'; import { VolumeSphereProps } from '../../../volume/dot.js'; /** The subset of representation props needed to build a volume target geometry. */ export type VolumeTargetProps = VolumeIsosurfaceProps & Pick & { type: string; tryUseImpostor: boolean; }; export declare function volumeTargetUseImpostor(props: VolumeTargetProps, webgl?: WebGLContext): boolean; /** * The geometry for a volume target is either an isosurface mesh of the volume, built on the CPU * (the GPU/texture-mesh variant cannot be instanced), or a dot per above-threshold cell. It is * instanced at each particle position. */ export declare function createVolumeTargetGeometry(ctx: VisualContext, volume: Volume, theme: Theme, props: VolumeTargetProps, webgl?: WebGLContext, existing?: Spheres | Mesh): Spheres | Mesh | Promise; /** Whether the volume geometry must be rebuilt because relevant props changed. */ export declare function volumeTargetGeometryPropsChanged(volume: Volume, oldProps: VolumeTargetProps, newProps: VolumeTargetProps, webgl?: WebGLContext): boolean; /** Whether switching the geometry kind requires recreating the render object. */ export declare function volumeTargetMustRecreate(oldProps: VolumeTargetProps, newProps: VolumeTargetProps): boolean; /** Whether the impostor dot size factor changed (impostor spheres carry size as a uniform). */ export declare function volumeTargetSizeFactorChanged(oldProps: VolumeTargetProps, newProps: VolumeTargetProps, webgl?: WebGLContext): boolean;