Skip to main content

GldfPhotometricData

Struct GldfPhotometricData 

Source
pub struct GldfPhotometricData {
Show 13 fields pub cie_flux_code: String, pub light_output_ratio: f64, pub luminous_efficacy: f64, pub downward_flux_fraction: f64, pub downward_light_output_ratio: f64, pub upward_light_output_ratio: f64, pub luminaire_luminance: f64, pub cut_off_angle: f64, pub ugr_4h_8h_705020: Option<UgrTableValues>, pub photometric_code: String, pub tenth_peak_divergence: (f64, f64), pub half_peak_divergence: (f64, f64), pub light_distribution_bug_rating: String,
}
Expand description

GLDF-compatible photometric data export.

Contains all properties required by the GLDF (Global Lighting Data Format) specification for photometric data exchange.

Fields§

§cie_flux_code: String

CIE Flux Code (e.g., “45 72 95 100 100”)

§light_output_ratio: f64

Light Output Ratio - total efficiency (%)

§luminous_efficacy: f64

Luminous efficacy (lm/W)

§downward_flux_fraction: f64

Downward Flux Fraction (%)

§downward_light_output_ratio: f64

Downward Light Output Ratio (%)

§upward_light_output_ratio: f64

Upward Light Output Ratio (%)

§luminaire_luminance: f64

Luminaire luminance (cd/m²) - average luminance at 65° viewing angle

§cut_off_angle: f64

Cut-off angle - angle where intensity drops below 2.5% (degrees)

§ugr_4h_8h_705020: Option<UgrTableValues>

UGR table values for standard room (4H/8H, 0.70/0.50/0.20)

§photometric_code: String

Photometric classification code

§tenth_peak_divergence: (f64, f64)

Tenth peak (field) divergence angles (C0-C180, C90-C270) in degrees

§half_peak_divergence: (f64, f64)

Half peak (beam) divergence angles (C0-C180, C90-C270) in degrees

§light_distribution_bug_rating: String

BUG rating (Backlight, Uplight, Glare)

Implementations§

Source§

impl GldfPhotometricData

Source

pub fn from_eulumdat(ldt: &Eulumdat) -> Self

Calculate GLDF-compatible photometric data from Eulumdat.

Source

pub fn to_gldf_properties(&self) -> Vec<(&'static str, String)>

Export as key-value pairs for GLDF XML generation.

Source

pub fn to_text(&self) -> String

Export as formatted text report.

Trait Implementations§

Source§

impl Clone for GldfPhotometricData

Source§

fn clone(&self) -> GldfPhotometricData

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for GldfPhotometricData

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for GldfPhotometricData

Source§

fn default() -> GldfPhotometricData

Returns the “default value” for a type. Read more
Source§

impl Display for GldfPhotometricData

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

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<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> 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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.