pub struct Surface3D<'a> {
pub label: &'a str,
pub xs: &'a [f32],
pub ys: &'a [f32],
pub zs: &'a [f32],
pub scale_min: f64,
pub scale_max: f64,
pub flags: Surface3DFlags,
pub layout: Plot3DDataLayout,
}Fields§
§label: &'a str§xs: &'a [f32]§ys: &'a [f32]§zs: &'a [f32]§scale_min: f64§scale_max: f64§flags: Surface3DFlags§layout: Plot3DDataLayoutImplementations§
Source§impl<'a> Surface3D<'a>
impl<'a> Surface3D<'a>
pub fn new(label: &'a str, xs: &'a [f32], ys: &'a [f32], zs: &'a [f32]) -> Self
pub fn scale(self, min: f64, max: f64) -> Self
pub fn flags(self, flags: Surface3DFlags) -> Self
pub fn data_layout(self, layout: Plot3DDataLayout) -> Self
pub fn offset(self, offset: Plot3DDataOffset) -> Self
pub fn stride(self, stride: Plot3DDataStride) -> Self
Trait Implementations§
Source§impl Plot3DItemFlagged for Surface3D<'_>
impl Plot3DItemFlagged for Surface3D<'_>
Source§type Output = StyledPlot3D<Surface3D<'_>>
type Output = StyledPlot3D<Surface3D<'_>>
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 Plot3DItemStyled for Surface3D<'_>
impl Plot3DItemStyled for Surface3D<'_>
Source§type Output = StyledPlot3D<Surface3D<'_>>
type Output = StyledPlot3D<Surface3D<'_>>
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> Freeze for Surface3D<'a>
impl<'a> RefUnwindSafe for Surface3D<'a>
impl<'a> Send for Surface3D<'a>
impl<'a> Sync for Surface3D<'a>
impl<'a> Unpin for Surface3D<'a>
impl<'a> UnsafeUnpin for Surface3D<'a>
impl<'a> UnwindSafe for Surface3D<'a>
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