pub struct Scene<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Scene<'a>
impl<'a> Scene<'a>
pub fn camera(&mut self) -> &mut Camera
pub fn domain(&mut self) -> &mut Domain<'a>
Sourcepub fn aspectmode(&mut self, aspectmode: Aspectmode) -> &mut Self
pub fn aspectmode(&mut self, aspectmode: Aspectmode) -> &mut Self
If cube, this scene’s axes are drawn as a cube, regardless of the axes’ ranges. If data, this scene’s axes are drawn in proportion with the axes’ ranges. If manual, this scene’s axes are drawn in proportion with the input of aspectratio (the default behavior if aspectratio is provided). If auto, this scene’s axes are drawn using the results of data except when one axis is more than four times the size of the two others, where in that case the results of cube are used.
default: auto
Sourcepub fn aspectratio(&mut self) -> &mut Aspectratio
pub fn aspectratio(&mut self) -> &mut Aspectratio
Sets this scene’s axis aspectratio.
pub fn xaxis(&mut self) -> &mut Xaxis<'a>
pub fn yaxis(&mut self) -> &mut Yaxis<'a>
pub fn zaxis(&mut self) -> &mut Zaxis<'a>
Sourcepub fn dragmode(&mut self, dragmode: Dragmode) -> &mut Self
pub fn dragmode(&mut self, dragmode: Dragmode) -> &mut Self
Determines the mode of drag interactions for this scene.
Sourcepub fn hovermode(&mut self, hovermode: Hovermode) -> &mut Self
pub fn hovermode(&mut self, hovermode: Hovermode) -> &mut Self
Determines the mode of hover interactions for this scene.
default: closest
Sourcepub fn uirevision(&mut self, uirevision: Any) -> &mut Self
pub fn uirevision(&mut self, uirevision: Any) -> &mut Self
Controls persistence of user-driven changes in camera attributes. Defaults to layout.uirevision
.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Scene<'a>
impl<'a> RefUnwindSafe for Scene<'a>
impl<'a> Send for Scene<'a>
impl<'a> Sync for Scene<'a>
impl<'a> Unpin for Scene<'a>
impl<'a> UnwindSafe for Scene<'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