pub struct ImplicitSelect { /* private fields */ }
Expand description
Select is used to choose between one function or another based on the output value of a third control
function. Two parameters control how the select is performed, threshold
and falloff
. Threshold
determines where the dividing line is; values on one side of threshold are taken from one source module, while values on the other side are taken from the second source. Falloff
defines the width of a soft “blend” zone that straddles threshold, helping to smooth the transition between the two functions.
Implementations§
Source§impl ImplicitSelect
impl ImplicitSelect
pub fn new() -> ImplicitSelect
pub fn set_low_source_module(&mut self, b: Rc<RefCell<dyn ImplicitModule>>)
pub fn set_low_source_value(&mut self, v: f64)
pub fn set_high_source_module(&mut self, b: Rc<RefCell<dyn ImplicitModule>>)
pub fn set_high_source_value(&mut self, v: f64)
pub fn set_control_source_module(&mut self, b: Rc<RefCell<dyn ImplicitModule>>)
pub fn set_control_source_value(&mut self, v: f64)
pub fn set_threshold_source_module( &mut self, b: Rc<RefCell<dyn ImplicitModule>>, )
pub fn set_threshold_source_value(&mut self, v: f64)
pub fn set_falloff_source_module(&mut self, b: Rc<RefCell<dyn ImplicitModule>>)
pub fn set_falloff_source_value(&mut self, v: f64)
Trait Implementations§
Source§impl ImplicitModule for ImplicitSelect
impl ImplicitModule for ImplicitSelect
fn set_seed(&mut self, _: u32)
fn get_2d(&mut self, x: f64, y: f64) -> f64
fn get_3d(&mut self, x: f64, y: f64, z: f64) -> f64
fn get_4d(&mut self, x: f64, y: f64, z: f64, w: f64) -> f64
fn get_6d(&mut self, x: f64, y: f64, z: f64, w: f64, u: f64, v: f64) -> f64
fn spacing(&self) -> f64
fn set_deriv_spacing(&mut self, s: f64)
fn get_dx_2(&mut self, x: f64, y: f64) -> f64
fn get_dy_2(&mut self, x: f64, y: f64) -> f64
fn get_dx_3(&mut self, x: f64, y: f64, z: f64) -> f64
fn get_dy_3(&mut self, x: f64, y: f64, z: f64) -> f64
fn get_dz_3(&mut self, x: f64, y: f64, z: f64) -> f64
fn get_dx_4(&mut self, x: f64, y: f64, z: f64, w: f64) -> f64
fn get_dy_4(&mut self, x: f64, y: f64, z: f64, w: f64) -> f64
fn get_dz_4(&mut self, x: f64, y: f64, z: f64, w: f64) -> f64
fn get_dw_4(&mut self, x: f64, y: f64, z: f64, w: f64) -> f64
fn get_dx_6(&mut self, x: f64, y: f64, z: f64, w: f64, u: f64, v: f64) -> f64
fn get_dy_6(&mut self, x: f64, y: f64, z: f64, w: f64, u: f64, v: f64) -> f64
fn get_dz_6(&mut self, x: f64, y: f64, z: f64, w: f64, u: f64, v: f64) -> f64
fn get_dw_6(&mut self, x: f64, y: f64, z: f64, w: f64, u: f64, v: f64) -> f64
fn get_du_6(&mut self, x: f64, y: f64, z: f64, w: f64, u: f64, v: f64) -> f64
fn get_dv_6(&mut self, x: f64, y: f64, z: f64, w: f64, u: f64, v: f64) -> f64
Auto Trait Implementations§
impl Freeze for ImplicitSelect
impl !RefUnwindSafe for ImplicitSelect
impl !Send for ImplicitSelect
impl !Sync for ImplicitSelect
impl Unpin for ImplicitSelect
impl !UnwindSafe for ImplicitSelect
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