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: i64OPD の基準(.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
impl Clone for Prescription
Source§impl Debug for Prescription
impl Debug for Prescription
Source§impl<'de> Deserialize<'de> for Prescription
impl<'de> Deserialize<'de> for Prescription
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 JsonSchema for Prescription
impl JsonSchema for Prescription
Source§fn schema_id() -> Cow<'static, str>
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
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
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 moreAuto Trait Implementations§
impl Freeze for Prescription
impl RefUnwindSafe for Prescription
impl Send for Prescription
impl Sync for Prescription
impl Unpin for Prescription
impl UnsafeUnpin for Prescription
impl UnwindSafe for Prescription
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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