Skip to main content

PhotometricSummary

Struct PhotometricSummary 

Source
pub struct PhotometricSummary {
Show 24 fields pub total_lamp_flux: f64, pub calculated_flux: f64, pub lor: f64, pub dlor: f64, pub ulor: f64, pub lamp_efficacy: f64, pub luminaire_efficacy: f64, pub total_wattage: f64, pub cie_flux_codes: CieFluxCodes, pub beam_angle: f64, pub field_angle: f64, pub beam_angle_cie: f64, pub field_angle_cie: f64, pub is_batwing: bool, pub upward_beam_angle: f64, pub upward_field_angle: f64, pub primary_direction: LightDirection, pub distribution_type: DistributionType, pub max_intensity: f64, pub min_intensity: f64, pub avg_intensity: f64, pub spacing_c0: f64, pub spacing_c90: f64, pub zonal_lumens: ZonalLumens30,
}
Expand description

Complete photometric summary with all calculated values.

This struct provides a comprehensive overview of luminaire performance that can be used for reports, GLDF export, or display.

Fields§

§total_lamp_flux: f64

Total lamp flux (lm)

§calculated_flux: f64

Calculated flux from intensity integration (lm)

§lor: f64

Light Output Ratio (%)

§dlor: f64

Downward Light Output Ratio (%)

§ulor: f64

Upward Light Output Ratio (%)

§lamp_efficacy: f64

Lamp efficacy (lm/W)

§luminaire_efficacy: f64

Luminaire efficacy (lm/W)

§total_wattage: f64

Total system wattage (W)

§cie_flux_codes: CieFluxCodes

CIE flux codes (N1-N5)

§beam_angle: f64

Beam angle - 50% of max intensity (degrees) - IES definition

§field_angle: f64

Field angle - 10% of max intensity (degrees) - IES definition

§beam_angle_cie: f64

Beam angle - 50% of center intensity (degrees) - CIE definition

§field_angle_cie: f64

Field angle - 10% of center intensity (degrees) - CIE definition

§is_batwing: bool

True if distribution is batwing (center < max, IES ≠ CIE)

§upward_beam_angle: f64

Upward beam angle - 50% of upward peak (degrees)

§upward_field_angle: f64

Upward field angle - 10% of upward peak (degrees)

§primary_direction: LightDirection

Primary light direction (Downward or Upward)

§distribution_type: DistributionType

Distribution type (Direct, Indirect, DirectIndirect, IndirectDirect)

§max_intensity: f64

Maximum intensity (cd/klm)

§min_intensity: f64

Minimum intensity (cd/klm)

§avg_intensity: f64

Average intensity (cd/klm)

§spacing_c0: f64

S/H ratio for C0 plane

§spacing_c90: f64

S/H ratio for C90 plane

§zonal_lumens: ZonalLumens30

Zonal lumens in 30° zones

Implementations§

Source§

impl PhotometricSummary

Source

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

Calculate complete photometric summary from Eulumdat data.

Source

pub fn to_text(&self) -> String

Format as multi-line text report.

Source

pub fn to_compact(&self) -> String

Format as single-line compact summary.

Source

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

Format as key-value pairs for machine parsing.

Trait Implementations§

Source§

impl Clone for PhotometricSummary

Source§

fn clone(&self) -> PhotometricSummary

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 PhotometricSummary

Source§

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

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

impl Default for PhotometricSummary

Source§

fn default() -> PhotometricSummary

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

impl Display for PhotometricSummary

Source§

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

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

impl PartialEq for PhotometricSummary

Source§

fn eq(&self, other: &PhotometricSummary) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for PhotometricSummary

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.