pub struct TransferFunction2DRegion {
pub scalar_range: [f64; 2],
pub gradient_range: [f64; 2],
pub rgba: [f64; 4],
}Expand description
An axis-aligned region in (scalar, gradient) space.
Regions are composited in insertion order using source-over alpha blending.
Fields§
§scalar_range: [f64; 2]Inclusive scalar range covered by the region.
gradient_range: [f64; 2]Inclusive gradient-magnitude range covered by the region.
rgba: [f64; 4]RGBA colour produced when the sample falls inside the region.
Implementations§
Trait Implementations§
Source§impl Clone for TransferFunction2DRegion
impl Clone for TransferFunction2DRegion
Source§fn clone(&self) -> TransferFunction2DRegion
fn clone(&self) -> TransferFunction2DRegion
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransferFunction2DRegion
impl Debug for TransferFunction2DRegion
Source§impl PartialEq for TransferFunction2DRegion
impl PartialEq for TransferFunction2DRegion
impl Copy for TransferFunction2DRegion
impl StructuralPartialEq for TransferFunction2DRegion
Auto Trait Implementations§
impl Freeze for TransferFunction2DRegion
impl RefUnwindSafe for TransferFunction2DRegion
impl Send for TransferFunction2DRegion
impl Sync for TransferFunction2DRegion
impl Unpin for TransferFunction2DRegion
impl UnsafeUnpin for TransferFunction2DRegion
impl UnwindSafe for TransferFunction2DRegion
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