pub struct EulumdatEngine { /* private fields */ }Expand description
Plugin engine holding parsed photometric data
Implementations§
Source§impl EulumdatEngine
impl EulumdatEngine
Sourcepub fn parse_ldt(&mut self, content: &str) -> Result<String, JsValue>
pub fn parse_ldt(&mut self, content: &str) -> Result<String, JsValue>
Parse LDT (EULUMDAT) file content
Sourcepub fn export_ldt(&self) -> Result<String, JsValue>
pub fn export_ldt(&self) -> Result<String, JsValue>
Export current data to LDT format
Sourcepub fn export_ies(&self) -> Result<String, JsValue>
pub fn export_ies(&self) -> Result<String, JsValue>
Export current data to IES format
Sourcepub fn get_data_json(&self) -> Result<String, JsValue>
pub fn get_data_json(&self) -> Result<String, JsValue>
Get current data as JSON
Sourcepub fn beam_angle(&self) -> Result<f64, JsValue>
pub fn beam_angle(&self) -> Result<f64, JsValue>
Calculate beam angle (angle at 50% max intensity)
Sourcepub fn field_angle(&self) -> Result<f64, JsValue>
pub fn field_angle(&self) -> Result<f64, JsValue>
Calculate field angle (angle at 10% max intensity)
Sourcepub fn half_beam_angle(&self) -> Result<f64, JsValue>
pub fn half_beam_angle(&self) -> Result<f64, JsValue>
Calculate half beam angle
Sourcepub fn half_field_angle(&self) -> Result<f64, JsValue>
pub fn half_field_angle(&self) -> Result<f64, JsValue>
Calculate half field angle
Sourcepub fn total_flux(&self) -> Result<f64, JsValue>
pub fn total_flux(&self) -> Result<f64, JsValue>
Calculate total luminous flux
Sourcepub fn downward_flux(&self, angle: f64) -> Result<f64, JsValue>
pub fn downward_flux(&self, angle: f64) -> Result<f64, JsValue>
Calculate downward flux to a specific angle
Sourcepub fn efficiency(&self) -> Result<f64, JsValue>
pub fn efficiency(&self) -> Result<f64, JsValue>
Calculate luminaire efficiency (downward flux fraction)
Sourcepub fn cut_off_angle(&self) -> Result<f64, JsValue>
pub fn cut_off_angle(&self) -> Result<f64, JsValue>
Calculate cut-off angle
Sourcepub fn get_summary(&self) -> Result<String, JsValue>
pub fn get_summary(&self) -> Result<String, JsValue>
Get photometric summary (all key metrics)
Sourcepub fn beam_field_analysis(&self) -> Result<String, JsValue>
pub fn beam_field_analysis(&self) -> Result<String, JsValue>
Get beam/field analysis
Sourcepub fn zonal_lumens_30(&self) -> Result<String, JsValue>
pub fn zonal_lumens_30(&self) -> Result<String, JsValue>
Calculate zonal lumens (30-degree zones)
Sourcepub fn cie_flux_codes(&self) -> Result<String, JsValue>
pub fn cie_flux_codes(&self) -> Result<String, JsValue>
Calculate CIE flux codes
Sourcepub fn spacing_criteria(&self) -> Result<String, JsValue>
pub fn spacing_criteria(&self) -> Result<String, JsValue>
Calculate spacing criteria
Sourcepub fn cu_table(&self) -> Result<String, JsValue>
pub fn cu_table(&self) -> Result<String, JsValue>
Calculate coefficient of utilization (CU) table
Sourcepub fn direct_ratios(&self, shr: &str) -> Result<String, JsValue>
pub fn direct_ratios(&self, shr: &str) -> Result<String, JsValue>
Calculate direct ratios for standard room indices shr: Spacing to Height Ratio (“1.0”, “1.5”, “2.0”, etc.)
Sourcepub fn bug_rating(&self) -> Result<String, JsValue>
pub fn bug_rating(&self) -> Result<String, JsValue>
Calculate BUG rating
Sourcepub fn zone_lumens(&self) -> Result<String, JsValue>
pub fn zone_lumens(&self) -> Result<String, JsValue>
Calculate zone lumens for BUG rating
Sourcepub fn bug_diagram_data(&self) -> Result<String, JsValue>
pub fn bug_diagram_data(&self) -> Result<String, JsValue>
Get BUG diagram data
Sourcepub fn polar_svg(
&self,
width: f64,
height: f64,
theme: &str,
) -> Result<String, JsValue>
pub fn polar_svg( &self, width: f64, height: f64, theme: &str, ) -> Result<String, JsValue>
Generate polar diagram SVG
Sourcepub fn cartesian_svg(
&self,
width: f64,
height: f64,
theme: &str,
max_curves: usize,
) -> Result<String, JsValue>
pub fn cartesian_svg( &self, width: f64, height: f64, theme: &str, max_curves: usize, ) -> Result<String, JsValue>
Generate Cartesian diagram SVG
Sourcepub fn butterfly_svg(
&self,
width: f64,
height: f64,
theme: &str,
rotation: f64,
) -> Result<String, JsValue>
pub fn butterfly_svg( &self, width: f64, height: f64, theme: &str, rotation: f64, ) -> Result<String, JsValue>
Generate butterfly diagram SVG
Sourcepub fn heatmap_svg(
&self,
width: f64,
height: f64,
theme: &str,
) -> Result<String, JsValue>
pub fn heatmap_svg( &self, width: f64, height: f64, theme: &str, ) -> Result<String, JsValue>
Generate heatmap diagram SVG
Sourcepub fn cone_svg(
&self,
width: f64,
height: f64,
theme: &str,
mounting_height: f64,
) -> Result<String, JsValue>
pub fn cone_svg( &self, width: f64, height: f64, theme: &str, mounting_height: f64, ) -> Result<String, JsValue>
Generate cone diagram SVG mounting_height: luminaire mounting height in meters (default 3.0)
Trait Implementations§
Source§impl Default for EulumdatEngine
impl Default for EulumdatEngine
Source§impl From<EulumdatEngine> for JsValue
impl From<EulumdatEngine> for JsValue
Source§fn from(value: EulumdatEngine) -> Self
fn from(value: EulumdatEngine) -> Self
Source§impl FromWasmAbi for EulumdatEngine
impl FromWasmAbi for EulumdatEngine
Source§impl IntoWasmAbi for EulumdatEngine
impl IntoWasmAbi for EulumdatEngine
Source§impl LongRefFromWasmAbi for EulumdatEngine
impl LongRefFromWasmAbi for EulumdatEngine
Source§impl OptionFromWasmAbi for EulumdatEngine
impl OptionFromWasmAbi for EulumdatEngine
Source§impl OptionIntoWasmAbi for EulumdatEngine
impl OptionIntoWasmAbi for EulumdatEngine
Source§impl RefFromWasmAbi for EulumdatEngine
impl RefFromWasmAbi for EulumdatEngine
Source§type Anchor = RcRef<EulumdatEngine>
type Anchor = RcRef<EulumdatEngine>
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for EulumdatEngine
impl RefMutFromWasmAbi for EulumdatEngine
Source§impl TryFromJsValue for EulumdatEngine
impl TryFromJsValue for EulumdatEngine
Source§impl VectorFromWasmAbi for EulumdatEngine
impl VectorFromWasmAbi for EulumdatEngine
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[EulumdatEngine]>
Source§impl VectorIntoWasmAbi for EulumdatEngine
impl VectorIntoWasmAbi for EulumdatEngine
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[EulumdatEngine]>) -> Self::Abi
Source§impl WasmDescribeVector for EulumdatEngine
impl WasmDescribeVector for EulumdatEngine
impl SupportsConstructor for EulumdatEngine
impl SupportsInstanceProperty for EulumdatEngine
impl SupportsStaticProperty for EulumdatEngine
Auto Trait Implementations§
impl Freeze for EulumdatEngine
impl RefUnwindSafe for EulumdatEngine
impl Send for EulumdatEngine
impl Sync for EulumdatEngine
impl Unpin for EulumdatEngine
impl UnsafeUnpin for EulumdatEngine
impl UnwindSafe for EulumdatEngine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.