Skip to main content

Crate volren_core

Crate volren_core 

Source
Expand description

Core data types, math, camera, transfer functions, and interaction for volren-rs.

This crate has no GPU dependency and can be used in headless pipelines. See volren-gpu for the wgpu-based renderer that consumes these types.

Re-exports§

pub use camera::Camera;
pub use camera::Projection;
pub use interaction::InteractionContext;
pub use interaction::InteractionResult;
pub use interaction::InteractionStyle;
pub use interaction::Key;
pub use interaction::KeyEvent;
pub use interaction::Modifiers;
pub use interaction::MouseButton;
pub use interaction::MouseEvent;
pub use interaction::MouseEventKind;
pub use math::aabb::Aabb;
pub use picking::PickResult;
pub use picking::Ray;
pub use render_params::BlendMode;
pub use render_params::ClipPlane;
pub use render_params::Interpolation;
pub use render_params::ShadingParams;
pub use render_params::VolumeRenderParams;
pub use reslice::SlicePlane;
pub use reslice::ThickSlabMode;
pub use reslice::ThickSlabParams;
pub use transfer_function::ColorSpace;
pub use transfer_function::ColorTransferFunction;
pub use transfer_function::OpacityTransferFunction;
pub use transfer_function::TransferFunction2D;
pub use transfer_function::TransferFunction2DRegion;
pub use transfer_function::TransferFunctionLut;
pub use volume::DynVolume;
pub use volume::Scalar;
pub use volume::Volume;
pub use volume::VolumeError;
pub use volume::VolumeInfo;
pub use window_level::WindowLevel;

Modules§

camera
Camera model: perspective and orthographic projections, arcball manipulation.
interaction
Abstract input events and interaction styles.
math
Math utilities.
picking
CPU-based ray-volume intersection for picking.
render_params
Render parameters: blend modes, shading, interpolation, clip planes.
reslice
Multiplanar reslice (MPR) types: slice planes and thick-slab parameters.
transfer_function
Transfer functions: colour and opacity mappings, LUT baking.
volume
Volume module: scalar trait, typed volume, type-erased volume.
window_level
DICOM-compliant window/level (window centre/width) mapping.