Skip to main content

Prescription

Struct Prescription 

Source
pub struct Prescription {
Show 32 fields pub name: String, pub wavelengths: Vec<Wave>, pub primary: usize, pub fields: Fields, pub aperture: ApertureSpec, pub telecentric: bool, pub aiming: Aiming, pub temperature_c: f64, pub pressure_atm: f64, pub adjust_index: bool, pub afocal: bool, pub afocal_unit: AfocalUnit, pub vig_interp: VigInterp, pub floating_clip: bool, pub mech_clip: bool, pub glrs: usize, pub ropd: i64, pub aim_pupil: AimPupil, pub input_pol: InputPolarization, pub glass_template: GlassTemplate, pub apodization: Apodization, pub coating_file: Option<String>, pub coat_tables: BTreeMap<String, Table>, pub surfaces: Vec<Row>, pub pickups: Vec<Pickup>, pub solves: Vec<Solve>, pub macros: Vec<Macro>, pub macro_parms: Vec<MacroParm>, pub units: Vec<Unit>, pub mechanics: Vec<MechPart>, pub configs: Option<Configs>, pub catalogs: Vec<CatalogRef>,
}
Expand description

系(処方)。系ファイルの system

Fields§

§name: String§wavelengths: Vec<Wave>§primary: usize

主波長の番号(1 始まり)

§fields: Fields§aperture: ApertureSpec§telecentric: bool

物体側テレセントリック

§aiming: Aiming

光線エイミング

§temperature_c: f64

温度 [°C]

§pressure_atm: f64

気圧 [atm]

§adjust_index: bool

ガラスの屈折率を温度・気圧で補正する(OpticStudio の Adjust Index Data To Environment)

§afocal: bool

像空間がアフォーカル

§afocal_unit: AfocalUnit

アフォーカル像空間の角度の単位

§vig_interp: VigInterp

定義した視野以外の点のケラレ係数の求め方

§floating_clip: bool

浮動開口(半直径を固定した面)の外の光線をけるか

§mech_clip: bool

機構部品の穴の外に出た光線をけるか

§glrs: usize

大域座標の基準の面(.zmx の GLRS)

§ropd: i64

OPD の基準(.zmx の ROPD)

§aim_pupil: AimPupil

光線エイミングの瞳のずれ・圧縮(.zmx の PUSH と RAIM の 10 番目。追跡には効かない)

§input_pol: InputPolarization

系の入射偏光(.zmx の POLS)

§glass_template: GlassTemplate

ガラス置換のテンプレート(OpticStudio の Glass Substitution Template、.zmx の GSTD)。最適化のガラスの置き換えの候補を絞る

§apodization: Apodization

瞳のアポダイゼーション(.zmx の GFAC。FFT PSF・Huygens・回折 MTF の瞳の振幅)

§coating_file: Option<String>

膜ファイル(.zmx の COFN で見つけたファイル)

§coat_tables: BTreeMap<String, Table>

膜ファイルの外で定めた TABLE 膜(名前 → 表)

§surfaces: Vec<Row>

面の列(面とその後の間隔)。0 が物体面、最後が像面

§pickups: Vec<Pickup>§solves: Vec<Solve>§macros: Vec<Macro>

ソルブが呼ぶ ZPL のマクロ(文を入れる)

§macro_parms: Vec<MacroParm>§units: Vec<Unit>

玉・群

§mechanics: Vec<MechPart>

機構部品

§configs: Option<Configs>

多重構成の表

§catalogs: Vec<CatalogRef>

使ったガラスのカタログ(名前で引く順)と、保存したときのファイルの hash

Trait Implementations§

Source§

impl Clone for Prescription

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Prescription

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Prescription

Source§

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 JsonSchema for Prescription

Source§

fn schema_name() -> Cow<'static, str>

The name of the generated JSON Schema. Read more
Source§

fn schema_id() -> Cow<'static, str>

Returns a string that uniquely identifies the schema produced by this type. Read more
Source§

fn json_schema(generator: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
Source§

fn inline_schema() -> bool

Whether JSON Schemas generated for this type should be included directly in parent schemas, rather than being re-used where possible using the $ref keyword. Read more
Source§

impl Serialize for Prescription

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.