pub struct Image3DByAxes<'a, T: Into<TextureRef<'a>> + Copy> {
pub label: &'a str,
pub tex: T,
pub center: [f32; 3],
pub axis_u: [f32; 3],
pub axis_v: [f32; 3],
pub uv0: [f32; 2],
pub uv1: [f32; 2],
pub tint: [f32; 4],
pub flags: Image3DFlags,
}Fields§
§label: &'a str§tex: T§center: [f32; 3]§axis_u: [f32; 3]§axis_v: [f32; 3]§uv0: [f32; 2]§uv1: [f32; 2]§tint: [f32; 4]§flags: Image3DFlagsImplementations§
Source§impl<'a, T: Into<TextureRef<'a>> + Copy> Image3DByAxes<'a, T>
impl<'a, T: Into<TextureRef<'a>> + Copy> Image3DByAxes<'a, T>
pub fn new( label: &'a str, tex: T, center: [f32; 3], axis_u: [f32; 3], axis_v: [f32; 3], ) -> Self
pub fn uv(self, uv0: [f32; 2], uv1: [f32; 2]) -> Self
pub fn tint(self, col: [f32; 4]) -> Self
pub fn flags(self, flags: Image3DFlags) -> Self
pub fn alpha(self, a: f32) -> Self
pub fn uv_rect(self, u0: f32, v0: f32, u1: f32, v1: f32) -> Self
pub fn flip_v(self) -> Self
Trait Implementations§
Source§impl<'a, T: Into<TextureRef<'a>> + Copy> Plot3D for Image3DByAxes<'a, T>
impl<'a, T: Into<TextureRef<'a>> + Copy> Plot3D for Image3DByAxes<'a, T>
Source§impl<'a, T> Plot3DItemFlagged for Image3DByAxes<'a, T>
impl<'a, T> Plot3DItemFlagged for Image3DByAxes<'a, T>
Source§type Output = StyledPlot3D<Image3DByAxes<'a, T>>
type Output = StyledPlot3D<Image3DByAxes<'a, T>>
The output type returned by item-flag building methods.
fn map_item_flags<F>(self, f: F) -> Self::Outputwhere
F: FnOnce(&mut Item3DFlags),
Source§fn with_item_flags(self, flags: Item3DFlags) -> Self::Output
fn with_item_flags(self, flags: Item3DFlags) -> Self::Output
Set common item flags such as
NO_LEGEND / NO_FIT.Source§impl<'a, T> Plot3DItemStyled for Image3DByAxes<'a, T>
impl<'a, T> Plot3DItemStyled for Image3DByAxes<'a, T>
Source§type Output = StyledPlot3D<Image3DByAxes<'a, T>>
type Output = StyledPlot3D<Image3DByAxes<'a, T>>
The output type returned by style-building methods.
fn map_style<F>(self, f: F) -> Self::Outputwhere
F: FnOnce(&mut Plot3DItemStyle),
Source§fn with_style(self, style: Plot3DItemStyle) -> Self::Output
fn with_style(self, style: Plot3DItemStyle) -> Self::Output
Replace the entire item style override for this plot.
Source§fn with_line_weight(self, weight: f32) -> Self::Output
fn with_line_weight(self, weight: f32) -> Self::Output
Set the line width in pixels.
Source§fn with_fill_alpha(self, alpha: f32) -> Self::Output
fn with_fill_alpha(self, alpha: f32) -> Self::Output
Set the fill alpha multiplier used for fills and marker faces.
Source§fn with_marker(self, marker: Marker3D) -> Self::Output
fn with_marker(self, marker: Marker3D) -> Self::Output
Set the marker type.
Source§fn with_marker_size(self, size: f32) -> Self::Output
fn with_marker_size(self, size: f32) -> Self::Output
Set the marker size in pixels.
Auto Trait Implementations§
impl<'a, T> Freeze for Image3DByAxes<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for Image3DByAxes<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Image3DByAxes<'a, T>where
T: Send,
impl<'a, T> Sync for Image3DByAxes<'a, T>where
T: Sync,
impl<'a, T> Unpin for Image3DByAxes<'a, T>where
T: Unpin,
impl<'a, T> UnsafeUnpin for Image3DByAxes<'a, T>where
T: UnsafeUnpin,
impl<'a, T> UnwindSafe for Image3DByAxes<'a, T>where
T: UnwindSafe,
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