#[non_exhaustive]pub enum Form {
Show 19 variants
Standard,
EvenAsph {
asph: Vec<f64>,
},
CoordBrk {
cb: [f64; 5],
order: u8,
},
Jones {
jones: [f64; 8],
},
Paraxial {
focal: f64,
opd_mode: i32,
},
Toroidal {
cx: f64,
asph: Vec<f64>,
},
ZernikeStd {
asph: Vec<f64>,
zern: Option<Arc<ZernSag>>,
},
ZernikeFringe {
asph: Vec<f64>,
zern: Option<Arc<ZernSag>>,
},
GridSag {
asph: Vec<f64>,
grid: Option<Arc<GridSag>>,
grid_file: String,
zern: Option<Arc<ZernSag>>,
},
Fresnel {
asph: Vec<f64>,
},
CylFresnel {
asph: Vec<f64>,
cylf: Option<Arc<CylFresnel>>,
},
Binary2 {
asph: Vec<f64>,
bin2: Option<Arc<Binary2>>,
},
Gradium {
grin: Option<Arc<Grin>>,
},
Gradient9 {
grin: Option<Arc<Grin>>,
},
OddAsph {
asph: Vec<f64>,
},
TiltSurf {
tan: [f64; 2],
},
Irregular {
p: [f64; 8],
},
User {
user: Option<UserSurf>,
},
UserShape {
shape: Option<UserShape>,
},
}Expand description
面の種類と、種類ごとの値。組み込みの種類を足しても外のクレートが壊れないよう non_exhaustive
serde では面の表の中に平たく(typ と、どの種類でも全部の値の欄。種類に無い値は既定)書く。読むときは
種類に無い欄に既定でない値があれば誤り
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Standard
EvenAsph
偶数次非球面: 係数 r², r⁴, …
CoordBrk
座標ブレーク: [偏心 x, 偏心 y, 傾き x°, 傾き y°, 傾き z°] と順序(0 は偏心してから傾け、1 は逆)
Jones
Jones 面: 行列(実部・虚部の順に Jxx Jxy Jyx Jyy)
Paraxial
理想レンズ: 焦点距離 [mm] と OPD の扱い(.zmx の PARM 2)
Toroidal
トロイダル面: 回転の曲率(1 / 回転半径、0 は円柱面)と YZ 面の曲線の係数 y², y⁴, …
ZernikeStd
Zernike Standard Sag: 土台の偶数次非球面の係数と Zernike の項
ZernikeFringe
Zernike Fringe Sag: 土台の偶数次非球面の係数と Zernike の項
GridSag
Grid Sag: 土台の偶数次非球面の係数、格子と、その .DAT のファイル名(書き出し用)、足す Zernike(Standard)の項
Fresnel
Fresnel: 屈折の傾きを決める偶数次非球面の係数
CylFresnel
Cylinder Fresnel: 基板の係数(y だけ)と屈折の面
Binary2
Binary 2: 形の偶数次非球面の係数と位相
Gradium
Gradium: 面の後ろの屈折率分布(n は頂点の屈折率)
Gradient9
Gradient 9: 面の後ろの屈折率分布
OddAsph
Odd Asphere: β_1..β_8(Σ β_i r^i)
TiltSurf
Tilted: [tan α, tan β](z = x tan α + y tan β)
Irregular
Irregular: [偏心 x, 偏心 y, 傾き x°, 傾き y°, Zs, Za, Zc, 角度°](crate::shape::Irregular)
User
利用者定義の面のモデルと設定
UserShape
利用者定義の形のモデルと設定(土台は面の c・k)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Form
impl<'de> Deserialize<'de> for Form
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>,
Source§impl JsonSchema for Form
impl JsonSchema for Form
Source§fn json_schema(g: &mut SchemaGenerator) -> Schema
fn json_schema(g: &mut SchemaGenerator) -> Schema
§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreimpl StructuralPartialEq for Form
Auto Trait Implementations§
impl !RefUnwindSafe for Form
impl !UnwindSafe for Form
impl Freeze for Form
impl Send for Form
impl Sync for Form
impl Unpin for Form
impl UnsafeUnpin for Form
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,
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> ⓘ
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