Skip to main content

View3D

Struct View3D 

Source
pub struct View3D {
    pub rotation_x_degrees: Option<i8>,
    pub height_percent: Option<i32>,
    pub rotation_y_degrees: Option<u16>,
    pub depth_percent: Option<i32>,
    pub right_angle_axes: Option<bool>,
    pub perspective: Option<u8>,
}
Expand description

The chart’s 3D view settings (<c:view3D>, CT_View3D) — camera rotation/perspective for any 3D chart type. Every field is genuinely optional at the schema level (minOccurs="0" on each), so there is no LineChart::grouping-style round-tripping risk here: an absent element simply isn’t written, never falling back to a default value the reader could mistake for an explicit Some.

Fields§

§rotation_x_degrees: Option<i8>

<c:rotX val=".."/>ST_RotX, -90.=90 degrees, schema default 0.

§height_percent: Option<i32>

<c:hPercent val="..%"/>ST_HPercent, 5.=500, schema default 100.

§rotation_y_degrees: Option<u16>

<c:rotY val=".."/>ST_RotY, 0.=360 degrees, schema default 0.

§depth_percent: Option<i32>

<c:depthPercent val="..%"/>ST_DepthPercent, 20.=2000, schema default 100.

§right_angle_axes: Option<bool>

<c:rAngAx val=".."/> — whether axes are drawn at right angles rather than in perspective.

§perspective: Option<u8>

<c:perspective val=".."/>ST_Perspective, 0.=240, schema default 30.

Implementations§

Source§

impl View3D

Source

pub fn new() -> View3D

Source

pub fn with_rotation_x_degrees(self, degrees: i8) -> View3D

Source

pub fn with_height_percent(self, percent: i32) -> View3D

Source

pub fn with_rotation_y_degrees(self, degrees: u16) -> View3D

Source

pub fn with_depth_percent(self, percent: i32) -> View3D

Source

pub fn with_right_angle_axes(self, right_angle: bool) -> View3D

Source

pub fn with_perspective(self, perspective: u8) -> View3D

Trait Implementations§

Source§

impl Clone for View3D

Source§

fn clone(&self) -> View3D

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for View3D

Source§

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

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

impl Default for View3D

Source§

fn default() -> View3D

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

impl PartialEq for View3D

Source§

fn eq(&self, other: &View3D) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for View3D

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.