pub struct SceneWindow { /* private fields */ }Expand description
A composed 3D scalar-field window: a viewpoint toolbar above a
ScalarFieldView, with a toggleable ScalarFieldProperties side panel.
Construct with SceneWindow::new, push data through
view_mut, then call show
each frame.
Implementations§
Source§impl SceneWindow
impl SceneWindow
Sourcepub fn new(render_state: &RenderState, id: Scene3dId) -> Self
pub fn new(render_state: &RenderState, id: Scene3dId) -> Self
Create a scene window bound to id, installing the 3D GPU resources into
render_state if needed. Starts empty with the properties panel shown.
Sourcepub fn view(&self) -> &ScalarFieldView
pub fn view(&self) -> &ScalarFieldView
Read-only access to the central scalar-field view.
Sourcepub fn view_mut(&mut self) -> &mut ScalarFieldView
pub fn view_mut(&mut self) -> &mut ScalarFieldView
Mutable access to the central scalar-field view (e.g. to set its data or iso-surfaces).
Sourcepub fn properties_mut(&mut self) -> &mut ScalarFieldProperties
pub fn properties_mut(&mut self) -> &mut ScalarFieldProperties
Mutable access to the properties panel state.
Sourcepub fn position_info(&self) -> &ScenePositionInfo
pub fn position_info(&self) -> &ScenePositionInfo
Read-only access to the cursor position/value readout (silx
getPositionInfoWidget).
Sourcepub fn properties_visible(&self) -> bool
pub fn properties_visible(&self) -> bool
Whether the properties side panel is shown.
Sourcepub fn set_properties_visible(&mut self, visible: bool)
pub fn set_properties_visible(&mut self, visible: bool)
Show or hide the properties side panel.
Auto Trait Implementations§
impl Freeze for SceneWindow
impl RefUnwindSafe for SceneWindow
impl Send for SceneWindow
impl Sync for SceneWindow
impl Unpin for SceneWindow
impl UnsafeUnpin for SceneWindow
impl UnwindSafe for SceneWindow
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.