pub struct Illumination { /* private fields */ }Expand description
Complete serializable illumination configuration.
Implementations§
Source§impl Illumination
impl Illumination
Sourcepub const fn new(
geometry: SourceGeometry,
calibration: SourceCalibration,
acquisition: AcquisitionPlan,
) -> Self
pub const fn new( geometry: SourceGeometry, calibration: SourceCalibration, acquisition: AcquisitionPlan, ) -> Self
Creates a complete configuration from separate source concepts.
Sourcepub fn from_geometry(geometry: impl Into<SourceGeometry>) -> Result<Self>
pub fn from_geometry(geometry: impl Into<SourceGeometry>) -> Result<Self>
Creates unit-power sequential acquisition for every geometry source.
Sourcepub const fn geometry(&self) -> &SourceGeometry
pub const fn geometry(&self) -> &SourceGeometry
Borrows the physical or direct source geometry.
Sourcepub const fn calibration(&self) -> &SourceCalibration
pub const fn calibration(&self) -> &SourceCalibration
Borrows the stable source calibration.
Sourcepub const fn acquisition(&self) -> &AcquisitionPlan
pub const fn acquisition(&self) -> &AcquisitionPlan
Borrows the acquisition structure.
Sourcepub fn with_geometry(self, geometry: impl Into<SourceGeometry>) -> Self
pub fn with_geometry(self, geometry: impl Into<SourceGeometry>) -> Self
Replaces the source geometry while retaining calibration and acquisition state.
Sourcepub fn with_calibration(self, calibration: SourceCalibration) -> Self
pub fn with_calibration(self, calibration: SourceCalibration) -> Self
Replaces stable source-power calibration while retaining geometry and acquisition.
Sourcepub fn with_acquisition(self, acquisition: AcquisitionPlan) -> Self
pub fn with_acquisition(self, acquisition: AcquisitionPlan) -> Self
Replaces sparse acquisition weights and frame gains while retaining source state.
Sourcepub fn resolve(&self, optics: &Optics) -> Result<ResolvedIllumination>
pub fn resolve(&self, optics: &Optics) -> Result<ResolvedIllumination>
Atomically resolves geometry, calibration, acquisition weights, and gains.
Trait Implementations§
Source§impl Clone for Illumination
impl Clone for Illumination
Source§fn clone(&self) -> Illumination
fn clone(&self) -> Illumination
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Illumination
impl Debug for Illumination
Source§impl<'de> Deserialize<'de> for Illumination
impl<'de> Deserialize<'de> for Illumination
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Illumination
impl PartialEq for Illumination
Source§fn eq(&self, other: &Illumination) -> bool
fn eq(&self, other: &Illumination) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Illumination
impl Serialize for Illumination
impl StructuralPartialEq for Illumination
Auto Trait Implementations§
impl Freeze for Illumination
impl RefUnwindSafe for Illumination
impl Send for Illumination
impl Sync for Illumination
impl Unpin for Illumination
impl UnsafeUnpin for Illumination
impl UnwindSafe for Illumination
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more