Skip to main content

Plot3DBuilder

Struct Plot3DBuilder 

Source
pub struct Plot3DBuilder<'ui> { /* private fields */ }
Expand description

Configures a 3D plot in the current ImGui window and table cell.

Implementations§

Source§

impl Plot3DBuilder<'_>

Source

pub fn size(self, size: [f32; 2]) -> Self

Source

pub fn flags(self, flags: Plot3DFlags) -> Self

Source

pub fn build<R>(self, draw: impl FnOnce(&Plot3DScope<'_>) -> R) -> Option<R>

Draws a plot with the default setup. Returns None if the plot is skipped.

Source

pub fn build_with_setup<R>( self, setup: impl FnOnce(&Plot3DSetup<'_>), draw: impl FnOnce(&Plot3DScope<'_>) -> R, ) -> Option<R>

Configures the axes, finishes native setup, and draws the plot. A skipped plot runs neither closure. Both closures can use other ImGui windows and must return to the host window and table cell to operate on this plot.

§Panics

Starting a second plot on this ImPlot3D context while one is open panics before BeginPlot.

Auto Trait Implementations§

§

impl<'ui> !RefUnwindSafe for Plot3DBuilder<'ui>

§

impl<'ui> !Send for Plot3DBuilder<'ui>

§

impl<'ui> !Sync for Plot3DBuilder<'ui>

§

impl<'ui> !UnwindSafe for Plot3DBuilder<'ui>

§

impl<'ui> Forget for Plot3DBuilder<'ui>

§

impl<'ui> Freeze for Plot3DBuilder<'ui>

§

impl<'ui> Move for Plot3DBuilder<'ui>

§

impl<'ui> Unpin for Plot3DBuilder<'ui>

§

impl<'ui> UnsafeUnpin for Plot3DBuilder<'ui>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.