Struct fbxcel_dom::v7400::object::texture::TextureProperties
source · pub struct TextureProperties<'a> { /* private fields */ }
Expand description
Proxy type to texture properties.
Implementations§
source§impl<'a> TextureProperties<'a>
impl<'a> TextureProperties<'a>
sourcepub fn alpha_or_default(&self) -> Result<f64, Error>
pub fn alpha_or_default(&self) -> Result<f64, Error>
Returns default alpha value.
Returns default if the value is not set.
sourcepub fn wrap_mode_u_or_default(&self) -> Result<WrapMode, Error>
pub fn wrap_mode_u_or_default(&self) -> Result<WrapMode, Error>
Returns wrap mode U.
Returns default if the value is not set.
sourcepub fn wrap_mode_v_or_default(&self) -> Result<WrapMode, Error>
pub fn wrap_mode_v_or_default(&self) -> Result<WrapMode, Error>
Returns wrap mode V.
Returns default if the value is not set.
sourcepub fn uv_swap(&self) -> Result<Option<bool>, Error>
pub fn uv_swap(&self) -> Result<Option<bool>, Error>
Returns whether the UV should be swapped or not.
Returns Some(true)
if UV should be swapped.
sourcepub fn uv_swap_or_default(&self) -> Result<bool, Error>
pub fn uv_swap_or_default(&self) -> Result<bool, Error>
Returns whether the UV should be swapped or not.
Returns true
if UV should be swapped.
Returns default if the value is not set.
sourcepub fn premultiply_alpha(&self) -> Result<Option<bool>, Error>
pub fn premultiply_alpha(&self) -> Result<Option<bool>, Error>
Returns premultiply-alpha flag.
Returns Some(true)
if the alpha is premultiplied.
sourcepub fn premultiply_alpha_or_default(&self) -> Result<bool, Error>
pub fn premultiply_alpha_or_default(&self) -> Result<bool, Error>
Returns premultiply-alpha flag.
Returns true
if the alpha is premultiplied.
Returns default if the value is not set.
sourcepub fn translation(&self) -> Result<Option<Vector3<f64>>, Error>
pub fn translation(&self) -> Result<Option<Vector3<f64>>, Error>
Returns default translation vector.
sourcepub fn translation_or_default(&self) -> Result<Vector3<f64>, Error>
pub fn translation_or_default(&self) -> Result<Vector3<f64>, Error>
Returns default translation vector.
Returns default if the value is not set.
sourcepub fn rotation_or_default(&self) -> Result<[f64; 3], Error>
pub fn rotation_or_default(&self) -> Result<[f64; 3], Error>
Returns default rotation vector.
Returns default if the value is not set.
sourcepub fn scaling_or_default(&self) -> Result<Vector3<f64>, Error>
pub fn scaling_or_default(&self) -> Result<Vector3<f64>, Error>
Returns default scaling vector.
Returns default if the value is not set.
sourcepub fn rotation_pivot(&self) -> Result<Option<Point3<f64>>, Error>
pub fn rotation_pivot(&self) -> Result<Option<Point3<f64>>, Error>
Returns rotation pivot vector.
sourcepub fn rotation_pivot_or_default(&self) -> Result<Point3<f64>, Error>
pub fn rotation_pivot_or_default(&self) -> Result<Point3<f64>, Error>
Returns rotation pivot vector.
Returns default if the value is not set.
sourcepub fn scaling_pivot(&self) -> Result<Option<Point3<f64>>, Error>
pub fn scaling_pivot(&self) -> Result<Option<Point3<f64>>, Error>
Returns rotation pivot vector.
sourcepub fn scaling_pivot_or_default(&self) -> Result<Point3<f64>, Error>
pub fn scaling_pivot_or_default(&self) -> Result<Point3<f64>, Error>
Returns scaling pivot vector.
Returns default if the value is not set.
sourcepub fn blend_mode_or_default(&self) -> Result<BlendMode, Error>
pub fn blend_mode_or_default(&self) -> Result<BlendMode, Error>
Returns texture blend mode.
Returns default if the value is not set.
sourcepub fn uv_set_or_default(&self) -> Result<&'a str, Error>
pub fn uv_set_or_default(&self) -> Result<&'a str, Error>
Returns UV set name.
Returns default if the value is not set.
Methods from Deref<Target = ObjectProperties<'a>>§
sourcepub fn get_property(&self, name: &str) -> Option<PropertyHandle<'a>>
pub fn get_property(&self, name: &str) -> Option<PropertyHandle<'a>>
Returns property handle if found.
Trait Implementations§
source§impl<'a> Clone for TextureProperties<'a>
impl<'a> Clone for TextureProperties<'a>
source§fn clone(&self) -> TextureProperties<'a>
fn clone(&self) -> TextureProperties<'a>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more