pub enum SourceGeometry {
PlanarArray(PlanarLedArray),
SphericalArray(SphericalLedArray),
SphericalArm(SphericalLedArm),
RotatingArc(RotatingLedArc),
Positions(SourcePositionList),
Directions(DirectionList),
KVectors(KVectorList),
}Expand description
Serializable physical or direct source geometry.
Variants§
PlanarArray(PlanarLedArray)
Regular planar LED array.
SphericalArray(SphericalLedArray)
Fixed spherical LED array.
SphericalArm(SphericalLedArm)
Mechanically moved spherical LED arm.
RotatingArc(RotatingLedArc)
LED arc sampled over commanded rotations.
Positions(SourcePositionList)
Arbitrary physical positions.
Directions(DirectionList)
Canonical propagation directions.
KVectors(KVectorList)
Direct transverse vectors.
Implementations§
Source§impl SourceGeometry
impl SourceGeometry
Sourcepub fn source_count(&self) -> usize
pub fn source_count(&self) -> usize
Returns the number of physical or direct sources before acquisition planning.
Sourcepub fn resolve(&self, optics: &Optics) -> Result<ResolvedSources>
pub fn resolve(&self, optics: &Optics) -> Result<ResolvedSources>
Atomically resolves geometry using the wavelength and media in optics.
Trait Implementations§
Source§impl Clone for SourceGeometry
impl Clone for SourceGeometry
Source§fn clone(&self) -> SourceGeometry
fn clone(&self) -> SourceGeometry
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 SourceGeometry
impl Debug for SourceGeometry
Source§impl<'de> Deserialize<'de> for SourceGeometry
impl<'de> Deserialize<'de> for SourceGeometry
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 From<DirectionList> for SourceGeometry
impl From<DirectionList> for SourceGeometry
Source§fn from(value: DirectionList) -> Self
fn from(value: DirectionList) -> Self
Converts to this type from the input type.
Source§impl From<KVectorList> for SourceGeometry
impl From<KVectorList> for SourceGeometry
Source§fn from(value: KVectorList) -> Self
fn from(value: KVectorList) -> Self
Converts to this type from the input type.
Source§impl From<PlanarLedArray> for SourceGeometry
impl From<PlanarLedArray> for SourceGeometry
Source§fn from(value: PlanarLedArray) -> Self
fn from(value: PlanarLedArray) -> Self
Converts to this type from the input type.
Source§impl From<RotatingLedArc> for SourceGeometry
impl From<RotatingLedArc> for SourceGeometry
Source§fn from(value: RotatingLedArc) -> Self
fn from(value: RotatingLedArc) -> Self
Converts to this type from the input type.
Source§impl From<SourcePositionList> for SourceGeometry
impl From<SourcePositionList> for SourceGeometry
Source§fn from(value: SourcePositionList) -> Self
fn from(value: SourcePositionList) -> Self
Converts to this type from the input type.
Source§impl From<SphericalLedArm> for SourceGeometry
impl From<SphericalLedArm> for SourceGeometry
Source§fn from(value: SphericalLedArm) -> Self
fn from(value: SphericalLedArm) -> Self
Converts to this type from the input type.
Source§impl From<SphericalLedArray> for SourceGeometry
impl From<SphericalLedArray> for SourceGeometry
Source§fn from(value: SphericalLedArray) -> Self
fn from(value: SphericalLedArray) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SourceGeometry
impl PartialEq for SourceGeometry
Source§fn eq(&self, other: &SourceGeometry) -> bool
fn eq(&self, other: &SourceGeometry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SourceGeometry
impl Serialize for SourceGeometry
impl StructuralPartialEq for SourceGeometry
Auto Trait Implementations§
impl Freeze for SourceGeometry
impl RefUnwindSafe for SourceGeometry
impl Send for SourceGeometry
impl Sync for SourceGeometry
impl Unpin for SourceGeometry
impl UnsafeUnpin for SourceGeometry
impl UnwindSafe for SourceGeometry
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