pub struct NodePresentation {
pub visibility: Option<Visibility>,
pub diffuse_color: Option<[f32; 3]>,
pub opacity: Option<f32>,
pub gltf_material: Option<GltfMaterial>,
}Expand description
One node’s own presentation attributes, before any inheritance.
Fields§
§visibility: Option<Visibility>§diffuse_color: Option<[f32; 3]>Linear RGB in 0..=1, as written.
opacity: Option<f32>§gltf_material: Option<GltfMaterial>Implementations§
Source§impl NodePresentation
impl NodePresentation
Sourcepub fn from_attributes<A: Attributes + ?Sized>(
attributes: &A,
) -> Result<Self, DecodeError>
pub fn from_attributes<A: Attributes + ?Sized>( attributes: &A, ) -> Result<Self, DecodeError>
Decodes the node’s usd::usdgeom::visibility,
bsi::ifc::presentation::diffuseColor and opacity, and
gltf::material. Absent or null attributes stay None.
Trait Implementations§
Source§impl Clone for NodePresentation
impl Clone for NodePresentation
Source§fn clone(&self) -> NodePresentation
fn clone(&self) -> NodePresentation
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NodePresentation
impl Debug for NodePresentation
Source§impl Default for NodePresentation
impl Default for NodePresentation
Source§fn default() -> NodePresentation
fn default() -> NodePresentation
Returns the “default value” for a type. Read more
Source§impl PartialEq for NodePresentation
impl PartialEq for NodePresentation
impl StructuralPartialEq for NodePresentation
Auto Trait Implementations§
impl Freeze for NodePresentation
impl RefUnwindSafe for NodePresentation
impl Send for NodePresentation
impl Sync for NodePresentation
impl Unpin for NodePresentation
impl UnwindSafe for NodePresentation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more