Struct Scene

Source
pub struct Scene<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> Scene<'a>

Source

pub fn bgcolor(&mut self, bgcolor: &'a str) -> &mut Self

default: rgba(0,0,0,0)

Source

pub fn camera(&mut self) -> &mut Camera

Source

pub fn domain(&mut self) -> &mut Domain<'a>

Source

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

Source

pub fn aspectratio(&mut self) -> &mut Aspectratio

Sets this scene’s axis aspectratio.

Source

pub fn xaxis(&mut self) -> &mut Xaxis<'a>

Source

pub fn yaxis(&mut self) -> &mut Yaxis<'a>

Source

pub fn zaxis(&mut self) -> &mut Zaxis<'a>

Source

pub fn dragmode(&mut self, dragmode: Dragmode) -> &mut Self

Determines the mode of drag interactions for this scene.

Source

pub fn hovermode(&mut self, hovermode: Hovermode) -> &mut Self

Determines the mode of hover interactions for this scene.

default: closest

Source

pub fn uirevision(&mut self, uirevision: Any) -> &mut Self

Controls persistence of user-driven changes in camera attributes. Defaults to layout.uirevision.

Trait Implementations§

Source§

impl<'a> Default for Scene<'a>

Source§

fn default() -> Scene<'a>

Returns the “default value” for a type. Read more
Source§

impl<'a> Serialize for Scene<'a>

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

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> 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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.