pub struct PlanarArrayCalibrationParametersBuilder { /* private fields */ }Expand description
Builder for explicit planar-array calibration selection.
Implementations§
Source§impl PlanarArrayCalibrationParametersBuilder
impl PlanarArrayCalibrationParametersBuilder
Sourcepub fn translation(self, active: [bool; 3]) -> Self
pub fn translation(self, active: [bool; 3]) -> Self
Activates selected (tx, ty, tz) components with metre-scale defaults.
Sourcepub fn translation_specs(
self,
specs: [Option<CalibrationParameterSpec>; 3],
) -> Self
pub fn translation_specs( self, specs: [Option<CalibrationParameterSpec>; 3], ) -> Self
Replaces optional translation specifications directly.
Sourcepub fn rotation(self, active: [bool; 3]) -> Self
pub fn rotation(self, active: [bool; 3]) -> Self
Activates selected (rx, ry, rz) components with radian defaults.
Sourcepub fn rotation_specs(
self,
specs: [Option<CalibrationParameterSpec>; 3],
) -> Self
pub fn rotation_specs( self, specs: [Option<CalibrationParameterSpec>; 3], ) -> Self
Replaces optional rotation specifications directly.
Sourcepub fn pitch(self, active: [bool; 2]) -> Self
pub fn pitch(self, active: [bool; 2]) -> Self
Activates selected (pitch_x, pitch_y) components with metre defaults.
Sourcepub fn pitch_specs(self, specs: [Option<CalibrationParameterSpec>; 2]) -> Self
pub fn pitch_specs(self, specs: [Option<CalibrationParameterSpec>; 2]) -> Self
Replaces optional pitch specifications directly.
Sourcepub fn reference_index(self, active: [bool; 2]) -> Self
pub fn reference_index(self, active: [bool; 2]) -> Self
Activates selected fractional (reference_column, reference_row) components.
Sourcepub fn reference_index_specs(
self,
specs: [Option<CalibrationParameterSpec>; 2],
) -> Self
pub fn reference_index_specs( self, specs: [Option<CalibrationParameterSpec>; 2], ) -> Self
Replaces optional reference-index specifications directly.
Sourcepub fn position_offsets(self, indices: impl IntoIterator<Item = usize>) -> Self
pub fn position_offsets(self, indices: impl IntoIterator<Item = usize>) -> Self
Selects stable source indices whose local XYZ offsets are all optimized.
Sourcepub fn position_offset_specs(
self,
specs: BTreeMap<usize, [CalibrationParameterSpec; 3]>,
) -> Self
pub fn position_offset_specs( self, specs: BTreeMap<usize, [CalibrationParameterSpec; 3]>, ) -> Self
Replaces explicit source-indexed XYZ offset specifications.
Sourcepub fn relative_source_power(self, active: bool) -> Self
pub fn relative_source_power(self, active: bool) -> Self
Enables or disables optimization of all stable relative source powers.
Sourcepub fn relative_source_power_spec(
self,
spec: Option<CalibrationParameterSpec>,
) -> Self
pub fn relative_source_power_spec( self, spec: Option<CalibrationParameterSpec>, ) -> Self
Replaces the optional source-power specification directly.
Sourcepub fn frame_gains(self, active: bool) -> Self
pub fn frame_gains(self, active: bool) -> Self
Enables or disables optimization of all acquisition-frame gains.
Sourcepub fn frame_gain_spec(self, spec: Option<CalibrationParameterSpec>) -> Self
pub fn frame_gain_spec(self, spec: Option<CalibrationParameterSpec>) -> Self
Replaces the optional frame-gain specification directly.
Sourcepub fn build(self) -> Result<PlanarArrayCalibrationParameters>
pub fn build(self) -> Result<PlanarArrayCalibrationParameters>
Validates duplicate selections and returns the inspectable configuration.
Trait Implementations§
Source§impl Clone for PlanarArrayCalibrationParametersBuilder
impl Clone for PlanarArrayCalibrationParametersBuilder
Source§fn clone(&self) -> PlanarArrayCalibrationParametersBuilder
fn clone(&self) -> PlanarArrayCalibrationParametersBuilder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for PlanarArrayCalibrationParametersBuilder
impl Default for PlanarArrayCalibrationParametersBuilder
Source§fn default() -> PlanarArrayCalibrationParametersBuilder
fn default() -> PlanarArrayCalibrationParametersBuilder
Auto Trait Implementations§
impl Freeze for PlanarArrayCalibrationParametersBuilder
impl RefUnwindSafe for PlanarArrayCalibrationParametersBuilder
impl Send for PlanarArrayCalibrationParametersBuilder
impl Sync for PlanarArrayCalibrationParametersBuilder
impl Unpin for PlanarArrayCalibrationParametersBuilder
impl UnsafeUnpin for PlanarArrayCalibrationParametersBuilder
impl UnwindSafe for PlanarArrayCalibrationParametersBuilder
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> 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> ⓘ
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> ⓘ
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