pub struct SurfaceStyleRendering<'m, 's> { /* private fields */ }Expand description
Borrowed projection of IfcSurfaceStyleRendering (a subtype of
IfcSurfaceStyleShading adding rendering-oriented colour selects and the
reflectance method).
Implementations§
Source§impl<'m, 's> SurfaceStyleRendering<'m, 's>
impl<'m, 's> SurfaceStyleRendering<'m, 's>
Sourcepub fn surface_colour(&self) -> StyleResult<EntityId>
pub fn surface_colour(&self) -> StyleResult<EntityId>
The SurfaceColour attribute, inherited from IfcSurfaceStyleShading. Mandatory.
Sourcepub fn transparency(&self) -> StyleResult<Option<f64>>
pub fn transparency(&self) -> StyleResult<Option<f64>>
The Transparency attribute, when authored.
Sourcepub fn diffuse_colour(&self) -> StyleResult<Option<ColourOrFactor>>
pub fn diffuse_colour(&self) -> StyleResult<Option<ColourOrFactor>>
The DiffuseColour attribute (IfcColourOrFactor), when authored.
Sourcepub fn transmission_colour(&self) -> StyleResult<Option<ColourOrFactor>>
pub fn transmission_colour(&self) -> StyleResult<Option<ColourOrFactor>>
The TransmissionColour attribute (IfcColourOrFactor), when authored.
Sourcepub fn diffuse_transmission_colour(&self) -> StyleResult<Option<ColourOrFactor>>
pub fn diffuse_transmission_colour(&self) -> StyleResult<Option<ColourOrFactor>>
The DiffuseTransmissionColour attribute (IfcColourOrFactor), when authored.
Sourcepub fn reflection_colour(&self) -> StyleResult<Option<ColourOrFactor>>
pub fn reflection_colour(&self) -> StyleResult<Option<ColourOrFactor>>
The ReflectionColour attribute (IfcColourOrFactor), when authored.
Sourcepub fn specular_colour(&self) -> StyleResult<Option<ColourOrFactor>>
pub fn specular_colour(&self) -> StyleResult<Option<ColourOrFactor>>
The SpecularColour attribute (IfcColourOrFactor), when authored.
Sourcepub fn specular_highlight(&self) -> StyleResult<Option<&'m Value>>
pub fn specular_highlight(&self) -> StyleResult<Option<&'m Value>>
The SpecularHighlight attribute (IfcSpecularHighlightSelect:
specular exponent or roughness), when authored. Returned raw because
the select is not narrowed to one representation here.
Sourcepub fn reflectance_method(&self) -> StyleResult<&'m str>
pub fn reflectance_method(&self) -> StyleResult<&'m str>
The ReflectanceMethod attribute: the IfcReflectanceMethodEnum
token (e.g. "PHYSICAL", "BLINN", "FLAT") selecting the shading
model this rendering data feeds. Mandatory.
Trait Implementations§
Source§impl<'m, 's> Clone for SurfaceStyleRendering<'m, 's>
impl<'m, 's> Clone for SurfaceStyleRendering<'m, 's>
Source§fn clone(&self) -> SurfaceStyleRendering<'m, 's>
fn clone(&self) -> SurfaceStyleRendering<'m, 's>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more