pub struct PlotWindow<'window> {Show 13 fields
pub window: Arc<Window>,
pub event_loop: Option<EventLoop<()>>,
pub plot_renderer: PlotRenderer,
pub plot_overlay: PlotOverlay,
pub surface: Surface<'window>,
pub depth_texture: Texture,
pub depth_view: TextureView,
pub egui_ctx: Context,
pub egui_state: State,
pub egui_renderer: Renderer,
pub config: WindowConfig,
pub mouse_position: Vec2,
pub is_mouse_over_plot: bool,
}Expand description
Interactive plot window with full WGPU rendering
Fields§
§window: Arc<Window>§event_loop: Option<EventLoop<()>>§plot_renderer: PlotRenderer§plot_overlay: PlotOverlay§surface: Surface<'window>§depth_texture: Texture§depth_view: TextureView§egui_ctx: Context§egui_state: State§egui_renderer: Renderer§config: WindowConfig§mouse_position: Vec2§is_mouse_over_plot: boolImplementations§
Source§impl<'window> PlotWindow<'window>
impl<'window> PlotWindow<'window>
Sourcepub async fn new(config: WindowConfig) -> Result<Self, Box<dyn Error>>
pub async fn new(config: WindowConfig) -> Result<Self, Box<dyn Error>>
Create a new interactive plot window
Sourcepub fn add_test_plot(&mut self)
pub fn add_test_plot(&mut self)
Add a simple line plot to the scene for testing
Sourcepub fn set_figure(&mut self, figure: Figure)
pub fn set_figure(&mut self, figure: Figure)
Set the figure to display in this window (clears existing content)
Auto Trait Implementations§
impl<'window> !Freeze for PlotWindow<'window>
impl<'window> !RefUnwindSafe for PlotWindow<'window>
impl<'window> !Send for PlotWindow<'window>
impl<'window> !Sync for PlotWindow<'window>
impl<'window> Unpin for PlotWindow<'window>
impl<'window> !UnwindSafe for PlotWindow<'window>
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more