Skip to main content

GlobalSettings

Struct GlobalSettings 

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

Implementations§

Source§

impl<'a> GlobalSettings<'a>

Source

pub fn new( document: &'a Document, global_settings: &'a HashMap<String, Property>, ) -> Self

Source

pub fn document(&self) -> &'a Document

Source

pub fn global_settings(&self) -> &'a HashMap<String, Property>

Source

pub fn up_axis(&self) -> i32

Source

pub fn up_axis_sign(&self) -> i32

Source

pub fn front_axis(&self) -> i32

Source

pub fn front_axis_sign(&self) -> i32

Source

pub fn coord_axis(&self) -> i32

Source

pub fn coord_axis_sign(&self) -> i32

Source

pub fn original_up_axis(&self) -> i32

Source

pub fn original_up_axis_sign(&self) -> i32

Source

pub fn unit_scale_factor(&self) -> f32

Source

pub fn original_unit_scale_factor(&self) -> f32

Source

pub fn ambient_color(&self) -> [f32; 3]

Source

pub fn default_camera(&self) -> String

Source

pub fn time_span_start(&self) -> u64

Source

pub fn time_span_stop(&self) -> u64

Source

pub fn custom_frame_rate(&self) -> f32

Source

pub fn frame_rate(&self) -> FrameRate

Trait Implementations§

Source§

impl<'a> Debug for GlobalSettings<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> From<GlobalSettings<'a>> for OwnedGlobalSettings

Source§

fn from(global_settings: GlobalSettings<'a>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<'a> Freeze for GlobalSettings<'a>

§

impl<'a> RefUnwindSafe for GlobalSettings<'a>

§

impl<'a> Send for GlobalSettings<'a>

§

impl<'a> Sync for GlobalSettings<'a>

§

impl<'a> Unpin for GlobalSettings<'a>

§

impl<'a> UnsafeUnpin for GlobalSettings<'a>

§

impl<'a> UnwindSafe for GlobalSettings<'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.