pub struct LayeredVisualizationOptions { /* private fields */ }Expand description
Validated presentation settings for a scalar field with a particle overlay.
This is a rendering composition contract, not a simulation data model. The host remains responsible for producing both the scalar and particle state.
Implementations§
Source§impl LayeredVisualizationOptions
impl LayeredVisualizationOptions
Sourcepub fn new(
(minimum, maximum): (f32, f32),
target_background: Color,
surface_background: Color,
) -> Result<Self, LayeredVisualizationError>
pub fn new( (minimum, maximum): (f32, f32), target_background: Color, surface_background: Color, ) -> Result<Self, LayeredVisualizationError>
Creates settings with linear field sampling and opaque replacement.
Sourcepub fn with_sampling(self, sampling: ScalarFieldSampling) -> Self
pub fn with_sampling(self, sampling: ScalarFieldSampling) -> Self
Selects nearest or manual-linear scalar sampling.
Sourcepub fn with_composition(
self,
blend_mode: BlendMode,
opacity: f32,
) -> Result<Self, LayeredVisualizationError>
pub fn with_composition( self, blend_mode: BlendMode, opacity: f32, ) -> Result<Self, LayeredVisualizationError>
Selects final target composition and validates its opacity.
Sourcepub fn value_range(self) -> (f32, f32)
pub fn value_range(self) -> (f32, f32)
Returns the finite scalar range represented by the heatmap.
Sourcepub fn sampling(self) -> ScalarFieldSampling
pub fn sampling(self) -> ScalarFieldSampling
Returns the selected scalar sampling mode.
Sourcepub fn blend_mode(self) -> BlendMode
pub fn blend_mode(self) -> BlendMode
Returns final target-to-surface blending.
Trait Implementations§
Source§impl Clone for LayeredVisualizationOptions
impl Clone for LayeredVisualizationOptions
Source§fn clone(&self) -> LayeredVisualizationOptions
fn clone(&self) -> LayeredVisualizationOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LayeredVisualizationOptions
Source§impl Debug for LayeredVisualizationOptions
impl Debug for LayeredVisualizationOptions
impl StructuralPartialEq for LayeredVisualizationOptions
Auto Trait Implementations§
impl Freeze for LayeredVisualizationOptions
impl RefUnwindSafe for LayeredVisualizationOptions
impl Send for LayeredVisualizationOptions
impl Sync for LayeredVisualizationOptions
impl Unpin for LayeredVisualizationOptions
impl UnsafeUnpin for LayeredVisualizationOptions
impl UnwindSafe for LayeredVisualizationOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more