pub struct LightSourceSpot<'m, 's> { /* private fields */ }Expand description
Borrowed projection of IfcLightSourceSpot: a positional light narrowed to
a cone and aimed along an orientation.
Implementations§
Source§impl<'m, 's> LightSourceSpot<'m, 's>
impl<'m, 's> LightSourceSpot<'m, 's>
Sourcepub fn positional(&self) -> LightSourcePositional<'m, 's>
pub fn positional(&self) -> LightSourcePositional<'m, 's>
The inherited IfcLightSourcePositional position and attenuation.
Sourcepub fn light_source(&self) -> LightSource<'m, 's>
pub fn light_source(&self) -> LightSource<'m, 's>
The inherited IfcLightSource colour and intensity attributes.
Sourcepub fn orientation(&self) -> StyleResult<EntityId>
pub fn orientation(&self) -> StyleResult<EntityId>
The Orientation attribute: a mandatory IfcDirection reference
giving the cone’s axis.
Sourcepub fn concentration_exponent(&self) -> StyleResult<Option<f64>>
pub fn concentration_exponent(&self) -> StyleResult<Option<f64>>
The ConcentrationExponent attribute, when authored.
OPTIONAL in all three bundled schemas. It is not defaulted to 1.0
here; an absent exponent means the file expressed no falloff
preference, which is different from authoring linear falloff.
Sourcepub fn spread_angle(&self) -> StyleResult<f64>
pub fn spread_angle(&self) -> StyleResult<f64>
The SpreadAngle attribute, an IfcPositivePlaneAngleMeasure.
The half-angle of the full cone, in the file’s plane-angle unit –
commonly radians, but IFC permits degrees via IfcUnitAssignment, so
a caller must resolve units before comparing this to beam_width_angle
from a different file.
Sourcepub fn beam_width_angle(&self) -> StyleResult<f64>
pub fn beam_width_angle(&self) -> StyleResult<f64>
The BeamWidthAngle attribute, an IfcPositivePlaneAngleMeasure:
the half-angle of the inner, full-intensity cone.