Skip to main content

IesData

Struct IesData 

Source
pub struct IesData {
Show 43 fields pub version: IesVersion, pub version_string: String, pub keywords: HashMap<String, String>, pub test: String, pub test_lab: String, pub issue_date: String, pub manufacturer: String, pub luminaire_catalog: String, pub luminaire: String, pub lamp_catalog: String, pub lamp: String, pub ballast: String, pub ballast_catalog: String, pub test_date: String, pub maintenance_category: Option<i32>, pub distribution: String, pub flash_area: Option<f64>, pub color_constant: Option<f64>, pub lamp_position: Option<LampPosition>, pub near_field: Option<(f64, f64, f64)>, pub file_gen_info: String, pub search: String, pub other: Vec<String>, pub num_lamps: i32, pub lumens_per_lamp: f64, pub multiplier: f64, pub n_vertical: usize, pub n_horizontal: usize, pub photometric_type: PhotometricType, pub unit_type: UnitType, pub width: f64, pub length: f64, pub height: f64, pub luminous_shape: LuminousShape, pub ballast_factor: f64, pub file_generation_type: FileGenerationType, pub file_generation_value: f64, pub input_watts: f64, pub tilt_mode: String, pub tilt_data: Option<TiltData>, pub vertical_angles: Vec<f64>, pub horizontal_angles: Vec<f64>, pub candela_values: Vec<Vec<f64>>,
}
Expand description

Parsed IES data before conversion to Eulumdat.

Fields§

§version: IesVersion

Version (parsed from header)

§version_string: String

Version string as found in file

§keywords: HashMap<String, String>

All keyword metadata

§test: String

[TEST] Test report number

§test_lab: String

[TESTLAB] Photometric testing laboratory

§issue_date: String

[ISSUEDATE] Date manufacturer issued the file

§manufacturer: String

[MANUFAC] Manufacturer of luminaire

§luminaire_catalog: String

[LUMCAT] Luminaire catalog number

§luminaire: String

[LUMINAIRE] Luminaire description

§lamp_catalog: String

[LAMPCAT] Lamp catalog number

§lamp: String

[LAMP] Lamp description

§ballast: String

[BALLAST] Ballast description

§ballast_catalog: String

[BALLASTCAT] Ballast catalog number

§test_date: String

[TESTDATE] Date of photometric test

§maintenance_category: Option<i32>

[MAINTCAT] IES maintenance category (1-6)

§distribution: String

[DISTRIBUTION] Distribution description

§flash_area: Option<f64>

[FLASHAREA] Flash area in m²

§color_constant: Option<f64>

[COLORCONSTANT] Color constant for glare

§lamp_position: Option<LampPosition>

[LAMPPOSITION] Lamp position angles

§near_field: Option<(f64, f64, f64)>

[NEARFIELD] Near field distances (D1, D2, D3)

§file_gen_info: String

[FILEGENINFO] Additional file generation info

§search: String

[SEARCH] User search string

§other: Vec<String>

[OTHER] lines (can appear multiple times)

§num_lamps: i32

Number of lamps

§lumens_per_lamp: f64

Lumens per lamp (-1 = absolute photometry)

§multiplier: f64

Candela multiplier

§n_vertical: usize

Number of vertical angles

§n_horizontal: usize

Number of horizontal angles

§photometric_type: PhotometricType

Photometric type (1=C, 2=B, 3=A)

§unit_type: UnitType

Unit type (1=feet, 2=meters)

§width: f64

Luminous opening width (negative = rounded shape)

§length: f64

Luminous opening length (negative = rounded shape)

§height: f64

Luminous opening height (negative = rounded shape)

§luminous_shape: LuminousShape

Derived luminous shape

§ballast_factor: f64

Ballast factor

§file_generation_type: FileGenerationType

File generation type (LM-63-2019) or ballast-lamp factor (older)

§file_generation_value: f64

Raw file generation type value (for preservation)

§input_watts: f64

Input watts

§tilt_mode: String

TILT mode (NONE or INCLUDE)

§tilt_data: Option<TiltData>

TILT data if INCLUDE

§vertical_angles: Vec<f64>

Vertical angles (gamma)

§horizontal_angles: Vec<f64>

Horizontal angles (C-planes)

§candela_values: Vec<Vec<f64>>

Candela values [horizontal_index][vertical_index]

Trait Implementations§

Source§

impl Clone for IesData

Source§

fn clone(&self) -> IesData

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 IesData

Source§

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

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

impl Default for IesData

Source§

fn default() -> IesData

Returns the “default value” for a type. 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, 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.