pub struct OpticalModelBuilder<T = PhaseSensorBuilder> { /* private fields */ }
Expand description
GMT optical model builder
use gmt_dos_clients_crseo::OpticalModel;
let optical_model_builder = OpticalModel::builder();
Implementations§
Source§impl<T> OpticalModelBuilder<T>
impl<T> OpticalModelBuilder<T>
Sourcepub fn gmt(self, gmt_builder: GmtBuilder) -> Self
pub fn gmt(self, gmt_builder: GmtBuilder) -> Self
Configures the GMT
use crseo::{Gmt, FromBuilder};
let optical_model_builder = OpticalModel::builder().gmt(Gmt::builder());
Sourcepub fn source(self, src_builder: SourceBuilder) -> Self
pub fn source(self, src_builder: SourceBuilder) -> Self
Configures the light source
use crseo::{Source, FromBuilder};
let optical_model_builder = OpticalModel::builder().source(Source::builder());
Sourcepub fn piston(self, piston: Vec<f64>) -> Self
pub fn piston(self, piston: Vec<f64>) -> Self
Adds a piston error of each segment to the wavefront in the exit pupil
Sourcepub fn atmosphere(self, atm_builder: AtmosphereBuilder) -> Self
pub fn atmosphere(self, atm_builder: AtmosphereBuilder) -> Self
Configures the atmospheric turbulence
use crseo::{Atmosphere, FromBuilder};
let optical_model_builder = OpticalModel::builder().atmosphere(Atmosphere::builder());
Sourcepub fn dome_seeing<P: AsRef<Path>>(self, path: P, upsampling: usize) -> Self
pub fn dome_seeing<P: AsRef<Path>>(self, path: P, upsampling: usize) -> Self
Configures the dome seeing
Sourcepub fn sampling_frequency(self, sampling_frequency: f64) -> Self
pub fn sampling_frequency(self, sampling_frequency: f64) -> Self
Sets the frequency in Hz to which the optical model is sampled
let optical_model_builder = OpticalModel::builder().sampling_frequency(1000_f64);
Source§impl<T: Builder + WavefrontSensorBuilder> OpticalModelBuilder<T>
impl<T: Builder + WavefrontSensorBuilder> OpticalModelBuilder<T>
Trait Implementations§
Source§impl<T: Debug> Debug for OpticalModelBuilder<T>
impl<T: Debug> Debug for OpticalModelBuilder<T>
Source§impl<T: Default> Default for OpticalModelBuilder<T>
impl<T: Default> Default for OpticalModelBuilder<T>
Source§fn default() -> OpticalModelBuilder<T>
fn default() -> OpticalModelBuilder<T>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<T> Freeze for OpticalModelBuilder<T>where
T: Freeze,
impl<T> RefUnwindSafe for OpticalModelBuilder<T>where
T: RefUnwindSafe,
impl<T> Send for OpticalModelBuilder<T>where
T: Send,
impl<T> Sync for OpticalModelBuilder<T>where
T: Sync,
impl<T> Unpin for OpticalModelBuilder<T>where
T: Unpin,
impl<T> UnwindSafe for OpticalModelBuilder<T>where
T: UnwindSafe,
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
Mutably borrows from an owned value. Read more
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.