Skip to main content

LightSourceGoniometric

Struct LightSourceGoniometric 

Source
pub struct LightSourceGoniometric<'m, 's> { /* private fields */ }
Expand description

Borrowed projection of IfcLightSourceGoniometric: a real luminaire described by photometric data rather than a renderer’s approximation.

This is the only light source carrying absolute photometric quantities (luminous flux, colour temperature, lamp technology). Every other subtype is a normalized shading construct. The values are reported exactly as authored; this crate performs no photometric or colour-space conversion.

Implementations§

Source§

impl<'m, 's> LightSourceGoniometric<'m, 's>

Source

pub fn light_source(&self) -> LightSource<'m, 's>

The inherited IfcLightSource colour and intensity attributes.

Source

pub fn position(&self) -> StyleResult<EntityId>

The Position attribute: a mandatory IfcAxis2Placement3D reference.

A full placement, not a bare point: a luminaire’s intensity distribution is defined in its own local axes, so the orientation is what makes IfcLightIntensityDistribution angles meaningful.

Source

pub fn colour_appearance(&self) -> StyleResult<Option<EntityId>>

The ColourAppearance attribute, when authored: an IfcColourRgb reference giving the perceived colour.

Distinct from the inherited LightColour, which is the shading colour. A lamp can have one chromaticity and be rendered with another.

Source

pub fn colour_temperature(&self) -> StyleResult<f64>

The ColourTemperature attribute, an IfcThermodynamicTemperatureMeasure.

Mandatory. Reported in the file’s own temperature unit; IFC’s SI default is kelvin, but the value is not converted here.

Source

pub fn luminous_flux(&self) -> StyleResult<f64>

The LuminousFlux attribute, an IfcLuminousFluxMeasure (lumen under the SI default). Mandatory.

Source

pub fn light_emission_source(&self) -> StyleResult<&'m str>

The LightEmissionSource attribute: the lamp technology token from IfcLightEmissionSourceEnum.

Returned as the raw schema token rather than a Rust enum. The enumeration is schema-versioned, and this crate’s census marks such tokens SchemaValue – promoting one to a closed Rust type would make a future schema’s new member unrepresentable.

Source

pub fn light_distribution_data_source(&self) -> StyleResult<EntityId>

The LightDistributionDataSource attribute: a mandatory reference to either an IfcLightIntensityDistribution (inline photometric data) or an IfcExternalReference (e.g. an EULUMDAT or IES file).

The select is validated, so a reference to an unrelated entity is a typed crate::StyleError::ReferenceType rather than a surprise at the point of use.

Trait Implementations§

Source§

impl<'m, 's> Clone for LightSourceGoniometric<'m, 's>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'m, 's> Copy for LightSourceGoniometric<'m, 's>

Source§

impl<'m, 's> Debug for LightSourceGoniometric<'m, 's>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'m, 's> Freeze for LightSourceGoniometric<'m, 's>

§

impl<'m, 's> RefUnwindSafe for LightSourceGoniometric<'m, 's>

§

impl<'m, 's> Send for LightSourceGoniometric<'m, 's>

§

impl<'m, 's> Sync for LightSourceGoniometric<'m, 's>

§

impl<'m, 's> Unpin for LightSourceGoniometric<'m, 's>

§

impl<'m, 's> UnsafeUnpin for LightSourceGoniometric<'m, 's>

§

impl<'m, 's> UnwindSafe for LightSourceGoniometric<'m, 's>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.