[][src]Struct fbxcel_dom::v7400::object::texture::TextureProperties

pub struct TextureProperties<'a> { /* fields omitted */ }

Proxy type to texture properties.

Methods

impl<'a> TextureProperties<'a>[src]

pub fn alpha(&self) -> Result<Option<f64>, Error>[src]

Returns default alpha value.

pub fn alpha_or_default(&self) -> Result<f64, Error>[src]

Returns default alpha value.

Returns default if the value is not set.

pub fn wrap_mode_u(&self) -> Result<Option<WrapMode>, Error>[src]

Returns wrap mode U.

pub fn wrap_mode_u_or_default(&self) -> Result<WrapMode, Error>[src]

Returns wrap mode U.

Returns default if the value is not set.

pub fn wrap_mode_v(&self) -> Result<Option<WrapMode>, Error>[src]

Returns wrap mode V.

pub fn wrap_mode_v_or_default(&self) -> Result<WrapMode, Error>[src]

Returns wrap mode V.

Returns default if the value is not set.

pub fn uv_swap(&self) -> Result<Option<bool>, Error>[src]

Returns whether the UV should be swapped or not.

Returns Some(true) if UV should be swapped.

pub fn uv_swap_or_default(&self) -> Result<bool, Error>[src]

Returns whether the UV should be swapped or not.

Returns true if UV should be swapped.

Returns default if the value is not set.

pub fn premultiply_alpha(&self) -> Result<Option<bool>, Error>[src]

Returns premultiply-alpha flag.

Returns Some(true) if the alpha is premultiplied.

pub fn premultiply_alpha_or_default(&self) -> Result<bool, Error>[src]

Returns premultiply-alpha flag.

Returns true if the alpha is premultiplied.

Returns default if the value is not set.

pub fn translation(&self) -> Result<Option<Vector3<f64>>, Error>[src]

Returns default translation vector.

pub fn translation_or_default(&self) -> Result<Vector3<f64>, Error>[src]

Returns default translation vector.

Returns default if the value is not set.

pub fn rotation(&self) -> Result<Option<[f64; 3]>, Error>[src]

Returns default rotation vector.

pub fn rotation_or_default(&self) -> Result<[f64; 3], Error>[src]

Returns default rotation vector.

Returns default if the value is not set.

pub fn scaling(&self) -> Result<Option<Vector3<f64>>, Error>[src]

Returns default scaling vector.

pub fn scaling_or_default(&self) -> Result<Vector3<f64>, Error>[src]

Returns default scaling vector.

Returns default if the value is not set.

pub fn rotation_pivot(&self) -> Result<Option<Point3<f64>>, Error>[src]

Returns rotation pivot vector.

pub fn rotation_pivot_or_default(&self) -> Result<Point3<f64>, Error>[src]

Returns rotation pivot vector.

Returns default if the value is not set.

pub fn scaling_pivot(&self) -> Result<Option<Point3<f64>>, Error>[src]

Returns rotation pivot vector.

pub fn scaling_pivot_or_default(&self) -> Result<Point3<f64>, Error>[src]

Returns scaling pivot vector.

Returns default if the value is not set.

pub fn blend_mode(&self) -> Result<Option<BlendMode>, Error>[src]

Returns texture blend mode.

pub fn blend_mode_or_default(&self) -> Result<BlendMode, Error>[src]

Returns texture blend mode.

Returns default if the value is not set.

pub fn uv_set(&self) -> Result<Option<&'a str>, Error>[src]

Returns UV set name.

pub fn uv_set_or_default(&self) -> Result<&'a str, Error>[src]

Returns UV set name.

Returns default if the value is not set.

Methods from Deref<Target = ObjectProperties<'a>>

pub fn get_property(&self, name: &str) -> Option<PropertyHandle<'a>>[src]

Returns property handle if found.

Trait Implementations

impl<'a> Clone for TextureProperties<'a>[src]

impl<'a> Copy for TextureProperties<'a>[src]

impl<'a> Debug for TextureProperties<'a>[src]

impl<'a> Deref for TextureProperties<'a>[src]

type Target = ObjectProperties<'a>

The resulting type after dereferencing.

Auto Trait Implementations

impl<'a> Send for TextureProperties<'a>

impl<'a> Sync for TextureProperties<'a>

impl<'a> Unpin for TextureProperties<'a>

impl<'a> UnwindSafe for TextureProperties<'a>

impl<'a> RefUnwindSafe for TextureProperties<'a>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]