Skip to main content

Plot3DUi

Struct Plot3DUi 

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

Frame access to an ImPlot3D context. Begin a plot to configure axes and submit items.

ⓘ
use dear_implot3d::Plot3DUi;
fn query_outside_plot(ui: &Plot3DUi<'_>) { ui.get_frame_size(); }

Implementations§

Source§

impl Plot3DUi<'_>

Source

pub fn show_all_demos(&self)

Show upstream ImPlot3D demos (from C++ demo).

This displays all available ImPlot3D demos in a single window. Useful for learning and testing the library.

Source

pub fn show_demo_window(&self)

Show the ImPlot3D demo. Its ImGui tools use the core font-atlas filter.

This displays the main demo window with tabs for different plot types.

Source

pub fn show_demo_window_with_flag(&self, p_open: &mut bool)

Show the main ImPlot3D demo window with a visibility flag.

Source

pub fn show_style_editor(&self)

Show the style editor with this plot context’s saved reference and color preview.

This displays a window for editing ImPlot3D style settings in real time.

Source

pub fn show_metrics_window(&self)

Show the ImPlot3D metrics/debugger window.

This displays performance metrics and debugging information.

Source

pub fn show_metrics_window_with_flag(&self, p_open: &mut bool)

Show the ImPlot3D metrics/debugger window with a visibility flag.

Source§

impl Plot3DUi<'_>

Source

pub fn with_colormap<R>( &self, cmap: impl Into<ColormapIndex>, f: impl FnOnce() -> R, ) -> R

Uses a registered colormap for f. An invalid index panics before the native push.

Source

pub fn with_colormap_name<R>( &self, name: &str, f: impl FnOnce() -> R, ) -> Option<R>

Uses a registered colormap by name for f. Returns None for an unknown name.

Source§

impl Plot3DUi<'_>

Source

pub fn colormap_color(&self, index: ColormapColorIndex) -> [f32; 4]

Return a color from this UI’s active ImPlot3D colormap.

Source§

impl Plot3DUi<'_>

Source

pub fn with_style_colors<R>( &self, colors: &[(Plot3DColorElement, [f32; 4])], f: impl FnOnce() -> R, ) -> R

Applies these colors to this context for the duration of f.

Source

pub fn with_style_vars<R>( &self, vars: &[Plot3DStyleVar], f: impl FnOnce() -> R, ) -> R

Applies the typed style variables in order and restores them when f returns or unwinds.

Source§

impl<'ui> Plot3DUi<'ui>

Source

pub fn begin_plot(&self, title: impl AsRef<str>) -> Plot3DBuilder<'ui>

Configure a plot for the current window and table cell.

Trait Implementations§

Source§

impl<'ui> Clone for Plot3DUi<'ui>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'ui> Copy for Plot3DUi<'ui>

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

impl<'ui> Forget for Plot3DUi<'ui>

§

impl<'ui> Freeze for Plot3DUi<'ui>

§

impl<'ui> Move for Plot3DUi<'ui>

§

impl<'ui> Unpin for Plot3DUi<'ui>

§

impl<'ui> UnsafeUnpin for Plot3DUi<'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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.